This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
⌘ Command | |
⌥ Option | |
⇧ Shift | |
⌃ Control | |
⌫ Backward Delete | |
⌦ Forward Delete | |
⎋ Escape | |
Eject | |
fn Fn Key | |
F1 Function |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var success = function(locationData){ | |
console.log("locationData object", locationData); | |
}, | |
error = function(err){ | |
console.log(err); | |
}; | |
if (navigator.geolocation) { | |
navigator.geolocation.getCurrentPosition(success, error, 10000); | |
} else { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Basic Dom2 Event Handler And Bubble Test</title> | |
</head> | |
<body> | |
<div id="container"> | |
<ul id="listContainer"> | |
<li id="item1">item1</li> | |
<li id="item2">item2</li> | |
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function cssAnimationEnd() { | |
element.addEventListener('webkitAnimationEnd', function (event) { | |
console.log("Finished animation!"); | |
}, false ); | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#On going list of bask commands that I always forget. | |
#Dropbox symlink for .bash_profile | |
$ln -s Dropbox/MacSetings/.bash_profile ~/.bash_profile | |
#Symbolic Link: | |
ln -s [TARGET DIRECTORY OR FILE] ./[SHORTCUT] | |
#Tail mongodb: | |
tail -f /usr/local/var/log/mongodb/mongo.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Module dependencies. | |
*/ | |
var express = require('express') | |
, routes = require('./routes') | |
, user = require('./routes/user') | |
, common = require('./routes/common') | |
, fs = require('fs') | |
, http = require('http') | |
, util = require('util') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~ $node | |
> var x= {"glossary":{"title":"example glossary","GlossDiv":{"title":"S","GlossList":{"GlossEntry":{"ID":"SGML","SortAs":"SGML","GlossTerm":"Standard Generalized Markup Language","Acronym":"SGML","Abbrev":"ISO 8879:1986","GlossDef":{"para":"A meta-markup language, used to create markup languages such as DocBook.","GlossSeeAlso":["GML","XML"]},"GlossSee":"markup"}}}}} | |
undefined | |
> x.glossary.GlossDiv.GlossList.GlossEntry | |
{ ID: 'SGML', | |
SortAs: 'SGML', | |
GlossTerm: 'Standard Generalized Markup Language', | |
Acronym: 'SGML', | |
Abbrev: 'ISO 8879:1986', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Var Roll = {} || Roll; | |
Roll.api = (function(){ | |
//private | |
var _private1 : function() { | |
return true; | |
} | |
var _private2 : function() { | |
return true; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Basic Dom2 Event Handler And Bubble Test</title> | |
</head> | |
<body> | |
<div id="container"> | |
<ul id="listContainer"> | |
<li id="item1">item1</li> | |
<li id="item2">item2</li> | |
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
div.container { | |
border: 1px solid #000000; | |
overflow: auto; | |
width: 100% | |
} |
OlderNewer