home links
all content projects tools archive

javascript

I took many a computer science class at Stanford, so I think like a programmer. But most of the time I am too lazy to startup and code things in Java or C++ when I can just launch Notepad and create a JavaScript that gives me instant gratification. Albeit on a low level, programming wise, I still turn to JavaScript to carry out lots of small repetitive tasks.

Hex Color Inverter

Input a standard, six digit Hexadecimal HTML color, and this will display it's opposite color, and give you the HTML Hex color code as well. I've seen a lot of overly-complicated versions of this online, invovling lots of math and stuff. Using some slick JavaScript skills (like Objects as Associative Arrays), this accomplishes the same thing in a short script.

Day Countdown Timer

This is a very simple (only 87 characters!) script that takes an plain English date (like "June 3, 2012") and displays how many days are left until that date.

Frequency Counter

Paste some text into the upper box, and this script will count the word frequency of all the words, then display the number of times each word shows up, and sort from most frequent to least frequent.

Unique Word Parser

Paste text into the first box and a list of every word used will show up in the second box. A simple way of showing every word used in some text.

Phone Number to Letter Generator

You know how each number on your phone has three or four letters associated with it? Your phone number could actually spell something interesting! Input your phone number (either 7 or 10 digits), and this script will spit out every possible permutation. Find an interesting one. Tell your friends.


This work is licensed under a Creative Commons 3.0
Attribution-Noncommercial-Share Alike License
Creative Commons License