Work in progress.
A Pen by Keegan Brown on CodePen.
| $('body').hammer(); | |
| $('body').on({ | |
| 'touchstart': function(e) { | |
| e.preventDefault(); | |
| }, | |
| 'pan': function(e) { | |
| console.log(e); | |
| if (e.gesture.deltaY > 2) { | |
| master.reverse(); | |
| } else if (e.gesture.deltaY < -2) { |
| /****************************************************************************** | |
| * File: FactoradicPermutation.hh | |
| * Author: Keith Schwarz (htiek@cs.stanford.edu) | |
| * | |
| * An algorithm for manipulating and generating permutations in lexicographic | |
| * order by using the factoradic number system. | |
| * | |
| * The factoradic number system (also called the factorial number system) is a | |
| * way of writing out numbers in a base system that depends on factorials, | |
| * rather than powers of numbers. In the factoradic system, the last digit is |
| function watch_header () { | |
| TweenMax.set('.fixed-header-img-obj', { y: ScrollTop/2, z:0.1 }); | |
| } | |
| TweenMax.ticker.addEventListener( 'tick', function () { | |
| watch_header(); | |
| }); |
| #!/bin/bash | |
| for filename in /vagrant_www/wp-content/themes/*; do | |
| echo $(basename "$filename"); | |
| rm /srv/www/wordpress-default/wp-content/themes/$(basename "$filename") | |
| ln -s /vagrant_www/wp-content/themes/$(basename "$filename") /srv/www/wordpress-default/wp-content/themes/$(basename "$filename") | |
| done |
| for ( var i in this ) { | |
| console.println( i + " : " + ( typeof this[i]) ); | |
| } | |
| hidden : boolean | |
| info : object | |
| layout : string | |
| filesize : number | |
| documentFileName : string |
| for ( var i in this ) { | |
| console.println( i + " : " + this[i] ); | |
| } | |
| hidden : false | |
| info : [object Info] | |
| layout : SinglePage | |
| filesize : 2421706 | |
| documentFileName : TESTING.pdf | |
| path : /Macintosh HD/Users/XXXXXXX/TESTING.pdf | |
| numPages : 2 |
| var p1 = { | |
| x: 20, | |
| y: 20 | |
| }; | |
| var p2 = { | |
| x: 40, | |
| y: 40 | |
| }; |
Work in progress.
A Pen by Keegan Brown on CodePen.
A Pen by Keegan Brown on CodePen.
| //create an object | |
| var friends = {}; | |
| //add people to it | |
| friends.bill = { //observe this declaration as bill is an object of friends | |
| firstName: "Bill", | |
| lastName: "Gates", | |
| number: "(206) 555-5555", | |
| address: ['One Microsoft Way','Redmond','WA','98052'] | |
| }; |