Skip to content

Instantly share code, notes, and snippets.

View gf3's full-sized avatar
🍊
workin' goodly

Gianni Chiappetta gf3

🍊
workin' goodly
View GitHub Profile
@gf3
gf3 / NaturalMotion.swift
Created February 29, 2016 19:35 — forked from maciekish/NaturalMotion.swift
Easy UIInterpolatingMotionEffect. Learn more: http://hack.swic.name/easy-uiinterpolatingmotioneffect
//
// NaturalMotion.swift
//
// Created by Maciej Swic on 2014-06-06.
// Released under the MIT license.
//
import UIKit
extension UIView {
ּ_בּ
בּ_בּ
טּ_טּ
כּ‗כּ
לּ_לּ
מּ_מּ
סּ_סּ
תּ_תּ
٩(×̯×)۶
٩(̾●̮̮̃̾•̃̾)۶
@gf3
gf3 / foo.rb
Created January 22, 2013 22:17 — forked from stouset/foo.rb
class Foo
autoload :Bar, 'foo/bar'
autoload :Baz, 'foo/baz'
end
@gf3
gf3 / Rakefile
Created September 28, 2011 08:47 — forked from alexaivars/Rakefile
sass, haml & coffescript watcher
require 'rake/clean'
BIN = "public_html"
HAML = FileList['**/*.haml']
LESS = FileList['**/*.less']
COFFEE = FileList['**/*.coffee']
SASS = FileList['**/*.scss']
HTML = HAML.ext('html')
var elemDisplays = {},
// Store the iframe outside the function to reuse it
iframe;
function defaultDisplay( nodeName ) {
if ( !elemDisplays[ nodeName ] ) {
// Try the classical method first, which is far faster
var elem = document.createElement( nodeName ),
display;
document.body.appendChild( elem );
(function() {
var css =
[ '/css/default.css'
, '/css/section.css'
, '/css/custom.css'
]
, i = -1
, link = document.createElement( 'link' )
, head = document.getElementsByTagName( 'head' )[0]
, tmp
/*!
* jQuery whenLoaded - v0.1pre - 06/25/2010
* http://benalman.com/
*
* Copyright (c) 2010 "Cowboy" Ben Alman
* Dual licensed under the MIT and GPL licenses.
* http://benalman.com/about/license/
*/
// NOTE: TOTALLY UNTESTED!
i = [10,20,30,40,50].index {|n| n > 20 }
@gf3
gf3 / html5.vim
Created May 5, 2010 15:27 — forked from rcmachado/html5.vim
vim HTML5 Syntax File
" Vim syntax file
" Language: HTML (version 5)
" Maintainer: Rodrigo Machado <rcmachado@gmail.com>
" URL: http://rm.blog.br/vim/syntax/html.vim
" Last Change: 2009 Aug 19
" License: Public domain
" (but let me know if you liked it :) )
"
" Note: This file just adds the new tags from HTML 5
" and don't replace default html.vim syntax file
/*
userData = {
'person1' : [1,2,3,4],
'person2' : [3,4,5,6]
}
function returns
{
'person1': {'person2': [3, 4]},