- /* */
- //
[arg1 arg2]:
// code
| function loadDoc(url, callback) { | |
| // branch for native XMLHttpRequest object | |
| try { | |
| if (window.XMLHttpRequest) { | |
| req = new XMLHttpRequest(); | |
| req.onreadystatechange = (function(){ processReqChange(req, callback); }) | |
| req.open("GET", url, true); | |
| req.send(null); | |
| // branch for IE/Windows ActiveX version |
| if line =~ '<!DOCTYPE.*\<DTD ' " doctype line found above | |
| if line =~ ' HTML 3\.2' | |
| let b:html_omni_flavor = 'html32' | |
| elseif line =~ ' XHTML 1\.1' | |
| let b:html_omni_flavor = 'xhtml11' | |
| else " two-step detection with strict/frameset/transitional | |
| if line =~ ' XHTML 1\.0' | |
| let b:html_omni_flavor = 'xhtml10' | |
| elseif line =~ ' HTML 4\.01' | |
| let b:html_omni_flavor = 'html401' |
| namespace Foo | |
| { | |
| class Bar : Controller | |
| { | |
| public ActionResult MyAction(int? id) | |
| { | |
| var ctx = new Models.MyDbContext(); | |
| return from x in ctx.MyTable where x.ID == id select x.Name; | |
| } |
| |arg1| | |
| |arg2| | |
| |arg3| | |
| (print (join "my god this is hideous..." arg1 arg2 arg3)) | |
| . | |
| . | |
| . | |
| |arg1| | |
| |arg2| |
| o/\oo/o/o/o/o/o/o/o/o/o/o/o/o/o/ | |
| o/o/o/o/\o/\o\oo/o/o/o/o/o/o/o/o/ | |
| o/o/o/o/o/o/o/o/o/\o\o/\o/\o\o/\oo/ | |
| \o/o/o/\oo/o/o/o/o/o/o/o/o/o/o/o/ | |
| o/o/\o/\o\oo/o/o/o/o/o/o/o/o/o/\o | |
| \o/\o/\o\o/\oo/o/o/\o/o/o/o/o/o/o/o/ | |
| o/o/o/o/o/o/o/o/\o/o/\o/o/o/o/o/o/ | |
| o/o/\o/o/o/\oo/\oo/\oo/o/o/o/o/o/ | |
| o/o/o/o/o/o/o/o/o/o/\o/\o\oo/o/o/ | |
| o/o/o/o/o/o/o/\o\o/\o/\o\o/\oo/\o/o/ |
| import testing // Could be made implicit when you pass --test to rock? | |
| // The test is assumed to be in <name>.ooc | |
| compile_stdout := "Spawning bunnies in snowflake/Makefile | |
| [ OK ] | |
| " | |
| runtime_stdout := " | |
| Done. |
| file=".tmp-`date +'%s'`.c" | |
| test.c: run | |
| a.out: | |
| @tail -n +2 test.c | gcc -std=c99 -ggdb -I. -DDEBUG -xc - | |
| run: a.out | |
| @./a.out | |
| @rm a.out |
| { | |
| "name": "irc", | |
| "active": true, | |
| "events": [ | |
| "issues", | |
| "push", | |
| "pull_request" | |
| ], | |
| "config": { | |
| "server": "irc.mozilla.org", |
| # In response to: | |
| # http://mlomnicki.com/ruby/tricks-and-quirks/2011/02/10/ruby-tricks2.html | |
| # Ruby 1.9.2 has some neat stuff that lets us make a readable | |
| # alternative case statement that calls each method in turn. | |
| # 1.9.2 features used: | |
| # * hashes are ordered in 1.9.2 | |
| # * cool JSON-style hash syntax | |
| # * concise lambda syntax |