Skip to content

Instantly share code, notes, and snippets.

convert -density 150 input.pdf -rotate "$([ $((RANDOM % 2)) -eq 1 ] && echo -)0.$(($RANDOM % 4 + 5))" -attenuate 0.4 +noise Multiplicative -attenuate 0.03 +noise Multiplicative -sharpen 0x1.0 -colorspace Gray output.pdf
@cbfrance
cbfrance / etron.csv
Last active November 10, 2020 05:48
choropleth data
zip sales
90211 344
92626 209
95117 204
90401 202
85054 147
92705 138
77098 135
94901 132
98005 130
# Get csrf token from header
# shell function, add to .zshrc
# Requires httpie: brew install httpie
function httpl() {
csrf=`http $1 -h | grep -Po '(?<=csrftoken=)[^;]*(?=;)'`
http -f POST $* X-CsrfToken:$csrf
}
@cbfrance
cbfrance / Nov 2012 checkdesk notes.md
Last active August 12, 2021 15:42
Nov 2012 checkdesk notes.md

######################################################################

Checkdesk copywriting

######################################################################

Political Fact-checkers are asking: 
	Are we sure this is the case? 
	How does this compare to what they said previously? 

How does this compare to what other sources are saying?

@cbfrance
cbfrance / gist:f4863a3e2d7b458c3b9c6822958dcb27
Created January 18, 2023 06:01
text2brief with ChatGPT
Hello, I'm trying to generate a design strategy for an international company working for unreasonably happy outcomes in climate change. Please act as a creative writing strategist. I need help writing prompts to generate imagery. For example, if I give you the word "factory", you can write a prompt like this: factory => industrial factory, large workforce, assembly line, safety glasses, conveyor belt, fork lift, fusion reactor future => monorail, dense city, high rise, elderly person, cyborg Each example should be something that is visible.
Please generate 10 examples as a table, using this list:
- solar
- public transportation
- zero-emission vehicle infrastructure and manufacturing
- high-speed rail
- access to clean water
- energy-efficient, distributed smart power grids