Skip to content

Instantly share code, notes, and snippets.

View JackHowa's full-sized avatar

Jack Howard JackHowa

View GitHub Profile
@JackHowa
JackHowa / home.js
Created July 28, 2019 16:11
web-workers
(function Home(){
"use strict";
var startStopBtn;
var fibsList;
var worker;
document.addEventListener("DOMContentLoaded",ready,false);
@JackHowa
JackHowa / SearchParams.js
Created June 8, 2019 18:13
this is for the v5 with hooks, new pet api
import React, { useState } from "react";
import { ANIMALS } from "@frontendmasters/pet";
const SearchParams = () => {
// api limited to seattle and sf
const [location, setLocation] = useState("Seattle, WA");
const [animal, setAnimal] = useState("dog");
const [breed, setBreed] = useState("");
return (
@JackHowa
JackHowa / count-anagrams.js
Created April 18, 2019 16:48
Solution for counting number of lines to anagrams in a list, done recursively
'use strict';
/**
* Count the number of anagrams in a list of words.
*
* An anagram is a word made up of the same letters as another word in the array (but not
@JackHowa
JackHowa / gcd.js
Created April 18, 2019 16:46
solution for greatest common denominator
'use strict';
/**
* Find the greatest common divisor (GCD) of two positive integers.
*
* @param {number} a - The first integer
{"contents":{"editor":{"formatOnSave":true}},"overrides":[],"keys":["editor.formatOnSave"]}
@JackHowa
JackHowa / route.js
Created August 9, 2018 18:58
Tab navigator within tab nav within stack
import React from 'react';
import { createStackNavigator, createBottomTabNavigator, createMaterialTopTabNavigator, TabBarTop, TabNavigator } from 'react-navigation';
import { Text } from 'react-native';
import Welcome from './screens/Welcome';
import Loading from './screens/Loading';
import Offerings from './screens/Offerings';
import CreateAccount from './screens/signup/CreateAccount';
import ReferInformationScreen from './screens/signup/ReferInformationScreen';
import NetWorth from './screens/signup/NetWorth';
import EmploymentStatus from './screens/signup/EmploymentStatus';
@JackHowa
JackHowa / App.js
Created August 9, 2018 15:29
Custom headers in react-navigation from
// via https://snack.expo.io/Sydk-FD_W
import React from 'react';
import { ScrollView, Text, View, StyleSheet, Button } from 'react-native';
import { StackNavigator } from 'react-navigation'; // 1.0.0-beta.11
// import { Constants } from 'expo';
const CustomHeader = ({ title, subtitle }) => (
<View style={styles.header}>
<Text style={styles.title}>{title}</Text>
this is notes for the fcc course
@JackHowa
JackHowa / d3-notes.txt
Created June 24, 2018 23:37
this is notes about the d3 portion of the fcc code camp
d3 on fcc won't let be me
@JackHowa
JackHowa / AreaGraph.js
Created June 21, 2018 15:42
voronoi label component victory
want it to be similar to this https://jsfiddle.net/boygirl/z00r6h45/