This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const mongoose = require('mongoose'), | |
Benchmark = require('benchmark'), | |
Promise = require('bluebird') | |
mongoose.connect('mongodb://localhost:27017/sandbox', {useNewUrlParser: true}) | |
const Model = mongoose.model('Model', new mongoose.Schema({ | |
name: String | |
})) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Runs the block of code at the end of the 10th FixedUpdate from now | |
myScript.InFixedUpdates(10, delegate | |
{ | |
DoSomething(); | |
DoSomethingElse(); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// FURBroadcaster.h | |
// furdemption | |
// | |
// Created by Austin Borden on 10/8/16. | |
// Copyright © 2016 RareSloth LLC. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> | |
#import <ReplayKit/ReplayKit.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def import_csv | |
if params[:file] | |
ImportHelper.import_csv(params[:file]) | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* This assumes the test is being run on an iPad Pro (or simulator) so the largest screenshot | |
* doesn't get clipped. Base images with no text should be provided in the test resources with the -ipadhd extension. | |
* The output will be images in localized subfolders within the Documents folder of the simulator's sandbox. | |
* | |
* Run this method in any CCScene or full screen CCNode | |
*/ | |
- (void)screenGrabAppStoreImages | |
{ | |
// Our blank images are named "3.5_00-ipadhd.png", "3.5_01-ipadhd.png", "4_00-ipadhd.png", etc. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'json' | |
if ARGV.count != 1 | |
puts '[usage] ./key_flips_x.rb exported_skeleton.json' | |
raise RuntimeError | |
end | |
file_path = ARGV[0] |