Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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> | |
<meta charset=utf-8> | |
<script type=🧩 id=lodash> | |
import content from "lodash/content"; | |
const p = document.createElement("p"); | |
p.textContent = content; | |
export default () => p.cloneNode(true); | |
</script> |
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
require 'matrix' | |
# fib1: Fast algorithm using the Golden Ratio | |
$sqrt5 = Math.sqrt 5 | |
$phi = (1 + $sqrt5) / 2 | |
def fib1 n | |
(($phi**n - (1-$phi)**n) / $sqrt5).to_int | |
end |
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); |