Skip to content

Instantly share code, notes, and snippets.

Eric Wyne ecwyne

Block or report user

Report or block ecwyne

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
View bruno-use-async.ts
import { useState, useEffect, useCallback } from 'react';
type AsyncState<TData, TError = Error> = {
status: 'idle' | 'loading' | 'finished' | 'failed';
data?: TData;
error?: TError;
};
type AsyncOptions<TArgs> = {
onLoad?: boolean;
@ecwyne
ecwyne / README.md
Last active May 29, 2019
ACH.com Error Findings
View README.md

Opening https://api.ach.com/webservice/V1/gateway.asmx?WSDL in chrome browser results in the following error message.

This page contains the following errors:
error on line 92 at column 1: expected '>'
Below is a rendering of the page up to the first error.

Firefox returns the following error

View Fauna Index Lessons Learned.md

Consider the following example. We have a sales class that has instances with the following shape.

{
  date: '2019-04-21',
  total: 1050,
  salesperson: Ref(Class('users'), '1234')
}
@ecwyne
ecwyne / CampFireHousing.ts
Last active Jul 23, 2019
Serverless CampFireHousing
View CampFireHousing.ts
import fetch from 'node-fetch';
import Twitter from 'twit';
import { parse, format } from 'fecha';
import { take } from 'ramda';
const URL = 'GOOGLE_SHEETS_URL';
const T = new Twitter({
consumer_key: 'consumer_key',
consumer_secret: 'consumer_secret',
@ecwyne
ecwyne / hydra-methods.md
Last active Apr 20, 2017
Documentation for hydra.ready()
View hydra-methods.md

ready

Returns promise that resolves when initialization is complete.

/**
* @name ready
* @summary returns promise that resolves when initialization is complete
* @return {object} promise - resolving if init success or rejecting otherwise
*/
ready()
View cellular-automata.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Cellular Automata</title>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/ramda/0.22.1/ramda.js"></script>
<style>
.cell {
width: 5px;
height: 5px;
@ecwyne
ecwyne / meteor-logs.md
Created Oct 12, 2014
meteor-polymer issue #16 debugging code
View meteor-logs.md
[Sat Oct 11 2014 22:47:29 GMT+0000 (UTC)] INFO HIT /bower_components/core-popup-menu/bower_components/core-header-panel/bower_components/core-header-panel/bower_components/core-header-panel/bower_components/core-header-panel/bower_components/core-header-panel/bower_components/core-header-panel/bower_components/core-header-panel/bower_components/core-header-panel/bower_components/core-header-panel/bower_components/core-header-panel/bower_components/core-header-panel/bower_components/core-header-panel/bower_components/core-header-panel/bower_components/core-header-panel/bower_components/core-header-panel/bower_components/core-header-panel/bower_components/core-header-panel/bower_components/core-header-panel/bower_components/core-header-panel/bower_components/core-header-panel/bower_components/core-header-panel/bower_components/core-header-panel/bower_components/core-header-panel/bower_components/core-header-panel/bower_components/core-header-panel/bower_components/core-header-panel/bower_components/core-hea
View designer.html
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../paper-input/paper-input.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../paper-item/paper-item.html">
You can’t perform that action at this time.