Skip to content

Instantly share code, notes, and snippets.

View ivanoats's full-sized avatar
💭
🤙 Stoked 🏄‍♂️

Ivan Storck ivanoats

💭
🤙 Stoked 🏄‍♂️
View GitHub Profile
// import fetch from 'node-fetch'
import axios from 'axios'
export default {
getSiteData: () => ({
title: 'React Static Large JSON test'
}),
getRoutes: async () => {
const { data: locations } = await axios.get(
'http://localhost:3001/locations',
Clean2
Zen
atom-jade
atom-solarized-dark-ui
atom-ternjs
atom-typescript
atomic-chrome
autocomplete-haskell@0.6.5
autocomplete-modules@1.4.1
autocomplete-paths@1.0.2
==> Upgrading docker
==> Downloading https://homebrew.bintray.com/bottles/docker-17.11.0.high_sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring docker-17.11.0.high_sierra.bottle.tar.gz
==> Caveats
Bash completion has been installed to:
/usr/local/etc/bash_completion.d
zsh completions have been installed to:
/usr/local/share/zsh/site-functions
@ivanoats
ivanoats / error.log
Created May 18, 2017 16:29
Expo location example error
Module AppRegistry is not a registered callable module (calling runApplication)
__callFunction
MessageQueue.js:235:6
<unknown>
MessageQueue.js:108:26
guard
MessageQueue.js:46:4
callFunctionReturnFlushedQueue
MessageQueue.js:107:10
@ivanoats
ivanoats / gatsby-node.js
Last active November 17, 2017 14:17
Sitemap for Gatsby
import fs from 'fs-extra-promise'
import sm from 'sitemap' // npm install --save sitemap
function pagesToSitemap(pages) {
const urls = pages.map((p) => {
if (p.path !== undefined) {
return {
url: p.path,
changefreq: 'daily',
priority: 0.7
{
"presets": ['react', 'es2015', 'stage-0'],
"plugins": ['add-module-exports', 'transform-async-to-generator']
}
#!/usr/bin/env babel-node
import contentful from 'contentful'
import fs from 'fs-extra-promise'
// Requires a test to see if .env file exists because it will not on CI build
if (fs.existsSync('.env')) require('dotenv').config()
// Contentful Config
const apiToken = process.env.CONTENTFUL_DELIVERY_API_TOKEN
#!/usr/bin/env babel-node
import _ from 'lodash/fp'
const filters = {
// cities
sea: true,
nyc: false,
// experience levels
beginner: true,
intermediate: true,
@ivanoats
ivanoats / migrator.js
Created July 20, 2016 20:32
createBlogPost.js
const result = await space.createEntry('legacyPost', {
sys: {
createdAt: post.created_at,
updatedAt: post.updated_at,
},
fields: {
title: { 'en-US': post.title },
body: { 'en-US': post.body },
slug: { 'en-US': post.slug },
authorName: { 'en-US': post.author_name },
@ivanoats
ivanoats / instructor.md
Last active July 13, 2016 23:07
UW PCE Ruby Instructor needed

Instructor Needed for the Ruby Programming Certificate Program – University of Washington

The University of Washington Professional & Continuing Education is now hiring a part-time instructor for an evening certificate program in Ruby Programming.

We are looking for an instructor to teach the first course of a series of 3 – Ruby: The Core Language. Please see below course description to get a general sense of the course topics. The Ruby Programming Certificate webpage can also be found at the following link.

http://www.pce.uw.edu/certificates/ruby-programming.html

Prior teaching experience is helpful, but not required. We’re seeking a professional who has been working with Ruby Programming for several years.