Skip to content

Instantly share code, notes, and snippets.

attributes = meteor.Collection('attributes');
objects = meteor.Collection('objects');
// Local Collection only - no such Collection server-side
mergedView = meteor.Collection('merged');
allObjects = objects.find({});
for (myObject=0; myObject<allObjects.count)
{
myMergedView = mergedView.new();
@tmeasday
tmeasday / gist:4042603
Last active October 12, 2015 14:47
Meteor "Join" -- Note that this code is *not* production ready.
Meteor.publish 'paths', (since) ->
pointHandles = {}
publishPath = (pathId) =>
pointHandles[pathId] = Points.find({pathId: pathId}).observe
added: (obj) =>
@set('points', obj._id, obj)
@flush()
# these two should never happen
changed: (obj) =>
@ideamonk
ideamonk / english-values.clj
Created September 6, 2012 22:50
Parsing English
;;; Author: Abhishek Mishra <[email protected]>
; ; http://www.reddit.com/r/dailyprogrammer/comments/zfeb2/9062012_challenge_96_intermediate_parsing_english/
; ; seven hundred and fourty-four million
; (-> 7 (* 100) (+ 40 4) (* 1000000) )
; ; ten-million and ninety-four
; (-> 10 (* 1000000) (+ 90 4) )
@bebraw
bebraw / gameengines.md
Created January 6, 2011 18:07
List of JS game engines. You can find a wikified version at https://github.com/bebraw/jswiki/wiki/Game-Engines. Feel free to modify that. I sync it here every once in a while.

IMPORTANT! Remember to check out the wiki page at https://github.com/bebraw/jswiki/wiki/Game-Engines for the most up to date version. There's also a "notes" column in the table but it simply does not fit there... Check out the raw version to see it.

This table contains primarily HTML5 based game engines and frameworks. You might also want to check out the [[Feature Matrix|Game-Engine-Feature-Matrix]], [[Game Resources]] and [[Scene Graphs]].

Name Size (KB) License Type Unit Tests Docs Repository Notes
Akihabara 453 GPL2, MIT Classic Repro no API github Intended for making classic arcade-style games in JS+HTML5
AllBinary Platform Platform Dependent AllBinary 2D/2.5D/3D n
@cyberfox
cyberfox / whazzup.rb
Created January 5, 2011 01:43
Asks for status every 15-25 minutes to track where time goes. Traps USR2 to wake and prompt for status. Designed for Linux, works on OS X, needs tweaks for Windows. Uses JRuby, since it's the only easy-to-get cross-platform UI toolkit for Ruby.
require "java"
java_import javax.swing.JOptionPane
class Whazzup
def initialize(file = "#{ENV['HOME']}/snippets.txt")
@snippets ||= open(file, 'ab')
log('[Starting up (ruby)]')
thread_loop = Thread.current
package app.restricted.view.overlays {
import asunit.framework.TestCase;
import org.robotlegs.mvcs.Mediator;
import mockolate.prepare;
import mockolate.nice;
import mockolate.stub;
import mockolate.verify;