Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.
Ctrl+C | copy current line (if no selection) |
Ctrl+X | cut current line (if no selection) |
Ctrl+⇧+K | delete line |
Ctrl+↩ | insert line after |
// phantomjs --web-security=no most_used_css_property_names.js | |
var urls = [ | |
'http://google.com', | |
'http://facebook.com', | |
'http://youtube.com', | |
'http://yahoo.com', | |
'https://github.com/', | |
'http://twitter.com/', | |
'http://en.wikipedia.org/wiki/Main_Page', |
// Conway's Game of Life for HTML5 Canvas | |
// By Simon Laroche | |
var FPS = 5; | |
var paused = true; | |
var gameStarted = false; | |
var gLoop; | |
var generations = 0; | |
var population = 0; |
html, body { | |
background-color: black; | |
width: 100%; | |
height: 100%; | |
margin: 0; | |
} | |
canvas { | |
display: block; | |
margin: 0; |
html, body { | |
background-color: black; | |
width: 100%; | |
height: 100%; | |
margin: 0; | |
} | |
canvas { | |
display: block; | |
margin: 0; |
html, body { | |
background-color: black; | |
width: 100%; | |
height: 100%; | |
margin: 0; | |
} | |
canvas { | |
display: block; | |
margin: 0; |
# HTTP Status Cats | |
# Apache (htaccess) config created by @dave1010 | |
# Licensed CC BY 2.0 | |
# Images CC BY 2.0, from GirlieMac's photostream: | |
# http://www.flickr.com/photos/girliemac/sets/72157628409467125/with/6508023065/ | |
# Usage: copy save this file as .htaccess or add it to your httpd.conf | |
ErrorDocument 404 '<a href="http://www.flickr.com/photos/girliemac/6508022985/" title="404 - Not Found by GirlieMac, on Flickr"><img src="http://farm8.staticflickr.com/7172/6508022985_b22200ced0.jpg" width="500" height="400" alt="404 - Not Found"></a>' |
var util = require('util'), | |
http = require('http'), | |
events = require('events'); | |
var Twitter = function(opts) { | |
this.username = opts.username; | |
this.password = opts.password; | |
this.track = opts.track; | |
this.data = ''; | |
}; |
Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.
Ctrl+C | copy current line (if no selection) |
Ctrl+X | cut current line (if no selection) |
Ctrl+⇧+K | delete line |
Ctrl+↩ | insert line after |
// Hide URL Bar for iOS and Android "level above next level" | |
// streamlined version without extension part | |
// slowly moving it to perfection... | |
MBP.hideUrlBar = function () { | |
if ( !location.hash ) { | |
doScrollTop = setInterval(function(){ | |
public static Result list() | |
{ | |
ObjectNode json = Json.newObject(); | |
ArrayNode arr = json.arrayNode(); | |
ObjectNode element1 = Json.newObject(); | |
element1.put("title", 123); | |
element1.put("content", 123); | |
arr.add(element1); |