Skip to content

Instantly share code, notes, and snippets.

View laere's full-sized avatar
🎯
Focusing

Zack laere

🎯
Focusing
  • Grand Rapids, MI
View GitHub Profile
var Fetch = require('whatwg-fetch');
var baseURL = 'http://swapi.co/api';
var service = {
get: function(url) {
return fetch(baseURL + url)
//returning a promise
//function callback that will promise us something
.then(function(response) {
@font-face {
font-family: 'Star Jedi';
src: url('Starjedi.eot');
src: url('Starjedi.eot?#iefix') format('embedded-opentype'),
url('Starjedi.woff') format('woff'),
url('Starjedi.ttf') format('truetype'),
url('Starjedi.svg#Starjedi') format('svg');
font-weight: normal;
font-style: normal;
}
var fetch = require('whatwg-fetch');
var baseURL = 'http://swapi.co/api/';
var service = {
get: function(url) {
return fetch(baseURL + url)
//returning a promise
//function callback that will promise us something
.then(function(response) {
@laere
laere / reset-rems
Created January 28, 2016 16:37 — forked from mrwweb/reset-rems
"Sanity-ize" REMs by setting them to 10px-baseline aka "Tiny Happy Pixels Dancing."
/* this is the "root" in "root em." */
html {
font-size: 62.5%; /* Now 10px = 1rem! */
}
body {
font-size: 16px; /* px fallback */
font-size: 1.6rem; /* default font-size for document */
line-height: 1.5; /* a nice line-height */
}
// Bitters 1.1.0
// http://bitters.bourbon.io
// Copyright 2013-2015 thoughtbot, inc.
// MIT License
@import "variables";
// Neat Settings -- uncomment if using Neat -- must be imported before Neat
// @import "grid-settings";