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
| #!/usr/bin/env bash | |
| set -eux | |
| DATE=$(date +%Y-%m-%d) | |
| TMPDIR=/tmp/newkey-${DATE} | |
| SSHDIR=${HOME}/.ssh | |
| OLDDIR=${SSHDIR}/old_keys/${DATE} | |
| NEWDIR=${SSHDIR}/new_key | |
| KEYNAME=id_rsa |
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
| # Lines configured by zsh-newuser-install | |
| HISTFILE=~/.histfile | |
| HISTSIZE=2000 | |
| SAVEHIST=100000 | |
| setopt appendhistory | |
| setopt no_beep | |
| bindkey -e | |
| # End of lines configured by zsh-newuser-install | |
| ### Added by Zplugin's installer |
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
| (require 'package) | |
| (add-to-list 'package-archives | |
| '("melpa" . "https://melpa.org/packages/") t) | |
| (add-to-list 'package-archives | |
| '("melpa-stable" . "https://stable.melpa.org/packages/") t) | |
| (package-initialize) | |
| (unless package-archive-contents | |
| (package-refresh-contents)) |
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
| (ns quil-test.draw | |
| (:require [quil.core :as quil] | |
| [clojure.core.matrix :as matrix] | |
| [clojure.core.matrix.operators :refer [+ - *]]) | |
| (:refer-clojure :exclude [+ - *]) | |
| (:import [java.util Date])) | |
| (def canvas-h 800) | |
| (def canvas-w (* canvas-h 1.618)) |
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 Rx from 'rx'; | |
| function fromTrackerSource(source) { | |
| return fromAutorun(function(observer) { | |
| try { | |
| observer.onNext(source()); | |
| } catch (e) { | |
| observer.onError(e); | |
| } | |
| }); |
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
| /* global dedent:true */ | |
| /* exported dedent */ | |
| dedent = function(callSite, ...args) { | |
| function format(str) { | |
| let size = -1; | |
| return str.replace(/\n(\n+)?(\s+)/g, (m, m1, m2) => { | |
| if (size < 0) { | |
| size = m2.replace(/\t/g, ' ').length; | |
| } |
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
| #!/bin/bash | |
| # According to https://developer.apple.com/library/ios/#qa/qa1686/_index.html | |
| # Install ImageMagick and pngcrush with Brew: | |
| # brew install ImageMagick pngcrush | |
| PNGCRUSH="pngcrush -res 72" | |
| TMP=$(mktemp /tmp/asicon.XXXXXX) | |
| # Ad Hoc iTunes Hires | |
| convert $1 -resize 1024x1024 "$TMP" |