I hereby claim:
- I am nicolaracco on github.
- I am gawaine (https://keybase.io/gawaine) on keybase.
- I have a public key whose fingerprint is 393F 9DE5 851F E42B F7EC D433 FBF3 A259 E8B8 532B
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
# | |
# God under multi-user RVM | |
# | |
# http://god.rubyforge.org | |
# http://beginrescueend.com/integration/god/ | |
# | |
# chkconfig: - 85 15 | |
# description: Control the God gem. Expects the gem to \ | |
# to be installed under a multi-user RVM \ |
(function() { | |
var setupDatePickerGlue = function($el, format) { | |
var elName = $el.attr("name"), // field name | |
elId = $el.attr("id"), // field id | |
elValue = $el.attr("value"); // field raw value | |
// remove the name to prevent value conflict on submit | |
$el.removeAttr("name"); | |
// prepend an hidden input field with the same name | |
$el.before($("<input type='hidden' name='" + elName + "' id='raw-" + elId + "' />")); |
# app.coffee | |
require 'express' | |
class Server | |
constructor: -> | |
@app = express() | |
@server = http.createServer(@app) | |
@io = SocketIO.listen @server, logger: @logger | |
@configure_app() |
# app.coffee | |
require 'express' | |
class Server | |
constructor: -> | |
@app = express() | |
@server = http.createServer(@app) | |
@io = SocketIO.listen @server, logger: @logger | |
@configure_app() |
require 'mina/bundler' | |
require 'mina/rails' | |
require 'mina/git' | |
require 'mina/rvm' | |
set :domain, 'server.ovofarm.com' | |
set :user, 'user' | |
set :forward_agent, true | |
set :deploy_to, '/var/apps/studioinnovo' | |
set :repository, 'ssh://[email protected]/gawaine/studioinnovo.git' |
#using excel | |
ExcelFile::Sheet.defile :game_of_thrones_episodes do | |
#dunno @ the moment | |
end | |
ExcelFile::Row.define :episode_row do | |
attribute :name | |
attribute :index | |
attribute :description |
Class Product | |
options: ['size', 'fitting', 'last'] | |
constructor: (@availabilities) -> | |
@bindEvents() | |
bindEvents: -> | |
for option in @options | |
callback = _(@optionClickHandler).bind @, option | |
@container(option).find('a').click callback |
function testWithoutParentheses() { | |
var start = new Date(); | |
var end; | |
var a = 0; | |
for (var i = 0; i < 1000000000; i++) | |
if (i % 2 == 0) | |
a++; | |
end = new Date(); | |
return end-start; | |
} |
class Carta { | |
private static enum Seme { Oro, Bastoni, Coppe, Spade } | |
private int value; | |
private Seme seme; | |
public Carta(int value, Seme seme) { this.value = value; this.seme = seme; } | |
public int getValue() { return int; } | |
public Seme getSeme() { return seme; } | |
} |