Skip to content

Instantly share code, notes, and snippets.

//Node Code
//
var base64 = require('base64-stream');
var request = require('request').defaults({encoding: null});
exports.show = function (req, res) {
request.get(apiURL + req.params.slug,
function (error, response, body) {
if (response) {
@speakingcode
speakingcode / 0_reuse_code.js
Created June 27, 2014 21:52
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console

Hired requires applicants to solve 3 out of 5 coding problems. All solutions handle a series of inputs and are required to output the correct solution in < 2s.

I had a real problem with this, running only 3/6 inputs in the 2s timespan alloted, but I don't really understand why. Any ideas?

Also, see this gist by @matthewrudy which also attempts to solve this problem: https://gist.github.com/matthewrudy/8677812