This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <matjack> dio che palle la vita | |
| <ju> sai che... | |
| <steffoz> guardate qui: http//bufferapp.com | |
| <macchiato> [ you can now mention http//bufferapp.com as @bufferapp ] | |
| <steffoz> niente male no? scrivi su @bufferapp i tweet e lui te li posta piano piano, solo in determinati orari #twitter #marketing | |
| <ju> ..stanotte ho fatto un sogno assurdo? | |
| <matjack> @bufferapp carino! #readlater | |
| <c1p8> @bufferapp bello, ma è più bello questo: http//saituilcazzo.com | |
| <macchiato> [ you can now mention http//saituilcazzo.com as @saituilcazzo ] | |
| <c1p8> ed in più @saituilcazzo è pure self-hostable, costa pochissimo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'nokogiri' | |
| require 'open-uri' | |
| dict = Nokogiri::HTML(open('http://meiert.com/en/indices/css-properties/')).css("table th code").map {|c| c.content}.inject({}) {|d, p| ss = p.split("-").map {|w| w[0,1]}.join; puts "#{p} #{ss}"; d[ss] ||= []; d[ss] << p; d } | |
| snippet_file = [] | |
| dict.each_pair do |shortcut, values| | |
| values.each do |value| | |
| snippet_file << "snippet #{shortcut} #{value}\n\t#{value}: " | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| snippet oo outline-offset | |
| outline-offset: ${1} | |
| snippet l left | |
| left: ${1} | |
| snippet atf animation-timing-function | |
| animation-timing-function: ${1} | |
| snippet lst list-style-type | |
| list-style-type: ${1} | |
| snippet cw column-width | |
| column-width: ${1} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| snippet oo outline-offset | |
| outline-offset: ${1} | |
| snippet le left | |
| left: ${1} | |
| snippet atf animation-timing-function | |
| animation-timing-function: ${1} | |
| snippet lst list-style-type | |
| list-style-type: ${1} | |
| snippet cw column-width | |
| column-width: ${1} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /bin/bash | |
| #PREFIX="/home/panda/fiat_race_ruby" | |
| #PIDFILE="$PREFIX/panda_thin.pid" | |
| #LOGFILE="$PREFIX/panda_thin.log" | |
| #USER="panda" | |
| #GROUP="panda" | |
| PREFIX="/Users/steffoz/dev/games/fiat" | |
| PIDFILE="$PREFIX/panda_thin.pid" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'formula' | |
| class Sshpass < Formula | |
| url 'http://downloads.sourceforge.net/project/sshpass/sshpass/1.05/sshpass-1.05.tar.gz' | |
| homepage 'http://sshpass.sourceforge.net/' | |
| md5 'c52d65fdee0712af6f77eb2b60974ac7' | |
| def install | |
| system "./configure", "--disable-debug", "--disable-dependency-tracking", | |
| "--prefix=#{prefix}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function() { | |
| $(function() { | |
| if (navigator.userAgent.match(/iPhone/i)) { | |
| return $(window).bind("orientationchange", function(event) { | |
| if (window.orientation === 90 || window.orientation === -90 || window.orientation === 270) { | |
| return $("meta[name=\"viewport\"]").attr("content", "height=device-width,width=device-height,initial-scale=1.0,maximum-scale=1.0"); | |
| } else { | |
| return $("meta[name=\"viewport\"]").attr("content", "height=device-height,width=device-width,initial-scale=1.0,maximum-scale=1.0"); | |
| } | |
| }).trigger("orientationchange"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'spec_helper' | |
| describe PieChartSpreadsheet do | |
| let(:past_data) { nil } | |
| let(:data) {[ | |
| {label: "bar", data: 2.0}, | |
| {label: "foo", data: 3.0}, | |
| {label: "abc", data: 6.0}, | |
| {label: "new", data: 6.0} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'unindent' | |
| class HappyBirthday | |
| def initialize(name, output = STDOUT) | |
| @name = name | |
| @output = output | |
| end | |
| def first_verse |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| time = | |
| sType: 'numeric' | |
| bUseRendered: no | |
| fnRender: (o, time) -> | |
| hours = Math.floor(time / 3600) | |
| time -= hours * 3600 | |
| minutes = Math.floor(time / 60) | |
| time -= minutes * 60 | |
| seconds = time | |
| "#{hours.pad()}:#{minutes.pad()}:#{seconds.pad()}" |