Skip to content

Instantly share code, notes, and snippets.

View dcalhoun's full-sized avatar

David Calhoun dcalhoun

View GitHub Profile
@dcalhoun
dcalhoun / modernizr-loader-errors.txt
Created April 7, 2016 16:46
Errors from importing Modernizr with modernizr-loader.
ERROR in ./~/modernizr/lib/build.js
Module not found: Error: Cannot resolve module 'generate' in /Users/username/Sites/web/gn-join/node_modules/modernizr/lib
@ ./~/modernizr/lib/build.js 151:2-72
ERROR in ./~/modernizr/lib/build.js
Module not found: Error: Cannot resolve module 'lib/generate-banner' in /Users/username/Sites/web/gn-join/node_modules/modernizr/lib
@ ./~/modernizr/lib/build.js 151:2-72
ERROR in ./~/modernizr/lib/build.js
Module not found: Error: Cannot resolve module 'package' in /Users/username/Sites/web/gn-join/node_modules/modernizr/lib
@dcalhoun
dcalhoun / snippets.cson
Created September 29, 2016 15:33
Atom snippets.
# Your snippets
#
# Atom snippets allow you to enter a simple prefix in the editor and hit tab to
# expand the prefix into a larger code block with templated values.
#
# You can create a new snippet in this file by typing "snip" and then hitting
# tab.
#
# An example CoffeeScript snippet to expand log to console.log:
#
@dcalhoun
dcalhoun / App.js
Last active November 1, 2018 15:49
React Native Swift UI Module
import Foo from './Foo';
import React, { Component } from 'react';
export default class App extends Component {
render() {
return (
<Foo autostart={true} file="http://example.com" />
);
}
}
@dcalhoun
dcalhoun / machine.js
Last active April 7, 2021 20:03
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions