Skip to content

Instantly share code, notes, and snippets.

@thedillonb
thedillonb / permute-characters.js
Last active August 30, 2015 02:57 — forked from h2non/permute-characters.js
Recursive implementation of string characters permutation covering all possible cases without duplication
/**
* Recursive implementation of string characters permutation
* covering all possible cases without duplication
*/
function permute(str) {
var stack = []
if (str.length === 1) {
return [ str ]
}
@thedillonb
thedillonb / logstash-sentry.rb
Created June 26, 2015 00:44 — forked from clarkdave/logstash-sentry.rb
(Logstash) Sentry output plugin. Moo
# The MIT License (MIT)
# Copyright (c) 2014 Dave Clark
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
@thedillonb
thedillonb / moo
Last active August 29, 2015 14:17 — forked from liammclennan/gist:50d58f366b99f38f5926
Euclid usage
euclid.start([{
title: 'Home',
entry: function () {
return server.getDecks().then(function (decks) {
loginChanges();
var data = {decks: decks};
return [components.Home(data), data];
}, function () {
return [components.NotAuthenticated(), {}];
});
/************************
* validationEngaged.js *
************************
*
* They're really on to us now! The validateLevel function
* has been activated to enforce constraints on what you can
* do. In this case, you're not allowed to remove any blocks.
*
* They're doing all they can to keep you here. But you
* can still outsmart them.

A lot of these are outright stolen from Edward O'Campo-Gooding's list of questions. I really like his list.

I'm having some trouble paring this down to a manageable list of questions -- I realistically want to know all of these things before starting to work at a company, but it's a lot to ask all at once. My current game plan is to pick 6 before an interview and ask those.

I'd love comments and suggestions about any of these.

I've found questions like "do you have smart people? Can I learn a lot at your company?" to be basically totally useless -- everybody will say "yeah, definitely!" and it's hard to learn anything from them. So I'm trying to make all of these questions pretty concrete -- if a team doesn't have an issue tracker, they don't have an issue tracker.

I'm also mostly not asking about principles, but the way things are -- not "do you think code review is important?", but "Does all code get reviewed?".

Keybase proof

I hereby claim:

  • I am jasondrowley on github.
  • I am jdr (https://keybase.io/jdr) on keybase.
  • I have a public key whose fingerprint is 3C40 D634 61D4 50C6 F557 F4B0 A696 D7DC FAB0 76F7

To claim this, I am signing this object:

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<a href = "#" onclick="calculate()">
Calculate life time supply
</a>
2.0.0p247 :027 > Time.parse("5/6", Time.now)
=> 2014-05-06 00:00:00 -0700
2.0.0p247 :029 > Time.parse("5/6/2014")
=> 2014-06-05 00:00:00 -0700
2.0.0p247 :030 > Time.parse("2014/5/6")
=> 2014-05-06 00:00:00 -0700
@thedillonb
thedillonb / Kitty
Last active January 2, 2016 01:59 — forked from jnelson/immersionWindow.js
Adds a crude windowing control to https://immersion.media.mit.edu/viz.Just paste this into the console after the visualization is running and press enter. Adjust the STEPS count for more or less granularity.
Here's another file!
@thedillonb
thedillonb / file.txt
Created January 1, 2014 16:19 — forked from TechFounder/form.htm.erb
How to add value to input area in rails form. Test Moo cow!
This is another file... Cool!