This is a test post for code.
1 2 3 4 5 6 7 8 9 10 11 12
| @requires_authorization def somefunc(param1='', param2=0): r'''A docstring''' if param1 > param2: print 'Gre\'ater' return (param2 - param1 + 1 + 0b10l) or None
class SomeClass: pass
>>> message = '''interpreter ... prompt'''
|
/home/sql1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
| BEGIN; CREATE TABLE "topic" ( "id" serial NOT NULL PRIMARY KEY, "forum_id" integer NOT NULL, "subject" varchar(255) NOT NULL ); ALTER TABLE "topic" ADD CONSTRAINT forum_id FOREIGN KEY ("forum_id") REFERENCES "forum" ("id");
insert into "topic" ("forum_id", "subject") values (2, 'D''artagnian');
select count(*) from cicero_forum;
COMMIT
|
/home/www/test.php1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
| require_once 'Zend/Uri/Http.php';
namespace Location\Web;
interface Factory { static function _factory(); }
abstract class URI extends BaseURI implements Factory { abstract function test();
* Returns a URI * * @return URI */ static public function _factory($stats = array(), $uri = 'http') { echo __METHOD__; $uri = explode(':', $uri, 0b10); $schemeSpecific = isset($uri[1]) ? $uri[1] : ''; $desc = 'Multi line description';
if (!ctype_alnum($scheme)) { throw new Zend_Uri_Exception('Illegal scheme'); }
return [ 'uri' => $uri, 'value' => null, ]; } }
datahere datahere */ datahere
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
| package main
import ( "fmt" "os" )
const ( Sunday = iota numberOfDays )
type Foo interface { FooFunc(int, float32) (complex128, []int) }
type Bar struct { os.File comment */ PublicData chan int }
func main() { ch := make(chan int) ch <- 1 x, ok := <- ch ok = true float_var := 1.0e10 defer fmt.Println('\'') defer fmt.Println(`exitting now\`) var fv1 float64 = 0.75 go println(len("hello world!")) return }
|
1 2 3 4 5 6 7 8 9
| <?xml version="1.0"?> <response value="ok" xml:lang="en"> <text>Ok</text> <comment html_allowed="true"/> <ns1:description><![CDATA[ CDATA is <not> magical. ]]></ns1:description> <a></a> <a/> </response>
|
1 2 3 4 5 6 7 8 9 10 11 12 13
| <!DOCTYPE html> <title>Title</title>
<style>body {width: 500px;}</style>
<script type="application/javascript"> function $init() {return true;} </script>
<body> <p checked class="title" id='title'>Title</p> </body>
|
/home/www/test.css1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
| @media screen and (-webkit-min-device-pixel-ratio: 0) { body:first-of-type pre::after { content: 'highlight: ' attr(class); } body { background: linear-gradient(45deg, blue, red); } }
@import url('print.css'); @page:right { margin: 1cm 2cm 1.3cm 4cm; }
@font-face { font-family: Chunkfive; src: url('Chunkfive.otf'); }
div.text, #content, li[lang=ru] { font: Tahoma, Chunkfive, sans-serif; background: url('hatch.png') ; color: #F0F0F0 !important; width: 100%; }
|
1 2 3 4 5 6 7 8 9 10 11 12
| [ { "title": "apples", "count": [12000, 20000], "description": {"text": "...", "sensitive": false} }, { "title": "oranges", "count": [17500, null], "description": {"text": "...", "sensitive": false} } ]
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
| function $initHighlight(block, flags) { try { if (block.className.search(/\bno\-highlight\b/) != -1) return processBlock(block.function, true, 0x0F) + ' class=""'; } catch (e) { var e4x = <div>Example <p>1234</p></div>; } for (var i = 0 / 2; i < classes.length; i++) { if (checkCondition(classes[i]) === undefined) return /\d+[\s/]/g; } console.log(Array.every(classes, Boolean)); }
|