Skip to content

Instantly share code, notes, and snippets.

require('./vendor/CactusJuice/CactusJuice');
global.o = new CactusJuice.Util.Options({
type : {
meta : {
required : false,
type : Function
},
isa : {
required : false,
"recursive definition" : function (assert) {
var o = new Options({
type : {
type : { enumerable : ["string", "number", "object", "function", "boolean"] },
required : {
required : false,
type : "boolean"
}
}
});
/**
* 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) {
(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))
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)
> 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'
#include <iostream>
struct Node {
int val;
struct Node *next;
};
int main() {
Node n;
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");
<?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"/>
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)