Skip to content

Instantly share code, notes, and snippets.

View Eunoia's full-sized avatar
🍍
bring the hustle

Evan R Eunoia

🍍
bring the hustle
View GitHub Profile
@Eunoia
Eunoia / sampler.js
Created February 16, 2016 17:00
Two ways to do the same thing.
// shorter
color = details.leftToPurchase < 0 ? 'red' : '#534F4E';
// more clear
if(details.leftToPurchase < 0){
color = 'red';
} else {
color = '#534F4E';
}
//! moment.js
//! version : 2.14.1
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
//! license : MIT
//! momentjs.com
;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
global.moment = factory()
//! moment.js
//! version : 2.14.1
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
//! license : MIT
//! momentjs.com
;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
global.moment = factory()
@Eunoia
Eunoia / noodles.json
Created March 21, 2017 01:04
noodle map style
[
{
"elementType": "labels",
"stylers": [
{
"visibility": "off"
}
]
},
{
Year,Period,Area,Adjusted,Preliminary,Rate
"2016","Annual","Alameda County","Not Adj","Not Prelim","4.2"
"2015","Annual","Alameda County","Not Adj","Not Prelim","4.7"
"2014","Annual","Alameda County","Not Adj","Not Prelim","5.8"
"2013","Annual","Alameda County","Not Adj","Not Prelim","7.2"
"2012","Annual","Alameda County","Not Adj","Not Prelim","8.7"
"2011","Annual","Alameda County","Not Adj","Not Prelim","10.1"
"2011","Annual","Alameda County","Not Adj","Not Prelim","10.1"
"2010","Annual","Alameda County","Not Adj","Not Prelim","10.9"
"2010","Annual","Alameda County","Not Adj","Not Prelim","10.9"
@Eunoia
Eunoia / session_info.txt
Created July 5, 2017 16:16
results of running session_info
> sessionInfo()
R version 3.3.3 (2017-03-06)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: OS X El Capitan 10.11.6
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
@Eunoia
Eunoia / Gulpfile.js
Created November 19, 2014 17:43
Deploy your wintersmith generated static site to amazon S3
var fs = require('fs');
var gulp = require('gulp');
var runWintersmith = require('run-wintersmith');
var s3 = require("gulp-s3");
var options = { headers: {'Cache-Control': 'public'} }
gulp.task('default', function() {
console.log('`gulp deploy` to deploy')
});
@Eunoia
Eunoia / details.md
Last active February 8, 2018 19:30
Pre planning

Howdy!

We're going to look at some data in Postgresql. To get started, you might want to get some useful tools first.

The good GUI client

https://macpostgresclient.com/

To install postgresql locally

brew install postgresql

Copy of the report
<https://lims.minneapolismn.gov/Download/File/1038/2018%20Local%20Board%20of%20Appeal%20and%20Equalization%20Update.pdf>
People talking about the report.
<https://twitter.com/anton612/status/990597518433177602>
Site to request data
<http://www.ci.minneapolis.mn.us/datapractices/WCMSP-180814>
First tweet I saw
@Eunoia
Eunoia / notes.md
Created June 4, 2018 05:52
Notes on population counts in After the Deluge

After the Deluge

In this book, sea level rise leads to a smaller San Francisco in the year 2445, where all food needs are met by the city. The bay teems with life, and people eat Cioppino everyday. Most travel is done by bicycle, and streets have been turned into gardens.

As I read, I've been wondering about the population, how much lower, or higher than present SF is it? Most of the city is turned to the plow, but people live in group homes, which makes it hard to determine population.