Tested: 6th March 2019
Download rom here: https://brew.sh/ `
Tested: 6th March 2019
Download rom here: https://brew.sh/ `
/** | |
* This code is licensed under the terms of the MIT license | |
* | |
* Deep diff between two object, using lodash | |
* @param {Object} object Object compared | |
* @param {Object} base Object to compare with | |
* @return {Object} Return a new object who represent the diff | |
*/ | |
function difference(object, base) { | |
function changes(object, base) { |
if has('vim_starting') | |
set nocompatible " Be iMproved | |
set runtimepath+=~/.vim/bundle/neobundle.vim/ | |
endif | |
call neobundle#rc(expand('~/.vim/bundle/')) | |
" Let NeoBundle manage NeoBundle | |
NeoBundleFetch 'Shougo/neobundle.vim' |
require "savon" | |
module Savon | |
module SOAP | |
class XML | |
attr_accessor :header_attributes | |
def to_xml | |
@xml ||= tag(builder, :Envelope, complete_namespaces) do |xml| |
# RubyGems has this functionality built-in. Just specify | |
# the particular version you want to use as the first argument | |
# of the command, surrounded by underscores. | |
$ gem install rails --version 3.0.9 | |
... | |
$ gem install rails --pre | |
... | |
$ rbenv rehash | |
$ rails --version |
var net = require('net'); | |
var connectTimes = []; | |
function connect() { | |
var socket = new net.Socket({type: 'tcp4'}); | |
var time = Date.now(); | |
socket.setTimeout(30000); | |
//socket.connect(5015, '66.228.62.138'); | |
socket.connect(5012, 'fragola.sfarm1.com'); |
class Calculator::PulpRate < Calculator | |
preference :category1_rate, :decimal, :default => 0 | |
preference :category2_rate, :decimal, :default => 0 | |
preference :category3_rate, :decimal, :default => 0 | |
preference :category4_rate, :decimal, :default => 0 | |
preference :category5_rate, :decimal, :default => 0 | |
WEIGHT_RANGES = { | |
0..350 => :preferred_category1_rate, | |
351..500 => :preferred_category2_rate, |
#!/usr/bin/env ruby | |
HELP = <<EOS | |
Freshbridge helps you to create an invoice with items from a Pivotal Tracker Project. | |
Just to avoid mess your stuff - this script don't create invoices - just update an existent invoice. | |
DEPENDENCIES: | |
- freshbooks | |
- HTTParty | |
EOS |