This file contains hidden or 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
| [user] | |
| email = TODO | |
| name = chrisbodhi | |
| [core] | |
| excludesfile = /Users/TODO/.gitignore_global | |
| pager = diff-so-fancy | less --tabs=4 -RFX | |
| [commit] | |
| template = /Users/TODO/.gitmessage | |
| [color] | |
| ui = true |
This file contains hidden or 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
| *~ | |
| .DS_Store | |
| .vscode/ | |
| node_modules/ |
This file contains hidden or 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
| ➜ sed -i "" -e "s/name/displayName/" fileName |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
| <title>Side-by-side</title> | |
| <style> |
This file contains hidden or 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
| /** | |
| * @param {number[]} nums | |
| * @return {number[]} | |
| Given nums = [5, 2, 6, 1] | |
| To the right of 5 there are 2 smaller elements (2 and 1). | |
| To the right of 2 there is only 1 smaller element (1). | |
| To the right of 6 there is 1 smaller element (1). | |
| To the right of 1 there is 0 smaller element. |
This file contains hidden or 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
| function sumFromString(str) { | |
| let sum = 0; | |
| let acc = '0'; | |
| for (var i = 0; i < str.length; i +=1) { | |
| if (parseInt(str[i])) { | |
| acc += str[i] | |
| if (i === (str.length - 1)) { | |
| sum += parseInt(acc); | |
| } | |
| } else { |
This file contains hidden or 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
| require('date') | |
| require('json') | |
| lambdas = JSON.parse(`aws lambda list-functions`)["Functions"] | |
| delete_before_this_date = Date.new(2017, 2, 1) | |
| to_nuke = lambdas.select do |lambda| | |
| !lambda["FunctionName"].include? "pipeline-orchestra" | |
| end |
This file contains hidden or 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
| { | |
| "css.validate": false, | |
| "editor.cursorBlinking": "solid", | |
| "editor.fontFamily": "Go Mono, Menlo, Monaco, 'Courier New', monospace", | |
| "editor.fontSize": 13, | |
| "editor.minimap.enabled": false, | |
| "editor.rulers": [ | |
| 80 | |
| ], | |
| "editor.tabSize": 4, |
This file contains hidden or 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
| syntax on | |
| colorscheme desert | |
| set relativenumber | |
| set backspace=indent,eol,start |
This file contains hidden or 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
| void setup() { | |
| size(640, 360); | |
| } | |
| void draw() { | |
| float transitionVal = float(mouseX) / width * 255; | |
| // dragging the mouse from left to right changes the background color from white to black | |
| background(255 - transitionVal); | |
| rectMode(CENTER); |