0
favorites
favorites
0
comments
comments
Iterate through hashmap
This loop iterates through a hashmap. very simple. ...
0
favorites
favorites
0
comments
comments
Android Wheel component
Android Wheel component ...
0
favorites
favorites
0
comments
comments
element exists?
A function to check if an element exists. (Hope i'll never forget) ...
0
favorites
favorites
2
comments
comments
Counts the frequency of a word in a file.
Reads a file from the command line, asks the user to input a word. Counts the frequency of the word in the defined file. (just part of an assignment in college.) ...
0
favorites
favorites
1
comment
comment
Get cursor position of clicked mouse on a HTML5 Canvas
Javascript function to get mouse position on a HTML5 canvas element. ...
0
favorites
favorites
1
comment
comment
String.format() in JS a la Python
String.format() in JS a la Python
Usage:
var myString="My name is {0} and I am {1} years old"
formattedString=myString.format(['sayan',27]) ...
0
favorites
favorites
2
comments
comments
JScript :: + operator
The arithmetic operator + is used to add values together.
When operands are strings, which means a string concatenation happens.
When the plus operator is used with a number and a string, the number gets converted to a string and then string concatenation is performed.
...