Skip to content

Instantly share code, notes, and snippets.

View nathanstilwell's full-sized avatar
💭
🔥 💻 🤘 💀

Nathan Stilwell nathanstilwell

💭
🔥 💻 🤘 💀
View GitHub Profile
. .
_\/ \/_
_\/\/_
_\_\_\/\/_/_/_
/ /_/\/\_\ \
_/\/\_
/\ /\
' '
@nathanstilwell
nathanstilwell / apple-devices.less
Last active October 10, 2016 16:55
iPhone Media Queries
//
// Ok look, I know this is a bad idea but I'm doing this as an experiment. I'm going to get really granular with these,
// which makes them basically unsuable. But it gives a decent overview of the diversity of iThangs.
// So chill.
//
// References:
// http://www.paintcodeapp.com/news/ultimate-guide-to-iphone-resolutions
// https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Media_queries#-moz-device-pixel-ratio
// http://stephen.io/mediaqueries/
//
@nathanstilwell
nathanstilwell / install_list.md
Last active September 19, 2015 17:59
a helpful list of chores when setting up a new machine

Set up a new machine

App Store

Crack open the app store and install all your favorite. Don't forget Xcode.

XCode

  1. Install XCode from the App Store
  2. > xcode-select --install
@nathanstilwell
nathanstilwell / .eslintrc
Last active September 19, 2015 23:51
This is an ESLint config I'm using. I'll update and us it as a reference
{
"rules": {
"quotes": [2, "single"],
"linebreak-style": [2, "unix"],
"semi": [2, "always"]
},
"env": {
"es6": true,
"node": true,
"browser": true
/*global require: true*/
'use strict';
var gulp = require('gulp');
var gutil = require('gulp-util');
var rename = require('gulp-rename');
var svgstore = require('gulp-svgstore');
var svgmin = require('gulp-svgmin');
var svgfallback = require('gulp-svgfallback');
(function (global) {
//
// Vars
//
var prefix = 'meetup-makes-it-magical--';
var magicStyleUrl = 'https://cdn.rawgit.com/nathanstilwell/54f147004fc83b5d3885/raw/22ab7a581c5377ff2c679a93f6c02f1d1c2f1cdc/magical.css';
var supercornUrl = 'https://raw.githubusercontent.com/upright-netizen/uprightnetizen.com/102d1d84259c54189ad31110668455f167302d3c/img/supercorn.gif';
var supercornClassname = prefix + 'supercorn';
/* Rainbows */
.meetup-makes-it-magical--rainbow-everything {
background: -moz-linear-gradient(
right,
hsl(0, 100%, 50%) 1%,
hsl(0, 100%, 50%) 14%,
hsl(30, 100%, 50%) 14%,
hsl(30, 100%, 50%) 28%,
hsl(60, 100%, 50%) 28%,
hsl(60, 100%, 50%) 42%,

Keybase proof

I hereby claim:

  • I am nathanstilwell on github.
  • I am nathanstilwell (https://keybase.io/nathanstilwell) on keybase.
  • I have a public key ASB0Moj6IJNp1qXV0wwt-xmNdlOxIDljvs2V9THKUETbmAo

To claim this, I am signing this object:

function stringTohex(string) {
// convert to base64
const base64encoded = btoa(string);
// convert to array
const arr = base64encoded.split('');
// convert to string to char code
const charCodes = arr.map((letter) => letter.charCodeAt());