Skip to content

Instantly share code, notes, and snippets.

View cbfrance's full-sized avatar
👋

Chris B. France cbfrance

👋
View GitHub Profile
@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
@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?

# 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 / 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
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 / cloudSettings
Last active March 22, 2020 23:05
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-03-22T23:05:43.085Z","extensionVersion":"v3.4.3"}
openapi: 3.0.0
# Layer.City API Spec
servers:
- description: Layer.city API
url: https://api-dev.layer.city
info:
description: Geocoding as it was meant to be - no subscriptions, no maximums, no work.
version: "0.1"
title: layer.city
contact:
@cbfrance
cbfrance / find-largest-sass.sh
Created May 23, 2017 21:48
histogram of largest sass files
brew install distribution
wc -l src/app/**/*css | sed '$ d' | distribution --graph=vk --color --height=1000 --width=120 --char=ba
@cbfrance
cbfrance / count_rules.sh
Created May 23, 2017 21:46
histogram of common rules in a set of stylesheets
brew install distribution
cat src/app/**/*css | sed 's/^[ ]*//' | sed 's/[ ]*$//' | sed 's/{//' | sed 's/}//' | sed 's/[//]//' | sed 's/[/]//' | sed 's/\*//' | sort -nr | uniq -c | sort -n | distribution -g=vk --height=200 --color --width=100
@cbfrance
cbfrance / .travis.yml
Created April 26, 2017 00:30
Slimer on Travis
language: ruby
rvm:
- 2.3.3 #reasonably recent
env:
- SLIMERJSLAUNCHER=$(which firefox) DISPLAY=:99.0 PATH=$TRAVIS_BUILD_DIR/slimerjs:$PATH #for slimer
addons:
firefox: "50.0" # for slimer
cache: bundler # Cache rubygems to speed up the build
before_script:
- . $HOME/.nvm/nvm.sh # Enable node installation