This file contains 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
#!/bin/zsh | |
# Usage: linkpackage <path> | |
# Will update package.json in the current directory to link to the package at <path> | |
# Intended to replicate the experience of running `yarn link <package>` | |
LINKED_PACKAGE_PATH=$1 | |
if [ ! -d "$LINKED_PACKAGE_PATH" ]; then | |
echo "$LINKED_PACKAGE_PATH is not a directory" |
This file contains 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
# In the command line, find the PID of your simulator process: | |
ps -p `pgrep launchd_sim` | |
# or if you have many simulators running: | |
ps -A | grep launchd_sim | |
# Find the PID of the WebContent process: | |
pgrep -P <simulator-pid> 'com.apple.WebKit.WebContent' | |
# kill it |
This file contains 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 nocompatible | |
source $VIMRUNTIME/vimrc_example.vim | |
source $VIMRUNTIME/mswin.vim | |
behave mswin | |
set rtp-=$HOME\vimfiles | |
set rtp^=C:\Users\jbekol01\vimfiles | |
set dir=C:\Users\jbekol01\vimfiles\swaps | |
set backupdir=C:\Users\jbekol01\vimfiles\backups |
This file contains 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> | |
<head> | |
<meta charset="utf-8"> | |
<title>Ember Starter Kit</title> | |
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/normalize/3.0.1/normalize.css"> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> | |
<script src="http://builds.emberjs.com/tags/v1.12.1/ember-template-compiler.js"></script> | |
<script src="http://builds.emberjs.com/tags/v1.12.1/ember.debug.js"></script> | |
<style id="jsbin-css"> |
This file contains 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
# See https://twitter.com/octonion/status/555961809141002240 and https://twitter.com/octonion/status/555990175147642880 | |
lightWeight = 10.0 | |
heavyWeight = lightWeight + 1.0 | |
def sortPairs(pair1, pair2, pair3): | |
heavies = [] | |
balance1 = balance([pair1[0], pair2[0]], [pair1[1], pair3[0]]) | |
if balance1 == 'balanced': |