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
#!/usr/bin/env python3 | |
import io | |
import json | |
import socket | |
def q(s): | |
# For double quotes | |
return json.dumps(s, ensure_ascii=False) |
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
import os | |
import sys | |
arg = sys.argv[1] | |
start = os.getcwd() | |
os.mkdir('tmp') | |
os.chdir('tmp') |
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
function! SetMode() | |
call system("defaults read -g AppleInterfaceStyle") | |
if v:shell_error | |
se bg=light | |
else | |
se bg=dark | |
endif | |
endfunction | |
call SetMode() |
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/bash | |
# vi: ts=2 sw=2 et | |
set -eu | |
type node || source "$NVM_DIR/nvm.sh" | |
type pip || source ./venv/bin/activate | |
type curl osmtogeojson tippecanoe aws | |
set -x | |
query='[out:json]; |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>delete.stupid.apple.garbage</string> | |
<key>Program</key> | |
<string>/bin/sh</string> | |
<key>ProgramArguments</key> | |
<array> |
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
v9.5.0 |
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
HTTP/1.0 200 OK | |
Server: alphapd | |
Date: Sun Feb 12 16:21:12 2017 | |
Pragma: no-cache | |
Cache-Control: no-cache | |
Content-type: text/html |
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
package com.example; | |
import java.util.ArrayList; | |
import java.util.List; | |
import java.util.concurrent.*; | |
public class Main { | |
static void run(int inputSize, int batchSize) throws Exception { | |
ExecutorService executor = Executors.newCachedThreadPool(); | |
BlockingQueue<Integer> q = new LinkedBlockingQueue<>(2 * batchSize); |
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
NFD |
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
git init --bare dotfiles.git | |
cd dotfiles.git/ | |
git config: | |
core.worktree=/home/josh/ | |
status.showuntrackedfiles=no |