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('./vendor/CactusJuice/CactusJuice'); | |
| global.o = new CactusJuice.Util.Options({ | |
| type : { | |
| meta : { | |
| required : false, | |
| type : Function | |
| }, | |
| isa : { | |
| required : false, |
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
| "recursive definition" : function (assert) { | |
| var o = new Options({ | |
| type : { | |
| type : { enumerable : ["string", "number", "object", "function", "boolean"] }, | |
| required : { | |
| required : false, | |
| type : "boolean" | |
| } | |
| } | |
| }); |
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
| /** | |
| * Collection.coerce(collection, iterate) -> Array | |
| * - collection (collection) | |
| * - iterate (boolean): Whether the collection is readOnly. | |
| * | |
| * Coerces a collection into an Array. | |
| * If the object is readOnly, as with a NodeList, pass the iterate flag | |
| * to iterate through the collection and create an array of the contents. | |
| **/ | |
| coerce : function (collection, iterate) { |
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
| (define (assert-equal location a b) | |
| (if (not (equal? a b)) | |
| (error location "Expected: ~a but got: ~a" a b) | |
| 'ok)) | |
| (define (assert location a) | |
| (if (not (equal? a #t)) | |
| (error location "Expected true but got: ~a" a) | |
| 'ok)) |
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('Joose'); | |
| require('KiokuJS'); | |
| ---- | |
| node.js:63 | |
| throw e; | |
| ^ | |
| TypeError: Cannot set property 'meta' of undefined | |
| at [object Object].processSuperClass (/Users/adam/.local/lib/node/.npm/joose/3.15.0/package/lib/Task/Joose/Core.js:380:51) |
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
| > echo $NODE_PATH | |
| /Users/adam/.local/lib/node/.jsan | |
| > node | |
| Type '.help' for options. | |
| node> require('Task/Joose/NodeJS') | |
| Error: Cannot find module 'Task/Joose/NodeJS' |
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
| #include <iostream> | |
| struct Node { | |
| int val; | |
| struct Node *next; | |
| }; | |
| int main() { | |
| Node 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
| static region startRegion = RegionFromId(1); | |
| static region endRegion = RegionFromId(2); | |
| static region allRegion = RegionFromId(3); | |
| void gg_MapInit() | |
| { | |
| unitgroup ug = UnitGroupEmpty(); | |
| unit u; | |
| int i; | |
| gg_log("Map Loaded"); |
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
| <?xml version="1.0" encoding="us-ascii"?> | |
| <Catalog> | |
| <CUnit id="Barracks"> | |
| <AbilArray index="4" removed="1"/> | |
| <AbilArray index="5" removed="1"/> | |
| <CardLayouts index="0"> | |
| <LayoutButtons index="1" Face="Rally" AbilCmd="Rally,Rally1" Row="1" Column="4"/> | |
| <LayoutButtons index="2" Face="Halt" AbilCmd="BuildInProgress,Halt" Row="2" Column="3"/> | |
| <LayoutButtons index="3" Face="Cancel" AbilCmd="que5,CancelLast" Row="2" Column="4"/> | |
| <LayoutButtons index="4" Face="CancelBuilding" AbilCmd="BuildInProgress,Cancel" Row="2"/> |
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
| h1= title | |
| #articles | |
| - each article in articles | |
| div.article | |
| form(method='post', action='/edit') | |
| div.createdAt= article.createdAt | |
| div.updatedAt= article.updatedAt | |
| select.author(name='article[author][id]') | |
| - each author in authors | |
| - if (author === article.author) |