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 / phillip-lorenzo-resume.md
Last active December 10, 2018 21:26
Phillip Lorezo Resume

Phillip Lorenzo


linkedin.com/in/phillip-lorenzo | github.com/pllearns


Experience

@pllearns
pllearns / CONTRACTS_AS_STATE.md
Last active February 2, 2018 03:54
Solidity Notes

State Machine

Contracts often act as a state machine, which means that they have certain stages in which they behave differently or in which different functions can be called. A function call often ends a stage and transitions the contract into the next stage (especially if the contract models interaction). It is also common that some stages are automatically reached at a certain point in time. Function modifiers can be used in this situation to model the states and guard against incorrect usage of the contract.

@pllearns
pllearns / 1_16_18_Work_Plan.md
Last active February 5, 2018 19:48
Work Plans

Work Plan 1/16/18

Overview

Build using and learn Twilio API Continue the Build Vinyl App using GraphQL as a database

Areas fo Focus

Project Description

@pllearns
pllearns / CollaborateAppSchema.sql
Last active August 3, 2017 22:48
Collaborate App Work
DROP TABLE IF EXISTS users;
CREATE TABLE users (
id SERIAL PRIMARY KEY,
facebook_id BIGINT,
linkedin_id BIGINT,
profile_created BOOLEAN DEFAULT false,
created_at DATE DEFAULT CURRENT_TIMESTAMP,
access_token VARCHAR(255)
);
@pllearns
pllearns / DescriptionFilePlugin.js
Last active August 3, 2017 22:42
Webpack Refactors
const createInnerCallback = require("./createInnerCallback");
const DescriptionFileUtils = require("./DescriptionFileUtils");
class DescriptionFilePlugin {
constructor(source, filenames, target) {
this.source = source;
this.filenames = [].concat(filenames);
this.target = target;
}
@pllearns
pllearns / httpClient.js
Last active July 7, 2017 22:41
Learn You Node exercises
var http = require('http')
http.get(process.argv[2], (res) => {
res.setEncoding('utf8')
res.on('data', console.log)
res.on('error', console.error)
}).on('error', (e) => {
console.error(`Got error: ${e.message}`)
})
@pllearns
pllearns / countingCards.js
Created June 7, 2017 00:52
FreeCodeCamp Exercise Solutions
var count = 0;
function cc(card) {
// Only change code below this line
switch(card) {
case 2:
case 3:
case 4:
case 5:
case 6:
@pllearns
pllearns / SPECS.md
Last active June 9, 2017 21:33
Final Week - Get Hired
@pllearns
pllearns / InitialSpecs.md
Last active May 23, 2017 17:55
Week 49 - Get Hired Goal

Get Hired Specs - Week 49

  • Complete one codeFight per day
  • Apply to 10 jobs outside of Hired.com
  • Complete at least one interview from Hired.com
  • Write a blog on Webpack for Sweetcode.io
@pllearns
pllearns / stackNew.js
Created May 20, 2017 23:45
Stack in ES6
'use strict'
class Stack {
constructor(capacity) {
this._capacity = capacity || Infinity
this._storage = {}
this._count = 0
}
push(value) {