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 / 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();
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
@ghedamat
ghedamat / keybase.md
Created October 25, 2014 15:44
keybase.md

Keybase proof

I hereby claim:

  • I am ghedamat on github.
  • I am ghedamat (https://keybase.io/ghedamat) on keybase.
  • I have a public key whose fingerprint is 3043 0DF7 E463 9A38 FAB9 F9B7 3DEF 8491 D979 43BE

To claim this, I am signing this object:

Redesign::Container.create! \
layout: :article,
slug: '/about',
data:{
hero:{
title:{
title1:"sdf",
@ghedamat
ghedamat / baby.elm
Created September 2, 2015 05:46
elm baby steps
reduce : (a -> a -> a -> a) -> a -> Tree a -> a
reduce f base tree =
case tree of
Empty -> base
Node v left right ->
f v
(reduce f base left)
(reduce f base right)
sum tree =
@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 / 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 / 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