Skip to content

Instantly share code, notes, and snippets.

View fresh5447's full-sized avatar

Douglas Walter fresh5447

View GitHub Profile
@fresh5447
fresh5447 / data.js
Created July 28, 2017 17:01
Fake Data for Tex Mex React Exercise
export default {
title: "Lous Tex Mex",
address: {
street: '66212 El Paso Ave.',
suite: 'Suite 4B',
city: 'Austin',
state: 'TX',
zip: '73301'
},
phone: '1-223-782-9090',
@fresh5447
fresh5447 / introToState.js
Created July 26, 2017 19:05
Sample for users list.
import React from 'react';
import myData from './data/data'
// SMART / Container / has state
// DUMB / Presentational / return HTML
// this.setState({})
const UsersList = (props) => {
@fresh5447
fresh5447 / app.js
Created July 21, 2017 17:37
Quick overview of arrow functions
// ES5 Function
function sayHi(name){
return "Hello, there " + name + "!";
}
// console.log(sayHi("Doug")); // "Hello, there Doug!"
// new var
@fresh5447
fresh5447 / mockup.js
Last active June 21, 2017 03:20
A data mockup for a zoo
// Zoo
// animals, pens, zookeepers
{
zookeepers: [
{ id: 12, name: 'Joe', pensResponsibleFor: [341, 324, 642, 234] },
{ id: 14, name: 'Paul', pensResponsibleFor: [326, 321, 043, 324] },
{ id: 22, name: 'Suzie', pensResponsibleFor: [326, 423, 233, 324] },
{ id: 15, name: 'Sarah', pensResponsibleFor: [326, 101, 213, 324] },
],
import React from 'react'
import ReactDOM from 'react-dom'
import getMuiTheme from 'material-ui/styles/getMuiTheme'
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'
import { BrowserRouter as Router, Route } from 'react-router-dom'
import './index.css'
import injectTapEventPlugin from 'react-tap-event-plugin'
import { importantPlugin } from './lib/jss-extras'
import preset from 'jss-preset-default'
import { jss } from 'react-jss'
import React from 'react'
import ReactDOM from 'react-dom'
import { createStore, combineReducers, applyMiddleware, compose } from 'redux'
import userReducer from './redux/modules/users'
import { BrowserRouter as Router, Route } from 'react-router-dom'
import ApolloClient, { createNetworkInterface } from 'apollo-client'
import { ApolloProvider } from 'react-apollo'
require('./sharedStyles/main.css')
import {CreatePostContainer, SandboxContainer,
{
"name": "client",
"version": "0.1.0",
"private": true,
"proxy": "http://localhost:3001/",
"scripts": {
"clean": "rimraf",
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test --env=jsdom",
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Bears Vue</title>
<!-- Bootstrap -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
@fresh5447
fresh5447 / notes.md
Created May 15, 2017 15:52
Curriculum Notes

The Code Range consists of 3 core components

  • Courses: Just what they sound like. Our core offerings.
  • Tutorials: This is any piece of educational content written and curated by Staff/ Students, but does not particularly belong directly to a course. They use the Module - sections pattern.
  • Resources: Simply a curated list of content and materials that remain out there on the web. Students can filter through resources by topic or category, they can also up vote resources, save resources to their favorites list, and comment on resources.

Summary: The modules are laid out so they align with both PT and FT classes. The online class will attempt to complete 1 module per 2 weeks. Aligning with 10 modules over the 5 month course. The FT class will attempt to complete one module a week. Leaving 2 weeks at the end to focus solely on a group project and job preperation.

Each course is a core section of the BSCA. Courses currently offered:

  • Bootcamp Prep Course (materials and content regarding the interview proces
var express = require('express');
var Router = express.Router();
var async = require('async');
var Superhero = require('../models/superhero');
Router.route('/')
.get(function(req,res){
Superhero.find(function(err, data){
if (err) {