Skip to content

Instantly share code, notes, and snippets.

💭
25 years of paving open source roads

Jon Stevens lookfirst

💭
25 years of paving open source roads
View GitHub Profile
@lookfirst
lookfirst / SchemaProvider.tsx
Created Oct 9, 2019
react-final-form Material-UI TextField
View SchemaProvider.tsx
import React, {useContext, createContext} from "react";
import {Schema} from "yup";
export const SchemaContext = createContext<Schema<any> | undefined>(undefined);
interface SchemaProviderProps<T> {
value: Schema<T>,
children: React.ReactNode | React.ReactNode[],
}
@lookfirst
lookfirst / Code.gs
Created Apr 30, 2019
Crypto pricing for Google Sheets
View Code.gs
/**
* Crypto pricing for Google Sheets. Caches values for 10 minutes.
*
* Tools -> Script editor, paste this in.
* Create and populate the API key below.
*
* https://www.cryptocompare.com/coins/guides/how-to-use-our-api/
*/
var CC_API_KEY="";
@lookfirst
lookfirst / litecoinpool-workers.js
Last active Apr 28, 2018
Script to add workers to litecoinpool. Generate the names somehow. Run it in a Chrome devtools console window while logged into the workers page...
View litecoinpool-workers.js
var names = []; // add your names to the array however you want
var password = '123123';
var psselector = "input[name='ps']";
var ps = $(psselector).val();
console.log(ps);
var posts = [];
names.forEach((name) => {
var username = name;
View gist:9d6771f02bf85503e23019f98dbe1757
Verifying that "jonstevens.id" is my Blockstack ID. https://onename.com/jonstevens
View keybase.md

Keybase proof

I hereby claim:

  • I am lookfirst on github.
  • I am latchkey (https://keybase.io/latchkey) on keybase.
  • I have a public key ASAir9hZcjq-KxG3ogHhrxBAONZ4M2FXNDnoogKeRpBA3wo

To claim this, I am signing this object:

View Digital Ocean Promo Code Developer Madness Discount 2017.md

Digital Ocean Promo Code for 2017

Save $25 for your Cloud Computing Solution with Digital Ocean.

How to get the Discount?

1.) FIRST! Use this link to Sign Up and get a $10 discount.

2.) Enter the Promocode LOWENDBOX when you choose your payment method and get another $15 discount.

@lookfirst
lookfirst / RemoteApiExample.java
Created May 3, 2016 — forked from squishypenguin/RemoteApiExample.java
Demonstrates bug in remote api transactional task handling
View RemoteApiExample.java
package com.remoteapi.bug;
import com.google.appengine.api.datastore.*;
import com.google.appengine.api.taskqueue.Queue;
import com.google.appengine.api.taskqueue.QueueFactory;
import com.google.appengine.api.taskqueue.TaskOptions;
import com.google.appengine.tools.remoteapi.RemoteApiInstaller;
import com.google.appengine.tools.remoteapi.RemoteApiOptions;
import java.io.IOException;
View gist:3719225
#!/usr/bin/env node
/*
* This is Voost's own custom version of the handlebars compiler which walks
* the whole tree and compiles all the files. It supports a directory
* structure and creates the output files in the same structure.
*/
var optimist = require('optimist')
.usage('Precompile handlebar templates.\nUsage: $0 template...', {
'f': {
View gist:3232093
#!/usr/bin/env node
/*
* This is Voost's own custom version of the handlebars compiler which walks
* the whole tree and compiles all the files. It supports a directory
* structure and creates the output files in the same structure.
*/
var optimist = require('optimist')
.usage('Precompile handlebar templates.\nUsage: $0 template...', {
'f': {
You can’t perform that action at this time.