Skip to content

Instantly share code, notes, and snippets.

@fery
fery / token_request
Created October 8, 2014 10:52
Fonehouse Integration
# Something
service name do
start_command "python #{app_path}/runner.py start"
stop_command "python #{app_path}/runner.py stop"
restart_command "python #{app_path}/runner.py stop"
end
application name do
environment_name node['environment_name']
repository "git@github.com:shutl/#{name}.git"
;; peepopen.el --- Graphical file chooser for Emacs on Mac OS X.
;; Copyright (C) 2010 Topfunky Corporation <http://peepcode.com>
;; Licensed under the same terms as Emacs.
;; Version: 0.1.0
;; Keywords: textmate osx mac
;; Created: 8 April 2010
;; Author: Geoffrey Grosenbach <boss@topfunky.com>
autocompleteApp = angular.module "autocompleteApp", []
autocompleteApp.controller "AutocompleteCtrl", ["$scope", ($scope) ->
$scope.results = ["one", "two", "three"]
]
@fery
fery / angularjs.coffee
Last active December 27, 2015 13:49 — forked from toddboom/ember.html
autocompleteApp = angular.module "autocompleteApp", []
autocompleteApp.controller "AutocompleteCtrl", ["$scope", ($scope) ->
$scope.results = ["one", "two", "three"]
]
@fery
fery / gist:1111313
Created July 28, 2011 10:03
One line-ish GUID rfc4122 compliant
def guid
'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.gsub(/[xy]/) do |c|
r = (rand()*16).floor; v = c == 'x' ? r : (r&0x3|0x8);
v.to_s(16)
end
end
@fery
fery / gist:974429
Created May 16, 2011 13:18
Something
(function (){
function vScroll (el, options) {
var that = this, doc = document;
that.wrapper = $(el);
that.wrapper.style.overflow = 'hidden';
that.scroller = new vScroller(el, options);