Skip to content

Instantly share code, notes, and snippets.

@tracycodes
tracycodes / gist:3233358
Created August 2, 2012 04:04
Answer to a random interview question
function add1(array, val, n) {
var iter = 0,
end = array.length,
count = (n) ? n : -1,
multiple = 1;
if(n < 0) {
iter = array.length - 1;
end = 0;
multiple = -1;
@tracycodes
tracycodes / gist:3541597
Created August 30, 2012 21:29
Sublime Text 2 Configuration
{
"auto_match_enabled": false,
"bold_folder_labels": true,
"color_scheme": "Packages/Color Scheme - Default/Monokai Bright.tmTheme",
"default_line_ending": "unix",
"draw_indent_guides": true,
"ensure_newline_at_eof_on_save": false,
"file_exclude_patterns":
[
"optimized_includes.php",
{
id: 1
changes: [
{
date: "Thu Aug 28 2014 01:06:30 GMT+00:00"
},
{
date: "Thu Aug 28 2014 01:06:30 GMT+00:00"
},
{
### Keybase proof
I hereby claim:
* I am tracycodes on github.
* I am tracyl (https://keybase.io/tracyl) on keybase.
* I have a public key whose fingerprint is C113 FB27 4A11 7384 13CC C776 3746 1924 9C9C D1B5
To claim this, I am signing this object: