Skip to content

Instantly share code, notes, and snippets.

View laurieskelly's full-sized avatar

Laur Connor laurieskelly

  • Chicago
View GitHub Profile
@laurieskelly
laurieskelly / spicer_lies.txt
Last active November 29, 2017 00:59
Re Spicer's lies, this is from someone who worked in a past administration. Important read.
If you are puzzled by the bizarre "press conference" put on by the White House press secretary this evening (angrily claiming that Trump's inauguration had the largest audience in history, accusing them of faking photos and lying about attendance), let me help explain it. This spectacle served three purposes:
1. Establishing a norm with the press: they will be told things that are obviously wrong and they will have no opportunity to ask questions. That way, they will be grateful if they get anything more at any press conference. This is the PR equivalent of "negging," the odious pick-up practice of a particular kind of horrible person (e.g., Donald Trump).
2. Increasing the separation between Trump's base (1/3 of the population) from everybody else (the remaining 2/3). By being todl something that is obviously wrong--that there is no evidence for and all evidence against, that anybody with eyes can see is wrong--they are forced to pick whether they are going to believe Trump or their lying eyes. The gamble
@laurieskelly
laurieskelly / README.md
Last active February 24, 2016 07:54
Mo' Money; Fewer Problems

This is my favorite graph evar! It has so many cool bars.

Built with blockbuilder.org

@laurieskelly
laurieskelly / README.md
Last active February 24, 2016 07:04
akinetic hypnodots

##Akinetic hypnodots

100% less bouncing. Easier to see what is going on. Lots of fun/maddening ways to play with the spacing of the dots. See if you can figure out how it figures out where the new circles go.

Forkable, tweakable jsfiddle version

@laurieskelly
laurieskelly / README.md
Last active February 24, 2016 07:07
hypnodots

##Hypnodots

Featuring: enter() and exit() selections, updates, transitions, easing functions, and more, resulting in an utterly hypnotizing bunch of collapsing and expanding dots.

This has lots of convenient variables to play with if you care to fork and tweak on the jsfiddle version

@laurieskelly
laurieskelly / README.md
Last active February 24, 2016 07:09
change colors 2

##change colors 2

If you liked change colors the original, you may or may not prefer this version, which allows the circles to change colors independently.

Forkable and tweakable jsfiddle version

@laurieskelly
laurieskelly / README.md
Last active February 24, 2016 07:10
circle hop

###circle hop

hey, don't poke me. I'm sensitive.

jsfiddle version for forking/tweaking

@laurieskelly
laurieskelly / README.md
Last active February 24, 2016 07:14
change colors

Uses setInterval() to introduce the concept of updating objects

@laurieskelly
laurieskelly / index.html
Last active August 29, 2015 14:07
making squares with a function
<!DOCTYPE html>
<meta charset="utf-8">
<script src="http://d3js.org/d3.v3.min.js"></script>
<script type="text/javascript">
window.onload=function(){
var svg =
d3.select('body')
@laurieskelly
laurieskelly / hex_to_floatrgb.py
Created September 19, 2014 16:08
converting hex string colors to matlab-style ([0,1],[0,1],[0,1]) rgb values.
hex_string = '#008080'
def hex_to_floatrgb(hex_string):
hex_chunks = [hex_string[1:3],hex_string[3:5],hex_string[5:]]
float_rgb = [int(chunk,16)/256. for chunk in hex_chunks]
return tuple(float_rgb)
hex_to_floatrgb(hex_string)
@laurieskelly
laurieskelly / stringstrip_examples.py
Created September 17, 2014 14:52
making strings less ugly when the problem is whitespace
s1 = 'stupid string\n '
s2 = '\tstupid string \n\n'
s3 = ' stupid\t : String\n\n\n'
# here are some strings that are annoying and look bad.
# below are string methods for fixing them:
s1_fixed = s1.strip()
print repr(s1_fixed)
#> 'stupid string'