Skip to content

Instantly share code, notes, and snippets.

View lorn's full-sized avatar
🏠
Working from home

Lindolfo Rodrigues lorn

🏠
Working from home
View GitHub Profile
Installing re-smop
utf8-string ( haskell package )
$ cd pugs/third-party/packages/hackage.haskell.org/utf8-string/
tar -vxzf utf8-string-0.3.1.1 ...
cd utf8 ...
chmod +x Setup.lhs
HARNESS_PERL_SWITCHES=-MDevel::Cover make test
cover
@lorn
lorn / moose
Created January 14, 2010 19:43
06:01 <@stevan> CLOS => the MOP
06:01 <@stevan> Smalltalk => the Metaclass layer and how Class and Object work together
06:02 <@stevan> Java => ... hmm, I should probably take that one out cause I cant think of anything
06:02 <@stevan> BETA => inner() ... and some of their meta-level stuff
06:02 <@rjbs> So, I've decuded that inner() is pretty much the only thing Moose gives me over Mouse, so I'm switching.
06:02 <@stevan> OCaml => the module system and the type system
http://www.iinteractive.com/moose/hosted-presentations/2009/e-lamp-talk/perl-great-lannguages.xul
script/dispatch.fcgi -l /tmp/myapp.socket -n 5 -d
# fcgi debug on DH :D
@lorn
lorn / plack.pod
Created September 22, 2010 02:24

PSGI, Plack, Bada bing bada boom!

PSGI é uma especificação, Plack é uma implementação dessa especificação feita em Perl, antes de vermos mais sobre o PSGI e o Plack, vamos voltar um pouco no tempo?

"Great Scott"!

upstream manager {
# fail_timeout=0 means we always retry an upstream even if it failed
# to return a good HTTP response (in case the Unicorn master nukes a
# single worker for timing out).
server unix:/opt/x.com/manager/current/tmp/sockets/unicorn.sock fail_timeout=0;
}
server {
listen 80;
#!/usr/bin/perl
=head1 NAME
conta_acessos
=head1 DESCRIPTION
=head1 AUTHOR
@lorn
lorn / spoj.txt
Created March 11, 2011 21:43
spoj problem to resolve
MORSE - ACODE - BASE - CANTON - DIVSUM - ENCONDIN
@lorn
lorn / irssi_config
Created March 16, 2011 14:49
irssi config
servers = (
{
address = "irc.freenode.net";
port = "6667";
password = "suasenha";
use_ssl = "no";
ssl_verify = "no";
autoconnect = "yes";
chatnet = "freenode";
},
Building & engineering around startup uncertainty - Mike Krieger
[Slides]
Confusion sinks startups, so we need to fight it. First thing that needs to be handled is the product itself, and what needs to be built. The second part is the technical challenges that happen with building said product.
Instagram came out of a project called burbn. It was an HTML5 app that did social/mobile/location stuff. The most asked question was “what are you guys?” You have to actually focus on something. And it took them three months to get less confused.
They did this by doing four things:
ideate