Skip to content

Instantly share code, notes, and snippets.

View ASteinheiser's full-sized avatar

Andrew Steinheiser ASteinheiser

View GitHub Profile
import React, { Component } from 'react'
import JsonSchemaForm from 'react-jsonschema-form'
import NodeNumberInput from '../components/node-number-input'
import NodeSchemaInput from '../components/node-schema-input'
import FlowDataInput from '../components/flow-data-input'
export default class FlowJsonSchemaEditor extends Component {
state = {
import React, { Component } from 'react'
export default class NodeSchemaInput extends Component {
handleChange = () => {
}
render() {
return <div>
ToDo:
workspace - create another flow
{
"type": "object",
"title": "Citrix Sales to Pokemon!",
"properties": {
"name": {
"title": "Seller Name",
"type": "string"
},
"customer": {
"title": "Customer Name",
@ASteinheiser
ASteinheiser / buildVoc.m
Last active May 23, 2017 20:35
build voc function in matlab
% function to create a vocabulary from multiple text files under folders
function voc = buildVoc(folder, voc)
stopword = {'ourselves', 'hers', 'between', 'yourself', 'but', 'again', 'there', ...
'about', 'once', 'during', 'out', 'very', 'having', 'with', 'they', 'own', ...
'an', 'be', 'some', 'for', 'do', 'its', 'yours', 'such', 'into', ...
'of', 'most', 'itself', 'other', 'off', 'is', 's', 'am', 'or', ...
'who', 'as', 'from', 'him', 'each', 'the', 'themselves', 'until', ...
'below', 'are', 'we', 'these', 'your', 'his', 'through', 'don', 'nor', ...
@ASteinheiser
ASteinheiser / cse408_bow.m
Created May 23, 2017 21:24
bag of words matlab function
% function to create a vocabulary from multiple text files under folders
function feat_vec = cse408_bow(filepath, voc)
[fid, msg] = fopen(filepath, 'rt');
error(msg);
line = fgets(fid); % Get the first line from the file.
feat_vec = zeros(size(voc)); %Initialize the feature vector'
% array of words
@ASteinheiser
ASteinheiser / array-sort-search-filter.js
Created February 16, 2018 18:27
simple array sorting, filtering, searching
console.log(data)
var filterBy
// filtering
switch (body.orderBy.toLowerCase()) {
case 'name':
filterBy = 'first_name'
break;
case 'age':
filterBy = 'age'
break;
#!/bin/bash
for dir in $(ls)
do
if [ ! -f $dir/package.json ]; then
echo 'No modules to install for: ' $dir
else
echo 'Reinstalling node_modules for: ' $dir;
if [ -d $dir/node_modules/ ]; then
rm -rf $dir/node_modules/
@ASteinheiser
ASteinheiser / icon-sizes.md
Last active September 18, 2018 00:31
Icon sizes for iOS and Android

Android

  • 48x48px
  • 72x72px
  • 96x96px
  • 144x144px
  • 192x192px

iOS

  • 20x20px
  • 29x29px
@ASteinheiser
ASteinheiser / waiver-device-tests.md
Last active April 6, 2018 23:02
Waiver Device Testing

iOS

Legend
(?) - more of a suggestion/my opinion

Overall User Experience

  • On 'My Account' -> 'Personal Information' & 'Notification Settings', the 'Save' button is shifted up about 5px.
  • 'How It Works' buttons redirects to 'Not Found'.
  • When you click the hamburger on the navigation top bar, the navigation options (i.e. 'Home', 'About') are slightly shifted to the right.
  • (?) The navigation options drawer should close after I click outside the navigation options after they have been opened by the hamburger.
  • On Sign In, the 'Forgot password?' button and 'Sign in' button are not horizontally centered with each other.