(function() { | |
var buttonPrefix = "+"; | |
var buttonTag = "button"; | |
var categoryTag = "category"; | |
var commandTag = "cmd"; | |
var confirmTag = "confirm"; | |
var displayTag = "display"; | |
var errorTag = "error"; | |
var formatTag = "format"; | |
var linkedTag = "linked"; |
-- Control frame information ----------------------------------------------- | |
c:0006 p:---- s:0017 e:000016 CFUNC :send_objectspace_dump | |
c:0005 p:0149 s:0014 e:000013 METHOD /Users/revathskumar/.rvm/rubies/ruby-2.3.0/lib/ruby/site_ruby/2.3.0/rbkit/server.rb:71 | |
c:0004 p:0051 s:0010 e:000009 BLOCK /Users/revathskumar/.rvm/rubies/ruby-2.3.0/lib/ruby/site_ruby/2.3.0/rbkit/server.rb:46 [FINISH] | |
c:0003 p:---- s:0007 e:000006 CFUNC :loop | |
c:0002 p:0009 s:0004 e:000003 BLOCK /Users/revathskumar/.rvm/rubies/ruby-2.3.0/lib/ruby/site_ruby/2.3.0/rbkit/server.rb:42 [FINISH] | |
c:0001 p:---- s:0002 e:000001 (none) [FINISH] | |
-- Ruby level backtrace information ---------------------------------------- | |
/Users/revathskumar/.rvm/rubies/ruby-2.3.0/lib/ruby/site_ruby/2.3.0/rbkit/server.rb:42:in `block in start' |
-- The C compiler identification is AppleClang 6.1.0.6020053 | |
-- The CXX compiler identification is AppleClang 6.1.0.6020053 | |
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc | |
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc -- works | |
-- Detecting C compiler ABI info | |
-- Detecting C compiler ABI info - done | |
-- Detecting C compile features | |
-- Detecting C compile features - done | |
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ | |
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ -- works |
<?php | |
Class Api { | |
public static $log; | |
public static function setLogger($func) { | |
self::$log = &$func; | |
} | |
public static function errorLog($st) { |
<?php | |
class Service { | |
public function create() { | |
print "In service create\n"; | |
//try { | |
$this->send(); | |
//} | |
//catch(ServiceException $e) { | |
// print "catch service exception in create\n"; |
apt-get install -y build-essential git-core libyaml-dev | |
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 | |
curl -L get.rvm.io | bash -s stable | |
source /home/lookup/.rvm/scripts/rvm | |
rvm reload | |
rvm install 2.2.2 | |
gem install capistrano --no-ri --no-rdoc |
#!/bin/bash | |
# Pull this file down, make it executable and run it with sudo | |
# wget https://gist.githubusercontent.com/bryanhunter/10380945/raw/build-erlang-17.0.sh | |
# chmod u+x build-erlang-17.0.sh | |
# sudo ./build-erlang-17.0.sh | |
if [ $(id -u) != "0" ]; then | |
echo "You must be the superuser to run this script" >&2 | |
exit 1 | |
fi |
The introduction to Reactive Programming you've been missing
(by @andrestaltz)
So you're curious in learning this new thing called Reactive Programming, particularly its variant comprising of Rx, Bacon.js, RAC, and others.
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.
gem install rails | |
gem install mongoid | |
gem install pg | |
gem install mysql | |
gem install compass | |
gem install sass |