Skip to content

Instantly share code, notes, and snippets.

@beauvais
beauvais / itinerary.md
Last active May 24, 2024 14:59
GPT itinerary with my parameters

For a weekend trip from Indianapolis focused on experiencing colder weather, you might consider heading north to areas around Lake Michigan, particularly towards the Upper Peninsula of Michigan. This region generally has cooler temperatures and scenic natural beauty, perfect for nature photography. Suggested Destinations:

Sleeping Bear Dunes National Lakeshore, Michigan: This area offers cooler temperatures, beautiful dune landscapes, and opportunities for hiking and photography. The weather forecast for the weekend shows moderate temperatures with highs around 60-65°F, making it cooler than central Indiana​ (Morecast)​​ (Weather.gov)​.

Mackinac Island, Michigan: Known for its historical charm and stunning natural vistas, Mackinac Island can be a great spot with temperatures expected to be around 55-60°F. The island has plenty of opportunities for photography, including scenic coastlines and Victorian architecture​ (National Weather Service)​.

Pictured Rocks National Lakeshore, Michigan: Located on t

{
"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}