Save an integer within the range [0, 127] in 1 bytes.
+--------+
|0XXXXXXX|
+--------+
$ cijoe -p 4000 . | |
/Users/benbjohnson/.rvm/gems/ruby-1.9.1-p378/gems/choice-0.1.4/lib/choice/parser.rb:108: warning: Hash#index is deprecated; use Hash#key | |
sh: line 0: cd: [/path/to/repo]: No such file or directory | |
sh: line 0: cd: [/path/to/repo]: No such file or directory | |
== Sinatra/1.0 has taken the stage on 4000 for development with backup from WEBrick | |
[2010-08-20 10:10:11] INFO WEBrick 1.3.1 | |
[2010-08-20 10:10:11] INFO ruby 1.9.1 (2010-01-10) [i386-darwin9.8.0] | |
[2010-08-20 10:10:11] INFO WEBrick::HTTPServer#start: pid=72029 port=4000 |
package | |
{ | |
import flash.display.Sprite; | |
import flash.text.TextField; | |
[SWF(width="800", height="600")] | |
public class EmbedExample extends Sprite | |
{ | |
public function EmbedExample() | |
{ |
public function shouldTestCallbackMethod():void | |
{ | |
// Create a dispatcher that lives outside your callback | |
var dispatcher:EventDispatcher = new EventDispatcher(); | |
// Create your callback mock function which dispatches the event | |
var func:Function = function():void{ | |
dispatcher.dispatchEvent(new Event(Event.COMPLETE)); | |
} |
package | |
{ | |
import flash.text.Font; | |
// This will not generate any ActionScript! | |
[Embed(source="MyFont.otf", fontFamily="myFont", mimeType='application/x-font')] | |
public class MyFont extends Font | |
{ | |
public function MyFont() | |
{ |
1. JavaScript | |
2. Ruby | |
3. Python | |
4. Perl | |
5. C | |
6. PHP | |
7. Shell | |
8. Java | |
9. C++ | |
10. VimL |
#!/usr/bin/ruby | |
require 'rubygems' | |
require 'mechanize' | |
mechanize = Mechanize.new | |
rankings = {} | |
# Retrieve language list | |
mechanize.get("https://github.com/languages") do |page| |
%canvas width="100" height="100" border="1px #000000" background="#FF0000" | |
%canvas width="50%" height="20" background="#00FF00" | |
%canvas width="20" height="20" vcenter="0" hcenter="0" background="#0000FF" |
%canvas width="100" height="100" border="1px #000000" background="#FF0000" | |
%my-component selected="true" first-name="Bob" hcenter="0" vcenter="0" | |
%border width="100%" height="100%" background="#999999" | |
%border width="100%" height="100%" background="#666666" | |
%border width="100%" height="100%" background="#333333" | |
.my-named-yield= | |
%border background="#0000FF" |
Scenario Outline: Add events to queue | |
Given a Keen Client using <type> | |
When I post <n> events | |
Then the size of the queue should have gone up by <n>. | |
Examples: | |
| type | n | | |
| flat_file | 5 | | |
| flat_file | 20 | | |
| redis | 5 | |