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
package main | |
import ( | |
"bufio" | |
"flag" | |
"fmt" | |
"log" | |
"os" | |
"sort" | |
"strings" |
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 | |
ACTIVATION_KEY="******" | |
QUALITY="4" | |
PROCESSES="8" | |
file=$1 | |
if [ -z "$file" ]; then | |
echo "Please provide a file." | |
exit 1; |
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/sh | |
# Edanywhere: use your editor of choice in favor of whatever text component you | |
# are given. Inspired by github.com/cknadler/vim-anywhere | |
# This lets you open an editor of your choice, write some text, and then save | |
# it. The resulting text will then be copied to your clipboard for easy access. | |
# Requires xclip. | |
# If you want to use a different editor than is specified in either $EDITOR or | |
# $VISUAL, put the path here. I recommend using the full path, rather than just |
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
let s:FoldOpen = split(&foldmarker, ",")[0] | |
let s:FoldPattern = substitute('^\s*'.&commentstring, '%s', '.*'.s:FoldOpen.'\d*', "") | |
if searchpos(s:FoldPattern) != [0, 0] | |
set foldmethod=marker | |
else | |
set foldmethod=indent | |
endif |
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 | |
# Publication script to push the generated site to master | |
CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD) | |
PUBLISH_BRANCH="master" | |
TMP_DIR="/tmp/jekyll_publish" | |
DATE=$(date +"%D %H:%M:%S") | |
if [ "$CURRENT_BRANCH" == "$PUBLISH_BRANCH" ]; then | |
echo "Please switch to the development branch." |