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
A tiny repo | |
Full-fledged forkability | |
Gist is git haiku |
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
Standing up, worried, | |
he thought it would be today. | |
Tomorrow. Perhaps. |
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/local/bin/bash | |
## You may have to change that line to specify the path to the bash interpreter you want to use. | |
## BTW, this script requires bash v4.0 or better, as it uses Associative Array | |
## Someone set us up the bomb. | |
declare -A lnks | |
## links go here | |
## WIHT writers should use these, and add more |
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/sh | |
myname=adamwood | |
#change that to your name | |
month=$(date +"%b") | |
mo=$( tr '[A-Z]' '[a-z]' <<< $month) | |
yr=$(date +"%y") | |
mdfile="$1.md" | |
hfile="../html/$1-$myname-$mo-$yr.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
#! /bin/sh | |
month=$(date +"%b") | |
mo=$( tr '[A-Z]' '[a-z]' <<< $month) | |
yr=$(date +"%y") | |
mdfile="$1.md" | |
hfile="../html/$1-adamwood-$mo-$yr.html" | |
pandoc -f markdown -S -o $hfile $mdfile |
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 sys | |
import re | |
from bs4 import BeautifulSoup | |
import urllib.request | |
home_link = "whoishostingthis" | |
file_name = sys.argv[1] | |
f = open(file_name) |
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 blessings | |
import time | |
import random | |
t = blessings.Terminal() | |
name = input(t.yellow("What is your name? ")) | |
aff_prefix = "I, " + name + ", " |
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
export PATH=$PATH:~/bin | |
export PATH=/usr/local/bin:$PATH | |
alias rm='rm -i' | |
alias reset='source ~/.bash_profile' | |
md () { touch "$1.md" && atom "$1.md" ;} | |
trash () { command mv "$@" ~/.Trash ; } | |
gdir () { mkdir -p "$1" && echo "# $1" >> "$1/readme.md" ; } |
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 sys | |
import google | |
import time | |
import random | |
from bs4 import BeautifulSoup | |
import urllib.request | |
import http.cookiejar | |
from selenium import webdriver | |
import subprocess | |
import blessings |
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 sys | |
import google | |
import time | |
import random | |
from bs4 import BeautifulSoup | |
import urllib.request | |
import http.cookiejar | |
from selenium import webdriver | |
import subprocess | |
import blessings |
OlderNewer