Skip to content

Instantly share code, notes, and snippets.

@nucleartide
nucleartide / tags.txt
Created April 24, 2014 00:19
Complete list of tags from StackOverflow Careers
(u'javascript', 598)
(u'java', 524)
(u'c#', 312)
(u'python', 282)
(u'css', 245)
(u'jquery', 237)
(u'c++', 232)
(u'php', 231)
(u'sql', 228)
(u'html5', 213)
@nucleartide
nucleartide / main.lua
Created August 10, 2014 23:08
Testing out GamePlay3D ♥
function initialize()
-- Display splash screen for at least 1 second.
ScreenDisplayer.start("drawSplash", 1000)
ScreenDisplayer.finish()
end
function drawSplash()
local game = Game.getInstance()
game:clear(Game.CLEAR_COLOR_DEPTH, 0, 0, 0, 1, 1.0, 0)
local batch = SpriteBatch.create("res/lua-logo.png")
var Backbone = require('backbone');
@nucleartide
nucleartide / package.json
Created June 18, 2015 21:12
Strange bug?
{
"devDependencies": {
"jsdom": "^2.0.0"
},
"dependencies": {
"backbone": "^1.1.2",
"jquery": "^2.1.4"
}
}
@nucleartide
nucleartide / main-with-subapp-configs.js
Last active August 29, 2015 14:23
Loading subapps based on user configuration in an app based on thejameskyle's marionette-wires
require('./plugins');
var Backbone = require('backbone');
var Application = require('./application/application');
var ModalService = require('./modal/service');
var HeaderService = require('mm-header');
var IndexRouter = require('./index/router');
var AvailsRouter = require('./avails/router');
var UserService = require('./user-service');
var app = new Application();
@nucleartide
nucleartide / gist:f9083b3c8a170f8854fb
Last active November 4, 2015 02:53
the ember.js ecosystem

just looking through golang's testing category and making conclusions about what to use.

conclusions

  1. go's testing package is good for starters. libs provide more expressive APIs.
  1. use testify for assertions.
@nucleartide
nucleartide / max_consecutive_sum.cpp
Created October 10, 2013 22:38
Solution to maximum consecutive sum problem
#include <vector>
#include <iostream>
int max_consecutive_sum(const std::vector<int> &arr) {
if (arr.size() == 0) {
return 0;
}
std::vector<int> sums(arr.size(), 0);
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle'
});
@nucleartide
nucleartide / application.controller.js
Last active February 11, 2016 19:21
testing fixed headers
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle'
});