Skip to content

Instantly share code, notes, and snippets.

View JackHowa's full-sized avatar

Jack Howard JackHowa

View GitHub Profile
@JackHowa
JackHowa / react native - latr 2.0
Created June 1, 2018 00:23
this is a running list of helpful commands for react native
# see available devices for the simulator
xcrun simctl list devices
react-native run-ios --simulator="iPhone 10"
@JackHowa
JackHowa / fcc-redux
Last active May 22, 2022 17:49
fcc redux curriculum snippets
this is for the free code camp course on Redux https://learn.freecodecamp.org/front-end-libraries/redux/create-a-redux-store
@JackHowa
JackHowa / react curriculum
Created May 28, 2018 19:06
react fcc beta code snippets
// React - Bind 'this' to a Class Method
class MyComponent extends React.Component {
constructor(props) {
super(props);
this.state = {
visibility: false
};
// change code below this line
this.toggleVisibility = this.toggleVisibility.bind(this)
// change code above this line
const axios = require('axios');
const baseURL = 'https://rest.coinapi.io';
const apiKey = 'X';
const bitcoinPath = '/v1/exchangerate/BTC';
getDetails();
const axios = require('axios');
const githubURL = 'https://api.github.com/users/';
const jackGithubUrl = githubURL + 'jackhowa';
const mattGithubUrl = githubURL + 'mattzuzolo';
getDetails();
@JackHowa
JackHowa / dope react spread
Created May 3, 2018 02:33
react working with data
// this should be presentation
const Card = (props) => {
return (
<div style={{margin: '1em'}}>
<img width='75' src={props.avatar_url} />
<div style={{display: 'inline-block', marginLeft: 10}}>
<div style={{fontSize: '1.25em', fontWeight: '1.25em'}}>{props.name}</div>
<div>{props.company}</div>
</div>
</div>
function checkCashRegister(productPrice, cashGiven, cashInDrawer) {
let changeNeeded = cashGiven - productPrice;
let errors = checkErrors(changeNeeded, cashInDrawer);
if (typeof errors == "string") {
return errors;
} else {
return [];
}
}
<div id='rating'>
<span>*</span>
<span>*</span>
<span>*</span>
<span>*</span>
<span>*</span>
</div>
@JackHowa
JackHowa / SertifiController.php
Last active February 22, 2018 20:39
basic implementation with questions
/* questions
find file status? better way than checking whether there's a document signed?
// best way to identify loans? can do file id and document id. but what about multiple documents? find all the documents that are signed for an individual unit?
-is there an id?
relevant info
Add a basic implementation of sertifi get link, create signature and get status based on file id
Add a basic template outline for the show page of sertifi
note: routes don't currently take in relevant info. and there's no front-end. but I think this satisfies the given request of getting a sertifi loan status and investigating the api.
@JackHowa
JackHowa / index.html
Created February 19, 2018 01:45
NyyrLK
<table id="card-container">
<tbody>
<tr>
<td class="card">down</td>
<td class="card">down</td>
</tr>
<tr>
<td class="card">down</td>
<td class="card">down</td>
</tr>