Skip to content

Instantly share code, notes, and snippets.

View jonchurch's full-sized avatar
♥️

Jon Church jonchurch

♥️
View GitHub Profile
@jonchurch
jonchurch / ShareholderOrg.sol
Created January 16, 2018 04:38 — forked from anonymous/ShareholderOrg.sol
Created using browser-solidity: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://ethereum.github.io/browser-solidity/#version=soljson-v0.4.19+commit.c4cbbb05.js&optimize=false&gist=
pragma solidity ^0.4.19;
contract owned {
address public owner;
function owned() {
owner = msg.sender;
}
modifier onlyOwner {
@jonchurch
jonchurch / ShareholderOrg.sol
Created January 10, 2018 21:13 — forked from anonymous/ShareholderOrg.sol
Created using browser-solidity: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://ethereum.github.io/browser-solidity/#version=soljson-v0.4.19+commit.c4cbbb05.js&optimize=false&gist=
pragma solidity ^0.4.19;
contract owned {
address public owner;
function owned() {
owner = msg.sender;
}
modifier onlyOwner {
@jonchurch
jonchurch / README.md
Last active December 12, 2017 21:08 — forked from andredumas/README.md
TechanJS Supstance

Interactive support and resistance line rendering on a chart. Illustrating setting start end end points and horizontal line at full width.

@jonchurch
jonchurch / ShareholderOrg.sol
Created November 13, 2017 02:57 — forked from anonymous/ShareholderOrg.sol
Created using browser-solidity: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://ethereum.github.io/browser-solidity/#version=soljson-v0.4.18+commit.9cf6e910.js&optimize=false&gist=
pragma solidity ^0.4.16;
contract owned {
address public owner;
function owned() {
owner = msg.sender;
}
modifier onlyOwner {
@jonchurch
jonchurch / todos.js
Last active July 24, 2017 17:44 — forked from julianburr/todos.js
Node script to list todos notes in code base
/**
* Author: Julian Burr <https://github.com/julianburr>
* License: https://creativecommons.org/publicdomain/zero/1.0/
*
* This script basically just runs through all source files and
* prints out a list of files and lines where it found the TODO
* keyword
*
* If you want to look for other keywords, just changed the
* searchRegEx to your needs :)
@jonchurch
jonchurch / asyncloops.js
Created July 22, 2017 18:41 — forked from lukehoban/asyncloops.js
Async/await and parallel loops
// ES6 w/ Promises
// Note: From a React starter template - see https://t.co/wkStq8y3I5
function fetchData(routes, params) {
let data = {};
return Promise.all(routes
.filter(route => route.handler.fetchData)
.map(route => {
return route.handler.fetchData(params).then(resp => {
data[route.name] = resp;
@jonchurch
jonchurch / index.html
Created June 29, 2017 18:35 — forked from ColeTownsend/index.html
The Micro Stripe demo front end.
<!DOCTYPE html>
<html>
<head>
<title>Micro Stripe Checkout</title>
<meta charSet='utf-8' />
<meta name='viewport' content='initial-scale=1.0, width=device-width' />
<script src="https://js.stripe.com/v3/"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>
<style>
* {
@jonchurch
jonchurch / beginner.vimrc.vim
Created February 24, 2017 00:54 — forked from pthrasher/beginner.vimrc.vim
A well commented beginner set of vim settings for your ~/.vimrc
" Beginners .vimrc
" v0.1 2012-10-22 Philip Thrasher
"
" Important things for beginners:
" * Start out small... Don't jam your vimrc full of things you're not ready to
" immediately use.
" * Read other people's vimrc's.
" * Use a plugin manager for christ's sake! (I highly recommend vundle)
" * Spend time configuring your editor... It's important. Its the tool you
" spend 8 hours a day crafting your reputation.
@jonchurch
jonchurch / gesture.js
Created October 4, 2016 19:18 — forked from eguneys/gesture.js
A Gesture Manager for Phaser.
'use strict';
define(['phaser'], function(Phaser) {
function Gesture(game) {
this.game = game;
this.swipeDispatched = false;
this.holdDispatched = false;
this.isTouching = false;
@jonchurch
jonchurch / README-Template.md
Created July 8, 2016 15:21 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisities