Skip to content

Instantly share code, notes, and snippets.

{
"name": "woodfromtrees",
"version": "1.0.0",
"description": "site code for woodfromtrees.com",
"main": "gulpfile.js",
"dependencies": {
"bulma": "^0.5.3"
},
"devDependencies": {
"clean-css": "^4.1.9",
@beauvais
beauvais / typography.scss
Created May 19, 2016 22:56
Responsive typography
@import "breakpoint";
@import 'modular-scale';
// Responsive variables
// Breakpoints
$breakpoint-to-ems: true;
$phone: 32em;
[
'Thou clay-brained guts, thou knotty-pated fool, thou whoreson obscene greasy tallow-catch!', 'Thou art a dull and muddy-mettled rascal.', 'Were I like thee I'd throw away myself.', 'Thou small grey coated gnat.', 'Thou vain hasty-witted flax-wench!', 'Your bait of falsehood takes this carp of truth.', 'Thou misbegotten half-faced devil-mon!', 'Thou poisonous bunch-back'd toad!', 'Thou pribbling beef-witted knave!', 'Thou art spacious in the possesion of dirt.'
]
'Out of my sight! Thou dost infect my eyes.','Most shallow man! Thou worms-meat in respect of a good piece of flesh indeed!','Your virginity breeds mites, much like a cheese.','Thou art so leaky that we must leave thee to thy sinking.','I shall live to knock thy brains out.','[Thou hath] not so much brain as ear wax.','If thou dost marry, I'll give thee this plague for thy dowry.','Thou crusty botch of nature!','Drop into the rotten mouth of death.','Hence, horrible villain, or I'll spurn thine eyes like balls before me; I'll unhair thy head, Thou shalt be whipp'd with wire, and stew'd'in brine, smarting in lingering pickle.'
@beauvais
beauvais / simple css alterations
Created February 2, 2016 13:37
tiny css changes to WP theme (to get the main-title box to extend full width)
.main-title {
background-color:rgba(231,231,231,0.3);
max-width: 100%;
width: 100%;
}
.bg-cover-img {
max-width: 100%;
width: 100%;
}
#! /usr/bin/python
from sys import argv
import pandas as pd
script, filename, output_file = argv
pd.set_option('display.max_colwidth', 1000)
df = pd.read_csv(filename, header=0)
text = df['text']#.to_string()
value = 138000
deposit = 10000
loan = value - deposit
apr = 4.5
years = 30
months = years * 12
rate = apr / 100
monthly_rate = rate / 12
"""
@beauvais
beauvais / corpus_maker
Created July 23, 2013 12:33
Need to turn this into a usable script to take twitter archive csvs and turn them into nltk corpora
import csv
with open('tweets.csv', 'rb') as source:
corpus = csv.reader(source, delimiter=' ')
for row in corpus:
@beauvais
beauvais / just_type.scpt
Created June 12, 2013 18:48
AppleScript to tell iA Writer to create a new document, insert "Just Type:", and set itself to Zen Mode.
set s to "Just type:" & return & "---" & return
activate application "iA Writer"
tell application "iA Writer"
make new document
activate
delay 0.2
tell application "System Events" to keystroke s
tell application "System Events" to keystroke "d" using command down
tell application "System Events" to keystroke "f" using {command down, control down}
Oh no ... out of Union Hand-Roasted coffee ! If you 've tasted it , you 'd kno
ally ... but it takes ages ... need coffee ! : ~ ) Is it just me or is Steve J
se : a duplicate Union Hand-Roasted coffee order , and they said I can keep it
ate sent me some of his own roasted coffee ... i 'll bring some into the offic
cafe in Amsterdam with free wi-fi , coffee I can just about taste and brillian
r commute ... think I 'll find more coffee ... @ kiyanwang @ mmmmmrob : surely
d David Eddings ? ? ? Blogged about coffee and online presentation apps : www.
e some espresso to celebrate ... my coffee arrived this AM too ... good day ,
t had theological discussion by the coffee maker ... it kind of ties in with e
slow and body 's slow ... drank lst coffee too ... new blog post , bit weak th