Skip to content

Instantly share code, notes, and snippets.

Jamie York ziadoz

Block or report user

Report or block ziadoz

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View CSS3 Media Queries Template
* Author:
/* Smartphones (portrait and landscape) ----------- */
@media only screen
and (min-device-width : 320px)
and (max-device-width : 480px) {
/* Styles */
mrdoob / RequestAnimationFrame.js
Created Feb 22, 2011
Provides requestAnimationFrame in a cross browser way.
View RequestAnimationFrame.js
* Provides requestAnimationFrame in a cross browser way.
* @author paulirish /
if ( !window.requestAnimationFrame ) {
window.requestAnimationFrame = ( function() {
return window.webkitRequestAnimationFrame ||
marcoarment / Bcrypt.php
Created Jun 29, 2011
Simple PHP 5.3+ Bcrypt class and functions
View Bcrypt.php
By Marco Arment <>.
This code is released in the public domain.
Usage example:
// In a registration or password-change form:
lukas-vlcek / gist:1075067
Created Jul 10, 2011
Test of attachments plugin
View gist:1075067
curl -X DELETE "${host}/test"
curl -X PUT "${host}/test" -d '{
"settings" : { "index" : { "number_of_shards" : 1, "number_of_replicas" : 0 }}
jt /
Created Aug 23, 2011
Merge a forked gist

If someone forks a gist and you'd like to merge their changes. Do this:

  1. clone your repo, I use the name of the gist

     git clone git:// gist-1163142
  2. add a remote for the forked gist, I'm using the name of my fellow developer

     git remote add aaron git://
CHH / MetaObject.php
Created Aug 30, 2011
PHP does Meta Programming too! (Requires PHP 5.4)
View MetaObject.php
namespace CHH;
trait MetaObject
protected static $__metaClass;
static function setMetaClass(MetaClass $metaClass)
rtomayko / optparse-template.rb
Last active Aug 15, 2019
Ruby optparse template
View optparse-template.rb
#!/usr/bin/env ruby
#/ Usage: <progname> [options]...
#/ How does this script make my life easier?
# ** Tip: use #/ lines to define the --help usage message.
$stderr.sync = true
require 'optparse'
# default options
flag = false
option = "default value"
paulirish / rAF.js
Last active Sep 16, 2019
requestAnimationFrame polyfill
View rAF.js
// requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel
// MIT license
(function() {
var lastTime = 0;
var vendors = ['ms', 'moz', 'webkit', 'o'];
bjhess / st_cheat.txt
Created Jan 11, 2012
Sublime Text Cheatsheet
View st_cheat.txt
cmd-p Goto Anything ('@' for functions, ':' for line number)
cmd-r Function finder
ctl-g Goto line number
cmd-sft-p Command palette
cmd-sft-f Find in Files
cmd-opt-r Toggle regex when finding
cmd-opt-# Columns
ctr-# Switch columns
ziadoz /
Last active Sep 13, 2019
Awesome PHP — A curated list of amazingly awesome PHP libraries, resources and shiny things.
You can’t perform that action at this time.