This file contains hidden or 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 | |
| $wiki_line = array( | |
| array( | |
| 'type' => 'http://schema.org/Person', | |
| 'data' => array( | |
| 'name' => 'John Doe', | |
| 'jobTitle' => 'graduate research assistant', | |
| 'affiliation' => 'University of Dreams', |
This file contains hidden or 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 | |
| // must already have cross-references resolved into a flat list | |
| // see $wiki_line in exdata | |
| function EncodeLine($line) { | |
| $dump = ''; | |
| foreach ($line as $index => $row) { | |
| $dump .= ($index === 0)? "Item\n" : "Item $index\n"; | |
| $dump .= " Type: " . $row['type']; | |
| foreach ($row as $key => $val) { $dump .= " $key = $val\n"; } |
This file contains hidden or 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
| <html> | |
| <head> | |
| <title>Now we have a title</title> | |
| </head> | |
| <body> | |
| <h1>This is a header</h1> | |
| <p>This is a paragraph</p> | |
| </body> |
This file contains hidden or 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
| var e = 385, | |
| fl = 195, | |
| fs = 340, | |
| TR = 172, | |
| df = 209, | |
| wN = 141, | |
| dN = 152; | |
| var dungeon = [ [ e, e, e, e, e, e, e, e, e, e, e, e, e, e, df, e], |
This file contains hidden or 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
| // it's four free asset sets from Kenney | |
| // http://kenney.nl/assets/isometric-roads and three others i'm too lazy to dig up | |
| var tiles = [ | |
| "assets/PNG/buildingTiles_000.png", | |
| "assets/PNG/buildingTiles_001.png", | |
| "assets/PNG/buildingTiles_002.png", | |
| "assets/PNG/buildingTiles_003.png", |
This file contains hidden or 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
| require("./global-leakage.js") | |
| var glob = require('../') | |
| var test = require('tap').test | |
| test('test glob.sync', function(t) { | |
| var matches = new glob.sync('./s*.js') | |
| t.same(['./stat.js', './sync-cb-throw.js', './sync.js'].sort(), matches.sort()) | |
| t.end() |
This file contains hidden or 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
| // this is an example of a super lame library | |
| // the things in here are stupid | |
| function cap_string(X) { | |
| return X.toString().toUpperCase(); | |
| } | |
| function low_string(X) { | |
| return X.toString().toLowerCase(); |
This file contains hidden or 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
| <script defer type="text/jsx"> | |
| // up button control | |
| var Up = flocks.createClass({ | |
| inc: function() { this.fset('value', this.fctx['value'] + 1) }, | |
| render: function() { return <button onClick={this.inc}>▲</button>; } | |
| }); | |
| // down button control | |
| var Down = flocks.createClass({ |
This file contains hidden or 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
| <!doctype html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Example Spinner App</title> | |
| <style type="text/css"> | |
| body { font-size: 600%; font-family: helvetica neue, sans-serif; } |
This file contains hidden or 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
| 1 | |
| 2 3 | |
| 4 5 I J | |
| 6 7 C D K L Q R | |
| 89 AB EF GH MN OP ST UV |