Skip to content

Instantly share code, notes, and snippets.

View ghedamat's full-sized avatar
🏔️
YakShaving

Mattia Gheda ghedamat

🏔️
YakShaving
View GitHub Profile
@ghedamat
ghedamat / Gemfile.lock 0.9.17
Created February 16, 2011 09:53
Gemfile 0.9.17
GEM
remote: http://rubygems.org/
specs:
activemodel (3.0.0)
activesupport (= 3.0.0)
builder (~> 2.1.2)
i18n (~> 0.4.1)
activerecord (3.0.0)
activemodel (= 3.0.0)
activesupport (= 3.0.0)
@ghedamat
ghedamat / Gemfile.lock 0.9.20
Created February 16, 2011 10:04
Gemfile padrino 0.9.20
GEM
remote: http://rubygems.org/
specs:
activemodel (3.0.4)
activesupport (= 3.0.4)
builder (~> 2.1.2)
i18n (~> 0.4)
activerecord (3.0.4)
activemodel (= 3.0.4)
activesupport (= 3.0.4)
@ghedamat
ghedamat / gist:829130
Created February 16, 2011 10:08
stack trace
Encoding::UndefinedConversionError - "\xC3" from ASCII-8BIT to UTF-8:
/usr/local/rvm/gems/ruby-1.9.2-p136/gems/haml-3.0.25/lib/haml/engine.rb:63:in `encode'
/usr/local/rvm/gems/ruby-1.9.2-p136/gems/haml-3.0.25/lib/haml/engine.rb:63:in `precompiled'
/usr/local/rvm/gems/ruby-1.9.2-p136/gems/tilt-1.2.2/lib/tilt.rb:499:in `precompiled_template'
/usr/local/rvm/gems/ruby-1.9.2-p136/gems/tilt-1.2.2/lib/tilt.rb:200:in `precompiled'
/usr/local/rvm/gems/ruby-1.9.2-p136/gems/tilt-1.2.2/lib/tilt.rb:250:in `evaluate_source'
/usr/local/rvm/gems/ruby-1.9.2-p136/gems/tilt-1.2.2/lib/tilt.rb:186:in `cached_evaluate'
/usr/local/rvm/gems/ruby-1.9.2-p136/gems/tilt-1.2.2/lib/tilt.rb:169:in `evaluate'
/usr/local/rvm/gems/ruby-1.9.2-p136/gems/tilt-1.2.2/lib/tilt.rb:489:in `evaluate'
/usr/local/rvm/gems/ruby-1.9.2-p136/gems/tilt-1.2.2/lib/tilt.rb:118:in `render'
@ghedamat
ghedamat / wmiirc.log.1
Created January 14, 2012 13:49
wmiirc tags.yaml error
#<Rumai::IXP::Error: file not found -- in reply to #<Rumai::IXP::Twalk:0xa2e9550 @fields=[#<Rumai::IXP::Struct::Field:0xa145564 @name=:tag, @format=2, @countee=nil, @counter=nil>, #<Rumai::IXP::Struct::Field:0xa12f8f4 @name=:fid, @format=4, @countee=nil, @counter=nil>, #<Rumai::IXP::Struct::Field:0xa12ee7c @name=:newfid, @format=4, @countee=nil, @counter=nil>, #<Rumai::IXP::Struct::Field:0xa12e710 @name=:nwname, @format=2, @countee=#<Rumai::IXP::Struct::ClassField:0xa12e008 @name=:wname, @format=String, @countee=nil, @counter=#<Rumai::IXP::Struct::Field:0xa12e710 ...>>, @counter=nil>, #<Rumai::IXP::Struct::ClassField:0xa12e008 @name=:wname, @format=String, @countee=nil, @counter=#<Rumai::IXP::Struct::Field:0xa12e710 @name=:nwname, @format=2, @countee=#<Rumai::IXP::Struct::ClassField:0xa12e008 ...>, @counter=nil>>], @values={:fid=>0, :newfid=>5, :wname=>["lbar", "2"], :tag=>5}>>
/usr/local/rvm/gems/ruby-1.9.3-p0/gems/rumai-4.1.3/lib/rumai/ixp/transport.rb:158:in `block in recv'
/usr/local/rvm/gems/ruby-1.9.3-p
@ghedamat
ghedamat / ember_resources.md
Created November 13, 2012 23:58
Ember resources
@ghedamat
ghedamat / Xvfb.init
Created November 27, 2012 18:03
Gentoo Xfvb init script
#!/sbin/runscript
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
PIDFILE=/var/run/xvfb
XVFB=/usr/bin/Xvfb
XVFBARGS=":0"
USER=youruser
start() {
{"nodes":[
{"name":"Agricultural 'waste'"},
{"name":"Bio-conversion"},
{"name":"Liquid"},
{"name":"Losses"},
{"name":"Solid"},
{"name":"Gas"},
{"name":"Biofuel imports"},
{"name":"Biomass imports"},
{"name":"Coal imports"},
@ghedamat
ghedamat / index.html
Last active December 11, 2015 12:18
test.json
<!DOCTYPE html>
<html>
<meta charset="utf-8">
<title>Sankey Diagram</title>
<style>
@import url(http://bost.ocks.org/mike/style.css?20120521);
#chart {
height: 500px;
<!DOCTYPE html>
<html>
<meta charset="utf-8">
<title>Sankey Diagram</title>
<style>
@import url(http://bost.ocks.org/mike/style.css?20120521);
#chart {
height: 500px;
@ghedamat
ghedamat / Brocfile.js
Created May 22, 2014 23:24
ember-cli assets fingerprint test
// default ember-cli brocfile
var fingerprint = require('broccoli-fingerprint');
//Example with default options
var tree = app.toTree();