Skip to content

Instantly share code, notes, and snippets.

💭
🤙 Stoked 🏄‍♂

Ivan Storck ivanoats

💭
🤙 Stoked 🏄‍♂
Block or report user

Report or block ivanoats

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ivanoats
ivanoats / keybindings.json
Created Oct 19, 2018
Visual Studio Code Keyboard Shortcuts customization
View keybindings.json
// Place your key bindings in this file to overwrite the defaults
[
{
"key": "f1",
"command": "extension.dash.specific",
"when": "editorTextFocus"
},
{
"key": "alt+cmd+r",
"command": "workbench.action.tasks.runTask",
@ivanoats
ivanoats / .eslintrc.js
Created Sep 24, 2018 — forked from nkbt/.eslintrc.js
Strict ESLint config for React, ES6 (based on Airbnb Code style)
View .eslintrc.js
{
"env": {
"browser": true,
"node": true,
"es6": true
},
"plugins": ["react"],
"ecmaFeatures": {
View static.config.js
// 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',
View package-list.txt
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
View error.log
==> 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
Expo location example error
View error.log
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 Nov 17, 2017
Sitemap for Gatsby
View gatsby-node.js
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
View .babelrc
{
"presets": ['react', 'es2015', 'stage-0'],
"plugins": ['add-module-exports', 'transform-async-to-generator']
}
View scripts-fetch-from-contentful.js
#!/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
View filters.js
#!/usr/bin/env babel-node
import _ from 'lodash/fp'
const filters = {
// cities
sea: true,
nyc: false,
// experience levels
beginner: true,
intermediate: true,
You can’t perform that action at this time.