Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View justintemps's full-sized avatar

Justin Smith justintemps

View GitHub Profile
@justintemps
justintemps / penguins-inconsistent.csv
Created November 10, 2021 08:53
penguins-inconsistent
species island bill_length_mm bill_depth_mm flipper_length_mm body_mass_g sex
Adelie Torgersen 39.1 18.7 181 3750 MALE
Adelie Torgersen 39.5 17.4 186 3800 FEMALE
Adelie Torgersen 40.3 18 195 3250 FEMALE
Adelie Torgersen 36.7 19.3 193 3450 FEMALE
Adelie Torgersen 39.3 20.6 190 3650 MALE
Adelie Torgersen 38.9 17.8 181 3625 FEMALE
Adelie Torgersen 39.2 19.6 195 4675 MALE
Adelie Torgersen 34.1 18.1 193 3475
Adelie Torgersen 42 20.2 190 4250
species island bill_length_mm bill_depth_mm flipper_length_mm body_mass_g sex
Chinstrap Torgersen 39.1 18.7 181 3750 MALE
Adelie Torgersen 39.5 17.4 186 3800 FEMALE
Adelie Torgersen 40.3 18 195 3250 FEMALE
Chinstrap Torgersen 36.7 19.3 193 3450 FEMALE
Chinstrap Torgersen 39.3 20.6 190 3650 MALE
Adelie Torgersen 38.9 17.8 181 3625 FEMALE
Chinstrap Torgersen 39.2 19.6 195 4675 MALE
Chinstrap Torgersen 34.1 18.1 193 3475
Chinstrap Torgersen 42 20.2 190 4250
@justintemps
justintemps / penguins.csv
Created November 7, 2021 09:40
Penguins Data Set without NaNs
species island bill_length_mm bill_depth_mm flipper_length_mm body_mass_g sex
Adelie Torgersen 39.1 18.7 181 3750 MALE
Adelie Torgersen 39.5 17.4 186 3800 FEMALE
Adelie Torgersen 40.3 18 195 3250 FEMALE
Adelie Torgersen 36.7 19.3 193 3450 FEMALE
Adelie Torgersen 39.3 20.6 190 3650 MALE
Adelie Torgersen 38.9 17.8 181 3625 FEMALE
Adelie Torgersen 39.2 19.6 195 4675 MALE
Adelie Torgersen 34.1 18.1 193 3475
Adelie Torgersen 42 20.2 190 4250
@justintemps
justintemps / .prettierrc
Created February 9, 2021 15:37
.prettierrc
{
"endOfLine": "lf",
"singleQuote": false,
"tabWidth": 2,
"trailingComma": "es5",
"printWidth": 80
}
@justintemps
justintemps / getURL.js
Last active June 15, 2020 07:07
Callbacks and Promises
// EXAMPLE 1: Simple AJAX call with callback
// Adapted slightly from https://eloquentjavascript.net/2nd_edition/17_http.html
function getURL(url, callback) {
var req = new XMLHttpRequest();
req.open("GET", url, true);
req.addEventListener("load", function() {
if (req.status < 400)
callback(req.response);
else
@justintemps
justintemps / ilo-member-states.csv
Last active April 2, 2020 08:13
A complete list of the ILO's member states with iso2 and iso3 codes and emoji flags ftw
name_en name_fr name_es iso3 iso2 flag
Afghanistan Afghanistan Afganistán AFG AF 🇦🇫
Albania Albanie Albania ALB AL 🇦🇱
Algeria Algérie Argelia DZA DZ 🇩🇿
Angola Angola Angola AGO AO 🇦🇴
Antigua and Barbuda Antigua-et-Barbuda Antigua y Barbuda ATG AG 🇦🇬
Argentina Argentine Argentina ARG AR 🇦🇷
Armenia Arménie Armenia ARM AM 🇦🇲
Australia Australie Australia AUS AU 🇦🇺
Austria Autriche Austria AUT AT 🇦🇹
@justintemps
justintemps / output.log
Created July 25, 2018 09:53
dokku_deploy_output
Counting objects: 90, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (82/82), done.
Writing objects: 100% (90/90), 190.55 KiB | 0 bytes/s, done.
Total 90 (delta 27), reused 0 (delta 0)
-----> Cleaning up...
-----> Building story-staging from herokuish...
-----> Adding BUILD_ENV to build environment...
-----> Warning: Multiple default buildpacks reported the ability to handle this app. The first buildpack in the list below will be used.
Detected buildpacks: multi nodejs static
@justintemps
justintemps / .eslintrc.json
Last active June 7, 2018 08:18
Sample .eslintrc.json
{
"extends": ["airbnb", "prettier", "prettier/react"],
"plugins": ["prettier", "react"],
"parserOptions": {
"ecmaVersion": 2017,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
@justintemps
justintemps / large-only-small-only.css
Last active February 15, 2017 08:47
Substitute for .hide-for-large using Foundation for Emails
/**
* ONLY MOBILE / NO MOBILE
*/
/* .small-only shows for mobile, hides for desktop */
table.container table.row .small-only {
display: none;
font-size: 0;
line-height: 0px;
max-height: 0px;
@justintemps
justintemps / ILO Country Names and Abbreviations
Last active May 22, 2023 16:26
Comma-separated list of ILO country names and abbreviations
Afghanistan,AF
Aland Islands,AX
Albania,AL
Algeria,DZ
American Samoa,AS
Andorra,AD
Angola,AO
Anguilla,AI
Antarctica,AQ
Antigua And Barbuda,AG