This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
benchmarking Tag Generation 50 times | |
------------------------------------------------- | |
C 0.16947 | | |
Haskell 0.19104 | | |
Ruby 0.33488 | | |
JS 0.35512 | | |
PHP 4.26346 | | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
try { | |
$fp = fsockopen('smtp.gmail.com', 587, $errno, $errstr, 10); | |
fwrite($fp, "HELO whats_up\r\n"); | |
fwrite($fp, "MAIL FROM:<[email protected]>\r\n"); | |
fwrite($fp, "RCPT TO:<[email protected]>\r\n"); | |
fwrite($fp, "DATA\r\n"); | |
fwrite($fp, "testing\r\n.\r\n"); | |
fwrite($fp, "QUIT\r\n"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[self addChild:background z:0 parallaxRatio:cpv(0.000001, 0.00001)]; | |
[self addChild:midground2 z:2 parallaxRatio:cpv(0.05, 0.05)]; | |
[self addChild:midground z:4 parallaxRatio:cpv(0.5, 0.005)]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#define ALLOC(t) (t *) malloc(sizeof(t)) | |
typedef unsigned int OBJ; | |
typedef enum { | |
tVector, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
({frames:[{x:252, y:20, type:"mousemove", target:"id(\"examples\")/label[1]", value:null}, {x:253, y:19, type:"mousemove", target:"id(\"examples\")/label[1]", value:null}, {x:254, y:19, type:"mousemove", target:"id(\"examples\")/label[1]", value:null}, {x:255, y:18, type:"mousemove", target:"id(\"examples\")/label[1]", value:null}, {x:256, y:18, type:"mousemove", target:"id(\"examples\")", value:null}, {x:257, y:18, type:"mousemove", target:"id(\"examples\")/input[2]", value:null}, {x:259, y:18, type:"mousemove", target:"id(\"examples\")/input[2]", value:null}, {x:260, y:18, type:"mousemove", target:"id(\"examples\")/input[2]", value:null}, {x:261, y:18, type:"mousemove", target:"id(\"examples\")/input[2]", value:null}, {x:262, y:18, type:"mousemove", target:"id(\"examples\")/input[2]", value:null}, {x:263, y:18, type:"mousemove", target:"id(\"examples\")/input[2]", value:null}, {x:264, y:18, type:"mousemove", target:"id(\"examples\")/input[2]", value:null}, {x:265, y:18, type:"mousemove", target:"id(\"exampl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
str = 'this foo bar is fantastic i love foo' | |
words = [] | |
str.split.each do |word| | |
words << word if word =~ /foo|bar/ | |
end | |
p words | |
words = str.split.inject [] do |words, word| | |
words << word if word =~ /foo|bar/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdarg.h> | |
#include <string.h> | |
void | |
print (char *format, ...) { | |
char c; | |
va_list args; | |
va_start(args, format); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# Execute the git, gem, or rake command, depending on the second argument | |
case ARGV.first | |
when /^(add|bisect|branch|checkout|clone|commit|diff|fetch|grep|init|log|merge|mv|pull|push|rebase|reset|rm|show|status|tag)$/ | |
system "git #{ARGV.join(' ')}" | |
when /^(build|cert|check|cleanup|contents|dependency|environment|generate_index|help|install|list|lock|mirror|outdated|pristine|query|rdoc|search|server|sources|specification|stale|uninstall|unpack|update|which)$/ | |
system "gem #{ARGV.join(' ')}" | |
else |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%{ | |
#include "yamp.h" | |
#define YYSTYPE char * | |
static yaParser *parser; | |
%} | |
main = Comment | |
| Doctype | |
| Element |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
To anyone using Commander, sorry to say this but 4.0 will most likely be the next | |
release. I was planning to release 3.3.0 with some cool new features, however | |
Github does not build gems based on tags (like I would think it should), it | |
builds solely based from the gemspec in the master branch, preventing me from | |
supporting previous releases. | |
That being said expect some cool features and fixes with 4.0. |