Skip to content

Instantly share code, notes, and snippets.

View pllearns's full-sized avatar

Phillip Lorenzo pllearns

  • FYC Labs
  • Portland, OR
View GitHub Profile
@pllearns
pllearns / 1-Initial Specs
Last active January 9, 2017 16:51
Coach-Que MVP-Week
Prepare coach-que for MVP status
- Getting JWT to work without hard code to the console. (idm)
- Check functionality of assigning a new appointment.
- No appointments after hours/weekends.
- Pinging the customer feedback form.
- Final QA of appointment setting and feedback initiation.
@pllearns
pllearns / ReactRouter.js
Created January 14, 2017 05:30
React Router - Rethinking what can be passed through.
import ReactDom from 'react-dom'
import {Component} from 'react'
import React from 'react'
import { Router, Route, browserHistory } from 'react-router'
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'
import LandingPage from './LandingPage'
import ScheduleSession from './ScheduleSession'
import ActivateCoach from './ActivateCoach'
import CoachLanding from './CoachLanding'
import fetchMethod from './fetchMethod'
@pllearns
pllearns / .eslintrc
Last active January 30, 2017 16:56
webpack/enhanced-resolve-es6-refactor
{
"root": true,
"plugins": ["node", "eslint-plugin-node"],
"extends": ["eslint:recommended", "plugin:node/recommended"],
"env": {
"node": true,
"es6": true
},
"rules": {
"quotes": ["error", "double"],
@pllearns
pllearns / LG Clubhouse Stories Links
Last active February 13, 2017 16:13
LOS - Apprenticeship - Week 2 -
@pllearns
pllearns / Basic HTML & CSS
Last active February 17, 2017 18:58
Resources for Skills/Another Trail
Goal choice: https://github.com/GuildCrafts/web-development-js/issues/36 --> Will need to be edited into new immutable specs
Goal choice: https://github.com/GuildCrafts/web-development-js/issues/145 --> Will need to emphasize HTML learning here
Any goal that has a need for a
@pllearns
pllearns / 1. Getters and Setters
Last active February 27, 2017 02:39
Object Oriented Javascript (from Derek Banas Tutorial)
Here is an efficient way to get getters and setters:
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Javascript Practice</title>
</head>
<body>
<script type="text/javascript">
@pllearns
pllearns / Story 1078
Created March 27, 2017 21:09
floppy-alpaca-slack-transfer
One part of the LG transfer to slack
Related: https://app.clubhouse.io/learnersguild/story/1075
### Specs - addresses story 1078
- [ ] Identify and replace current echo/RC API extensions and replace with SLACK HTTP API.
- [ ] Point the chat client code in `game` to invoke existing methods in Slack HTTP API.
#### Original Story Source
@pllearns
pllearns / program.js
Created May 1, 2017 17:13
Solutions to Learnyounode ---> Make it Modular
'use strict'
var readFile = require('./readFile.js')
var file = process.argv[2]
var filtered = process.argv[3]
readFile(file, filtered, function(err, list) {
if (err) {
return console.log(err)
}
@pllearns
pllearns / program.js
Created May 1, 2017 17:25
Solution to http.client in learnyounode --> http.client
'use strict'
var http = require('http')
http.get(process.argv[2], function(response) {
response.setEncoding('utf-8')
response.on('data', console.log)
response.on('error', console.log)
})
@pllearns
pllearns / program.js
Created May 1, 2017 17:51
Solution to http.collect ----> learnyounode http.collect
'use strict'
var http = require('http')
var bl = require('bl')
http.get(process.argv[2], function(response) {
response.pipe(bl(function(err, data) {
if (err) {
console.error(err)
}