Skip to content

Instantly share code, notes, and snippets.

@max-giro
max-giro / LICENSE.txt
Created June 26, 2012 15:03 — forked from sindresorhus/LICENSE.txt
Photo Booth (140byt.es)
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2012 Sindre Sorhus <http://sindresorhus.com>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@max-giro
max-giro / hideaddrbar.js
Created June 12, 2012 04:04 — forked from jayproulx/hideaddrbar.js
Normalized hide address bar for iOS & Android
/*
* Normalized hide address bar for iOS & Android
* (c) Scott Jehl, scottjehl.com
* MIT License
*/
(function( win ){
var doc = win.document;
// If there's a hash, or addEventListener is undefined, stop here
if( !location.hash && win.addEventListener ){
@max-giro
max-giro / hideaddrbar.js
Created June 12, 2012 03:59 — forked from scottjehl/hideaddrbar.js
Normalized hide address bar for iOS & Android
/*
* Normalized hide address bar for iOS & Android
* (c) Scott Jehl, scottjehl.com
* MIT License
*/
(function( win ){
var doc = win.document;
// If there's a hash, or addEventListener is undefined, stop here
if( !location.hash && win.addEventListener ){
@max-giro
max-giro / .gitignore
Created May 31, 2012 15:50 — forked from bkeepers/.gitignore
My Sublime settings
*
@max-giro
max-giro / gist:2838353
Created May 30, 2012 19:12 — forked from metaskills/gist:1932882
Custom Sass Mixin To Supplement Compass' Transition Tools
@mixin animation (
$name: false,
$duration: false,
$timing_function: false,
$delay: false,
$iteration_count: false,
$direction: false
) {
@if $name { -webkit-animation-name: $name; -moz-animation-name: $name; -ms-animation-name: $name; }
@if $duration { -webkit-animation-duration: $duration; -moz-animation-duration: $duration; -ms-animation-duration: $duration; }
@max-giro
max-giro / gist:2838352
Created May 30, 2012 19:11 — forked from metaskills/gist:1932866
Sass Color Extensions For HSV
class Sass::Script::Color < Sass::Script::Literal
class << self
def new_hsv_float(hue, saturation, value)
zero_to_threesixty = lambda { |x| x < 0 ? 0 : (x > 360 ? 360 : x) }
zero_to_onehundred = lambda { |x| x < 0 ? 0 : (x > 100 ? 100 : x) }
hue = zero_to_threesixty.call((hue * 360.0).round)
saturation = zero_to_onehundred.call((saturation * 100.0).round)
value = zero_to_onehundred.call((value * 100.0).round)
express.conf(5) User Manuals express.conf(5)
NAME
express.conf - configuration file for OpenShift
SYNOPSIS
Search order (on a per variable basis):
1) ~/.openshift/express.conf (Created on first usage of rhc client tools and can be customized per system user)
@max-giro
max-giro / awesome.html
Created May 17, 2012 04:19 — forked from max-mapper/awesome.html
node-serialport + arduino + popcorn.js DIY video scrubber
<html>
<head>
<script src="http://code.jquery.com/jquery-1.5.2.min.js"></script>
<script src="http://burritopizza.local/socket.io/socket.io.js"></script>
<script src="https://gist.github.com/raw/952547/f298c7e30d0978da0c78df0ff79436e883efbad2/gistfile1.txt"></script>
<script src="http://popcornjs.org/code/players/youtube/popcorn.youtube.js"></script>
<style type='text/css'>
body {
}
@max-giro
max-giro / raf.js
Created May 14, 2012 20:47 — forked from jessefreeman/raf.js
This plugin patches Impact to use RequestAnimationFrame which improves the performance of Impact games running on Win8.
ig.module(
'plugins.raf'
)
.requires(
'impact.system'
)
.defines(function(){
(function () {
var lastTime = 0;
@max-giro
max-giro / LICENSE.txt
Created April 22, 2012 18:27 — forked from 140bytes/LICENSE.txt
140byt.es -- Click ↑↑ fork ↑↑ to play!
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE