Skip to content

Instantly share code, notes, and snippets.

Avatar

Marcus Ramberg marcusramberg

View GitHub Profile
View hoho
merrily around the mistletoe
Merrily we go.. Around and around we are spinning, faster and faster as the years go by
View gist:9024518
blogs_count=3
blogs=['vg.no','google.com','meatchat.com','wat.com']
i=0
feeds=[]
while i <= blogs_count
feeds << blogs[i]
i+=1
end
feeds
View gist:9032876
wirc@wirc:~/convos$ CONVOS_REDIS_URL=redis://127.0.0.1:6379/1 MOJO_MODE=production ./vendor/bin/carton exec -- hypnotoad -f script/convos
Server available at http://127.0.0.1:8585.
Mojo::Reactor::EV: Timer 70c90200485c62b61b8b2f7b8cdb3f64 failed: Mojo::IOLoop::Delay: Can't call method "req" on an undefined value at /home/wirc/convos/local/lib/perl5/Mojolicious/Controller.pm line 261.
256: }
257: $self->tx->resume;
258: return $self;
259: }
260:
261: sub req { shift->tx->req }
262: sub res { shift->tx->res }
View gist:9039077
Call for papers / Call for speakers - Mojoconf 2014
TLDR;
* CfP Mojoconf 2012
* Date: 2014-03-24
* Deadline: 2014-03-15
* Submit 20min/40min talks: http://www.mojoconf.org/mojo2014/newtalk
As previously announced the first Mojolicious related conference ever, Mojoconf 2014, will be hosted by Oslo.pm in Oslo, Norway during the weekend of May 23rd to 25th.
View gist:9266063
npm http GET https://registry.npmjs.org/jsx
npm http GET https://registry.npmjs.org/jsx
npm http GET https://registry.npmjs.org/jsx
npm http GET https://registry.npmjs.org/source-map
npm http GET https://registry.npmjs.org/esprima
npm http GET https://registry.npmjs.org/source-map-support
npm http GET https://registry.npmjs.org/escodegen
npm http GET https://registry.npmjs.org/esmangle
npm http 304 https://registry.npmjs.org/esmangle
View gist:9388398
You CHOSE Hoefler Text italic
#<struct Font::BuiltinFont name="Hoefler Text", style="regular", postscript_name="HoeflerText-Regular">
You CHOSE Avenir Condensed bold
GOTCHA
#<struct Font::BuiltinFont name="Avenir Condensed", style="bold", postscript_name="AvenirNextCondensed-DemiBold">
You CHOSE Hoefler Text bold-italic
GOTCHA
#<struct Font::BuiltinFont name="Hoefler Text", style="bold-italic", postscript_name="HoeflerText-BlackItalic">
You CHOSE Didot bold-italic
#<struct Font::BuiltinFont name="Didot", style="regular", postscript_name="Didot">
View gist:9932568
> ssh -vvv stagolee
OpenSSH_6.2p2, OSSLShim 0.9.8r 8 Dec 2011
debug1: Reading configuration data /Users/marcus/.ssh/config
debug1: /Users/marcus/.ssh/config line 1: Applying options for *
debug1: /Users/marcus/.ssh/config line 36: Applying options for stagolee
debug1: Reading configuration data /etc/ssh_config
debug1: /etc/ssh_config line 20: Applying options for *
debug1: /etc/ssh_config line 53: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Executing proxy command: exec ssh direct.nordaaker.com -W stagolee:22
View gist:9950312
var factor = container.width() / alignment.cropW;
var img = headerImage.find('img');
var croppedCss = {
top: 0-Math.floor(alignment.cropY*factor),
left: 0-Math.floor(alignment.cropX*factor),
position: 'relative'
};
View gist:9988494
### Keybase proof
I hereby claim:
* I am marcusramberg on github.
* I am marcus (https://keybase.io/marcus) on keybase.
* I have a public key whose fingerprint is 952A AFAF 7BDD 5C91 978F 971B 97CE F137 E11E 2F92
To claim this, I am signing this object:
View gist:11245478
Fetching gem metadata from https://rubygems.org/.......
Fetching additional metadata from https://rubygems.org/..
Using rake 10.1.1
Using i18n 0.6.9
Using multi_json 1.8.4
Using activesupport 3.2.16
Using builder 3.0.4
Using activemodel 3.2.16
Using airbrake 3.1.15
Using json 1.8.1