Skip to content

Instantly share code, notes, and snippets.

@febeling
febeling / gist:2604873
Created May 5, 2012 19:23
man redefined as a function for use with manservant (OS X)
function man() { open http://man.dev/$1 }
#!/usr/bin/env bash
apt-get -y update
apt-get -y install build-essential zlib1g-dev libssl-dev libreadline-gplv2-dev libyaml-dev
cd /tmp
wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p392.tar.bz2
tar -xvjf ruby-1.9.3-p392.tar.bz2
cd ruby-1.9.3-p392/
./configure --prefix=/usr/local
make
make install
$(function() {
var source = new EventSource('/events');
source.onopen = function (event) {
console.log("eventsource connection open");
};
source.onerror = function() {
if (event.target.readyState === 0) {
console.log("reconnecting to eventsource");
} else {
console.log("eventsource error");
febeling@flomac ~/t/jasmine> echo $NODE_PATH
/usr/local/lib/node_modules
febeling@flomac ~/t/jasmine>
febeling@flomac ~/t/jasmine> npm uninstall -g yo
unbuild yo@1.0.6
febeling@flomac ~/t/jasmine> echo $NODE_PATH
/usr/local/lib/node_modules
febeling@flomac ~/t/jasmine> yo -v
1.0.7-pre.1
febeling@flomac ~/t/jasmine> which yo
@febeling
febeling / 0working.png
Last active August 29, 2015 13:57
org-capture intro
0working.png

Elisp debugger cheat sheet

ccontinue
dstep-in
bflag frame for debugging when leaving frame again
uunflag frame for debugging when leaving
jflag frame and disable function-entry breakpoints
eeval expression in minibuffer
qquit
reval expression and set it as value of frame, continue

Keybase proof

I hereby claim:

  • I am febeling on github.
  • I am febeling (https://keybase.io/febeling) on keybase.
  • I have a public key whose fingerprint is 59D8 F767 ADC8 3398 B3A4 674A 6AE4 5AD5 3E46 E4ED

To claim this, I am signing this object:

Ruby example

This is a text part.

def name
  "Org"
end
puts name
@febeling
febeling / introrx.md
Last active August 29, 2015 14:10 — forked from staltz/introrx.md

The introduction to Reactive Programming you've been missing

(by @andrestaltz)

So you're curious in learning this new thing called (Functional) Reactive Programming (FRP).

Learning it is hard, even harder by the lack of good material. When I started, I tried looking for tutorials. I found only a handful of practical guides, but they just scratched the surface and never tackled the challenge of building the whole architecture around it. Library documentations often don't help when you're trying to understand some function. I mean, honestly, look at this:

Rx.Observable.prototype.flatMapLatest(selector, [thisArg])

Projects each element of an observable sequence into a new sequence of observable sequences by incorporating the element's index and then transforms an observable sequence of observable sequences into an observable sequence producing values only from the most recent observable sequence.

Build target ReacTable
Write auxiliary files
write-file /Users/febeling/Library/Developer/Xcode/DerivedData/ReacTable-fxcxpivtkwfimyftbtdccdyhjjvy/Build/Intermediates/ReacTable.build/Debug-iphonesimulator/ReacTable.build/Script-5080C9EF1A522958007F0EC9.sh
chmod 0755 /Users/febeling/Library/Developer/Xcode/DerivedData/ReacTable-fxcxpivtkwfimyftbtdccdyhjjvy/Build/Intermediates/ReacTable.build/Debug-iphonesimulator/ReacTable.build/Script-5080C9EF1A522958007F0EC9.sh
CompileC /Users/febeling/Library/Developer/Xcode/DerivedData/ReacTable-fxcxpivtkwfimyftbtdccdyhjjvy/Build/Intermediates/ReacTable.build/Debug-iphonesimulator/ReacTable.build/Objects-normal/x86_64/AppDelegate.o ReacTable/AppDelegate.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/febeling/dev/ReacTable