Sets up:
- OS X preferences
- Brew
- fish (replacement for bash)
- Python (with fish integrations)
- NodeJS
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env bash | |
echo "WARNING: This will reset your working directory!" | |
echo "Please make sure all your changes are committed and merged into master." | |
read -p "Are you sure you want to continue? " -n 1 -r | |
echo | |
if [[ $REPLY =~ ^[Yy]$ ]] | |
then | |
echo "Preparing to build..." | |
{ |
// ==UserScript== | |
// @name GitHub 1-click PR Approve | |
// @namespace https://gist.github.com/birkholz | |
// @description Adds a 1-click approve button to Pull Requests | |
// @version 3 | |
// @author https://github.com/birkholz | |
// @match https://github.com/*/*/pull/*/files | |
// @grant none | |
// ==/UserScript== |
from functools import reduce | |
import unittest | |
def multiply(int_list): | |
return reduce(lambda x, y: x*y, int_list) | |
# O(n^2) | |
def get_products_of_all_ints_except_at_index(int_list): |
import unittest | |
# Code | |
def get_permutations(input_str): | |
input_len = len(input_str) | |
results = [] | |
if input_len == 0: |
.ProfileHeading-content, .ProfileCanopy-navBar, .RichEditor, .NotificationsHeadingContent, .content-header .header-inner, .content-inner, .module .list-link { | |
background: #292929; | |
} | |
.global-nav .search-input, .RichEditor.is-fakeFocus { | |
background: #121212; | |
border: 1px solid #303030; | |
} | |
.global-nav .search-input:focus, .RichEditor.is-fakeFocus:focus { |
var ac = new AudioContext(); | |
var dest = ac.createMediaStreamDestination(); | |
// Get permission to use non-default audio devices | |
// This requests microphone permission also. Perhaps there's a better way to just get output permission. | |
navigator.mediaDevices.getUserMedia({audio: true}); | |
// Gets a list of output devices | |
const devices = await navigator.mediaDevices.enumerateDevices(); | |
const audioDevices = devices.filter(device => device.kind === 'audiooutput'); |