Handy for when working on single-page apps
- Copy server.js to your project
npm install express
node ./server
#### GIT #### | |
alias ga='git add' | |
alias gp='git push' | |
alias gl='git log' | |
alias gs='git status' | |
alias gd='git diff' | |
alias gdc='git diff --cached' | |
alias gm='git commit -m' | |
alias gma='git commit -am' | |
alias gb='git branch' |
curl -s golden-api.herokuapp.com?text=1 | say -v Alex |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<div> | |
<button | |
is="hitbox-button" |
;(function(window, document, undefined) { | |
'use strict'; | |
var img = document.createElement('img'); | |
var marquee = document.createElement('marquee'); | |
img.src = 'http://dhtmlconf.com/img/mchammer.gif'; | |
marquee.appendChild(img); | |
marquee.style.position = 'absolute'; |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>name</key> | |
<string>Monokai Bright</string> | |
<key>settings</key> | |
<array> | |
<dict> | |
<key>settings</key> |
// Hip-Hop Junkies | |
var favoriteCartoon:String = "Pete's Rickety Rocket"; | |
marriage(); | |
honeymoon(); | |
damn(me); | |
me.gag(spoon); | |
myRhymes > ammonia; | |
me == diamond; |
<?php | |
require_once 'lib/simplepie.inc'; | |
require_once 'lib/json_format.php'; | |
$response = array( | |
'tweets' => parse_feed( 'http://search.twitter.com/search.atom?q=from%3acnnbrk+OR+from%3anpratc' ) | |
); | |
function parse_feed( $url ) |
<?php | |
$file = fopen( 'test.json', 'w' ) or die( 'Failed to open file' ); | |
$json = file_get_contents( 'php://input' ); | |
fwrite( $file, $json ) or header( 'HTTP/1.1 500 Internal Server Error' ); | |
fclose( $file ); | |
/* EOF */ |