This *is* what some php code looks like:
<div id="foo"> <?php function foo() { echo "Hello World!\n"; } for ($i = 0; $i < 10 ++) { foo(); } ?> </div>
This *is* what some lisp code looks like:
1 2 3 | (defun foo "bleh *bleh* bleh" (interactive)) |
This *is* what some java code looks like:
1 2 3 4 5 | public class Hello { public static void main(String[] args) { System.out.println("Hello World!"); } } |
This *is* what some xml code looks like:
<xml> <foo> <bar id="howdy">"Hello World!"</bar> </foo> </xml>
This *is* what some html code looks like:
<html><head><title>Hello World</title></head> <body> <h1>Hello World!</h1> <p><strong>howdy</strong></p> </body> </html>
This *is* what some html code looks like:
18 19 20 21 22 23 | <html><head><title>Hello World</title></head> <body> <h1>Hello World!</h1> <p><strong>howdy</strong></p> </body> </html> |
This *is* what some ocaml code looks like:
let square x = x * x;; val square : int -> int = let rec fact x = if x < = 1 then 1 else x * fact (x - 1);; val fact : int -> int = fact 5;; - : int = 120 square 120;; - : int = 14400
This *is* what some python code looks like:
from itertools import islice def fib(): x, y = 1, 1 while True: yield x x, y = y, x + y for num in islice(fib(), 20): print num
This *is* what some ruby code looks like:
18 19 20 21 22 | class Example def example(arg1) return "Hello: " + arg1.to_s end end |
This *is* what some ruby code looks like:
class Example def example(arg1) return "Hello: " + arg1.to_s end end
This *is* what some rails code looks like:
ActionController::Routing::Routes.draw do |map| map.connect ':controller/:action', :action => 'index', :requirements => { :action => /(?:[a-z](?:[-_]?[a-z]+)*)/ } map.connect ':controller/:id', :action => 'show', :requirements => { :id => /\d+/ } map.connect ':controller/:id/:action', end
This *is* what some c code looks like:
_tcsncat_s(CurrentFileName, MAX_PATH, TEXT("\\"), MAX_PATH); _tcsncat_s(CurrentFileName, MAX_PATH, FileInformation.cFileName, MAX_PATH); if(FileInformation.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) { RecurseFileSystem(CurrentFileName); } else { /* Do action on file here! */ }
This *is* what some php code looks like:
<div id="foo"> <?php function foo() { echo "Hello World!\n"; } for ($i = 0; $i < 10 ++) { foo(); } ?> </div>
This *is* what some lisp code looks like:
1 2 3 | (defun foo "bleh *bleh* bleh" (interactive)) |
This *is* what some java code looks like:
1 2 3 4 5 | public class Hello { public static void main(String[] args) { System.out.println("Hello World!"); } } |
This *is* what some xml code looks like:
<xml> <foo> <bar id="howdy">"Hello World!"</bar> </foo> </xml>
This *is* what some html code looks like:
<html><head><title>Hello World</title></head> <body> <h1>Hello World!</h1> <p><strong>howdy</strong></p> </body> </html>
This *is* what some html code looks like:
18 19 20 21 22 23 | <html><head><title>Hello World</title></head> <body> <h1>Hello World!</h1> <p><strong>howdy</strong></p> </body> </html> |
This *is* what some ocaml code looks like:
let square x = x * x;; val square : int -> int = let rec fact x = if x < = 1 then 1 else x * fact (x - 1);; val fact : int -> int = fact 5;; - : int = 120 square 120;; - : int = 14400
This *is* what some python code looks like:
from itertools import islice def fib(): x, y = 1, 1 while True: yield x x, y = y, x + y for num in islice(fib(), 20): print num
This *is* what some ruby code looks like:
18 19 20 21 22 | class Example def example(arg1) return "Hello: " + arg1.to_s end end |
This *is* what some ruby code looks like:
class Example def example(arg1) return "Hello: " + arg1.to_s end end
This *is* what some rails code looks like:
ActionController::Routing::Routes.draw do |map| map.connect ':controller/:action', :action => 'index', :requirements => { :action => /(?:[a-z](?:[-_]?[a-z]+)*)/ } map.connect ':controller/:id', :action => 'show', :requirements => { :id => /\d+/ } map.connect ':controller/:id/:action', end
This *is* what some c code looks like:
_tcsncat_s(CurrentFileName, MAX_PATH, TEXT("\\"), MAX_PATH); _tcsncat_s(CurrentFileName, MAX_PATH, FileInformation.cFileName, MAX_PATH); if(FileInformation.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) { RecurseFileSystem(CurrentFileName); } else { /* Do action on file here! */ }