Skip to content

Instantly share code, notes, and snippets.

View findzen's full-sized avatar

Justin Taylor findzen

  • Los Angeles, CA
View GitHub Profile
@findzen
findzen / gist:3708434
Created September 12, 2012 17:32
git shortcuts
#### 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'
@findzen
findzen / goldroom
Created October 29, 2013 00:40
Should I go to the Gold Room tonight?
curl -s golden-api.herokuapp.com?text=1 | say -v Alex
@findzen
findzen / Usage.md
Created September 25, 2013 17:55 — forked from 8bitDesigner/README.md

6-Line Static file server

Handy for when working on single-page apps

Usage

  1. Copy server.js to your project
  2. npm install express
  3. node ./server
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<div>
<button
is="hitbox-button"
@findzen
findzen / hammerTime.js
Created November 5, 2015 02:17
Stop. Hammer time.
;(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';
@findzen
findzen / Monokai Bright.tmTheme.xml
Created October 15, 2012 22:55
Monokai Bright w/ custom SublimeLinter colors
<?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>
@findzen
findzen / gist:3785293
Created September 26, 2012 00:32
Songs in code
// Hip-Hop Junkies
var favoriteCartoon:String = "Pete's Rickety Rocket";
marriage();
honeymoon();
damn(me);
me.gag(spoon);
myRhymes > ammonia;
me == diamond;
@findzen
findzen / cookie.js
Created July 24, 2012 22:59
Cookie
@findzen
findzen / gist:2765591
Created May 22, 2012 00:11
Parse Twitter RSS feed and cache using SimplePie
<?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 )
@findzen
findzen / gist:2763272
Created May 21, 2012 16:58
StorageRoom webhook test
<?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 */