start new:
tmux
start new with session name:
tmux new -s myname
| ('foo' in {}) |
| $stack, $draws = [], {} | |
| def method_missing *args | |
| return if args[0][/^to_/] | |
| $stack << args.map { |a| a or $stack.pop } | |
| $draws[$stack.pop(2)[0][0]] = args[1] if args[0] == :< | |
| end | |
| class Array | |
| def +@ |
| require 'epitools' | |
| class State | |
| attr_accessor :fore, :back, :attrs | |
| COLORS = [:black, :red, :green, :yellow, :blue, :magenta, :cyan, :white] | |
| ATTRS = { | |
| 0 => :reset, |
This installs a patched ruby 1.9.3-p327 with various performance improvements and a backported COW-friendly GC, all courtesy of funny-falcon.
You will also need a C Compiler. If you're on Linux, you probably already have one or know how to install one. On OS X, you should install XCode, and brew install autoconf using homebrew.
| #!/usr/bin/env ruby | |
| require 'socket' | |
| require 'openssl' | |
| require "base64" | |
| server = "some-irc.tld" | |
| port = "6667" | |
| nick = "Nickname#{rand(5000)}" | |
| channel = "#channel" |
Fibur is a library that allows concurrency during Ruby I/O operations without needing to make use of callback systems. Traditionally in Ruby, to achieve concurrency during blocking I/O operations, programmers would make use of Fibers and callbacks. Fibur eliminates the need for wrapping your I/O calls with Fibers and a callback. It allows you to write your blocking I/O calls the way you normally would, and still have concurrent execution during those I/O calls.
Say you have a method that fetches data from a network resource:
| >> IF = -> b { b } | |
| => #<Proc:0x007fb4e4049cc8 (lambda)> | |
| >> LEFT = -> p { p[-> x { -> y { x } } ] } | |
| => #<Proc:0x007fb4e403d680 (lambda)> | |
| >> RIGHT = -> p { p[-> x { -> y { y } } ] } | |
| => #<Proc:0x007fb4e4028ff0 (lambda)> | |
| >> IS_EMPTY = LEFT |
| 2 tone | |
| 2-step garage | |
| 4-beat | |
| 4x4 garage | |
| 8-bit | |
| acapella | |
| acid | |
| acid breaks | |
| acid house | |
| acid jazz |
---------- Forwarded message ----------
From: Mark S. Miller <erights@google.com>
Date: Tue, Nov 16, 2010 at 3:44 PM
Subject: "Future of Javascript" doc from our internal "JavaScript Summit"
last week
To: javascript-standard@google.com