Recent Notes

Displaying keyword search results 1 - 10
Created by Fang on November 10, 2011 09:26:12    Last update: November 10, 2011 09:26:12
Syntax highlighted XML schema for JSF 2.0 Application Configuration Resource File ( faces-config.xml ). Almost 3000 lines! <?xml version="1.0" encoding="UTF-8"?> <xsd:sch...
Created by jinx on April 29, 2011 15:03:10    Last update: April 29, 2011 15:04:02
The PHP function is_callable verifies that a variable can be invoked as a function. Example: <?php define('F', 'f'); function... Output: var_dump: string(1) "f" is_callable: 1 Calla...
Created by alfa on April 11, 2011 21:17:11    Last update: April 11, 2011 21:17:11
Some methods to create an array in Java: With literal initialization. // array of strings String[] dogs = { "Chihuah... With array constructor (array allocated by not the elements). // create a byte array byte[] buffer = new byte... Anonymous array to be used as a parameter in method invocation String.format("Hello %s, %s, %s!", new Object[] { ...
Created by James on October 11, 2010 19:01:28    Last update: January 11, 2011 20:38:56
Test page (click the "new window" icon to see the transition): <!DOCTYPE html> <html> <head> <title>jQu...
Created by James on October 11, 2010 18:14:41    Last update: January 11, 2011 20:36:01
Test page: <!DOCTYPE html> <html> <head> <title>jQu... Documentation: UI/Effects - jQuery JavaScript Library Effects - jQueryAPI
Created by James on October 12, 2010 16:17:05    Last update: October 12, 2010 16:18:31
The splice method cuts elements from an array, and returns the cut-off elements as a new array. a = [1, 2, 3, 4, 5, 6, 7]; b = a.splice(1, ...
Created by James on October 12, 2010 15:48:29    Last update: October 12, 2010 15:48:29
The pop method removes an element from the end of an array; the shift method removes an element from the beginning of an array: a = [1, 2, 3, 4]; a.pop(); // 4 a.shift(); /...
Created by James on September 10, 2010 23:01:14    Last update: September 10, 2010 23:01:14
By default, heights for jQuery UI tab panels expand or contract depending on the height of each tab. The code snippet here sets the height of all tabs to be equal to that of the container. <!DOCTYPE html> <html> <head> <title>jQu...
Created by James on September 03, 2010 15:34:30    Last update: September 03, 2010 15:34:43
Combine the elements of a JavaScript array to a string by the join method: a = [ 'Eeny', 'meeny', 'miny', 'moe' ]; a.join(...
Created by James on September 03, 2010 15:28:59    Last update: September 03, 2010 15:28:59
For a JavaScript array, the push method appends an element to the end, the unshift method inserts an element to the beginning. The following code yields the array [1, 2, 3, 4] : a = []; a.push(3); a.push(4); a.unshift(2...
Previous  1 2 Next