Skip to content

Instantly share code, notes, and snippets.


Maxwell Rebo MaxwellRebo

View GitHub Profile
bengfarrell / randomcoords.cpp
Last active Apr 17, 2020
Random Coordinates C++ Node.JS AddOn
View randomcoords.cpp
#include <node.h>
#include <v8.h>
#include <stdio.h>
#include <stdlib.h>
using namespace v8;
Handle<Value> getRandomCoords2D(const Arguments& args) {
HandleScope scope;
michaelcox / SpecRunner.js
Last active Jun 29, 2021
Browser Unit Testing with Backbone Mocha Chai and RequireJS
View SpecRunner.js
baseUrl: '/backbone-tests/',
paths: {
'jquery' : '/app/libs/jquery',
'underscore' : '/app/libs/underscore',
'backbone' : '/app/libs/backbone',
'mocha' : 'libs/mocha',
'chai' : 'libs/chai',
'chai-jquery' : 'libs/chai-jquery',
'models' : '/app/models'