- Jason Isbell & the 400 Unit “Nashville Sound”
- Thundercat “Drunk”
- Fleet Foxes “Crack Up”
- Converge “The Dusk In Us”
- Gorillaz “Humanz”
- Kendrick Lamar “DAMN.”
- Ryan Adams “Prisoner”
- The War on Drugs “A Deeper Understanding”
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
| # For Bash. Photo here: http://i.jsatk.us/image/403u443G2k06 | |
| PS1="\n\[$RESET\]┌─▪\[\e]2;$PWD\[\a\]\[\e]1;\]$(basename "$(dirname "$PWD")")/\W\[\a\]\[${BOLD}${MAGENTA}\]\u \[$WHITE\]on \[$ORANGE\]\h \[$WHITE\]in \[$GREEN\]\w\[$WHITE\]\$([[ -n \$(git branch 2> /dev/null) ]] && echo \" on \")\[$PURPLE\]\$(parse_git_branch)\[$RESET\]\n└─▪ " | |
| # For Fish. Photo here: http://i.jsatk.us/image/1Z0m132j181I | |
| function fish_prompt --description 'Write out the prompt' | |
| set -l last_status $status | |
| echo | |
| set_color magenta |
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
| var start, end, diff, splitString, nativeArray; | |
| splitString = function () { | |
| return 'foo bar baz bing ding dong lars foo bar baz bing ding dong lars foo bar baz bing ding dong lars foo bar baz bing ding dong lars foo bar baz bing ding dong lars foo bar baz bing ding dong lars'.split(' '); | |
| }; | |
| nativeArray = function () { | |
| return ['foo', 'bar', 'baz', 'bing', 'ding', 'dong', 'lars', 'foo', 'bar', 'baz', 'bing', 'ding', 'dong', 'lars', 'foo', 'bar', 'baz', 'bing', 'ding', 'dong', 'lars', 'foo', 'bar', 'baz', 'bing', 'ding', 'dong', 'lars', 'foo', 'bar', 'baz', 'bing', 'ding', 'dong', 'lars', 'foo', 'bar', 'baz', 'bing', 'ding', 'dong', 'lars']; | |
| }; |
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
| var longestPrefix = function (arr) { | |
| var firstString = arr[0], | |
| prefix = ''; | |
| for (var i = 0; i < firstString.length; i++) { | |
| for (var j = 1; j < arr.length; j++) { | |
| if (arr[j].charAt(i) !== firstString.charAt(i)) { | |
| return prefix; | |
| } | |
| } |
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
| var serialize = function (obj) { | |
| var str = []; | |
| for (var prop in obj) { | |
| if (obj.hasOwnProperty(prop)) { | |
| str.push(encodeURIComponent(prop) + "=" + encodeURIComponent(obj[prop])); | |
| } | |
| } | |
| return str.join("&"); |
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
| set t_ZH=^[[3m | |
| set t_ZR=^[[23m |
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 tmux — description Run\ tmux\ with\ support\ for\ italics | |
| env TERM=myterm-it tmux -2 $argv | |
| 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
| import thirdPartyClient from 'some-third-party-client' | |
| import myApi from '../../src/my-api' | |
| describe('myApi', () => { | |
| describe('Error handling', () => { | |
| const myRejection = { | |
| errorCode: 404, | |
| errorMessage: 'You broke everything', | |
| errorUrl: 'http://coolapp.api.docs/error/404/' | |
| } |
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
| import thirdPartyClient from 'some-third-party-client' | |
| import myApi from '../../src/my-api' | |
| describe('myApi', () => { | |
| describe('Error handling', () => { | |
| const myRejection = { | |
| errorCode: 404, | |
| errorMessage: 'You broke everything', | |
| errorUrl: 'http://coolapp.api.docs/error/404/' | |
| } |