Skip to content

Instantly share code, notes, and snippets.

before(function() {
var args = [].slice.call(arguments)
function cb() {
gc()
if (ITERATIONS--)
test.apply(null, args)
else
process.nextTick(endCb)
}
args.push(cb)
#!/usr/bin/env coffee
fs = require('fs')
libxml = require('libxmljs')
file = fs.readFileSync(path = process.argv[2], 'utf8')
console.log(path)
xml = libxml.parseXml(file)
for quote in xml.find("//q")
diff --git a/sys/applemedia/iosassetsrc.m b/sys/applemedia/iosassetsrc.m
index e237c2e..5d32bc4 100644
--- a/sys/applemedia/iosassetsrc.m
+++ b/sys/applemedia/iosassetsrc.m
@@ -470,6 +470,7 @@ - (id) init
{
self = [super init];
+ NSLog(@">>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<");
return self;
function main(gameBuilder) {
// MARK: - Bad Guy
var entityBad = gameBuilder.Entity("baddy_bad")
var agent = entityBad.Agent("Bad")
var chaseBehavior = agent.Behavior()
chaseBehavior.wander(1)
chaseBehavior.seekAgent("player")
entityBad.onLoad = function(self, scene) {
function main(gameBuilder) {
var entity = gameBuilder.Entity("Max_rootNode")
// MARK: - Behaviors & Goals
var agent = entity.Agent("Max")
agent.mass = 1
agent.maxAcceleration = 1
agent.maxSpeed = 1
agent.radius = 0.5
//
// Created by Krzysztof Zablocki on 06/01/2017.
// Copyright (c) 2017 Pixle. All rights reserved.
//
import Foundation
extension Array {
func parallelFlatMap<T>(transform: (Element) throws -> [T]) throws -> [T] {
return try parallelMap(transform).flatMap { $0 }
}
import hou, os, sys
from PySide2 import QtCore
from canvaseventtypes import KeyboardEvent
import utility_hotkey_system
import nodegraphstates as states
this = sys.modules[__name__]
__userdir = hou.getenv('HOUDINI_USER_PREF_DIR')
__pythonlibs = os.path.join(__userdir, "python2.7libs")