Skip to content

Instantly share code, notes, and snippets.

@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
@max-giro
max-giro / perlin-noise-classical.js
Created March 6, 2012 20:39 — forked from banksean/perlin-noise-classical.js
two Perlin noise generators in javascript. The simplex version is about 10% faster (in Chrome at least, haven't tried other browsers)
// Ported from Stefan Gustavson's java implementation
// http://staffwww.itn.liu.se/~stegu/simplexnoise/simplexnoise.pdf
// Read Stefan's excellent paper for details on how this code works.
//
// Sean McCullough banksean@gmail.com
/**
* You can pass in a random number generator object if you like.
* It is assumed to have a random() method.
*/
@max-giro
max-giro / Custom.css
Created February 6, 2012 18:07 — forked from bentruyman/Custom.css
IR_Black Theme for Chrome Developer Tools
/**********************************************/
/*
/* IR_Black Skin by Ben Truyman - 2011
/*
/* Based on Todd Werth's IR_Black:
/* http://blog.toddwerth.com/entries/2
/*
/* Inspired by Darcy Clarke's blog post:
/* http://darcyclarke.me/design/skin-your-chrome-inspector/
/*