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 / 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 / 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 / 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 / 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 / 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 / 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

Archivist and Diviner Payable on Delivery Demo

This demo will allow you to complete an end-to-end conversation between an Archivist and Diviner to confirm a delivery and secure a payment.

What you will need

  • Use nvm to run node in 10 LTS (currently 10.15.0), this is because the node installs will fail if using the system node.
  • ganache-ui
  • sequel pro
  • docker
@pllearns
pllearns / XYOApp_Challenge.md
Last active February 6, 2019 01:07
XYO APP Hackathon Challenges

XYO ETHDenver Challenges

A few things to consider

  • It would be wise before you start to develop your contracts in a local environment. We have some [resources] for you to get started.
  • Don't rush to code, you have some time to think this problem through. In fact, it's far more effective to fully understand the challenge and whiteboarding/brainstorming through the problem before writing pragma solidity...
  • Have fun and ask questions!

Pre-requisites

  • Web3 working knowledge
@pllearns
pllearns / README-GUIDE.md
Last active April 23, 2019 21:38
Guide to writing a readme (for public consumption on GitHub)

Company Logo First

logo

Status of the repo (build, code quality, chat option)

@pllearns
pllearns / xyo-matrix-startup-guide.md
Last active March 14, 2019 21:13
XYO Matrix Guide

Welcome to the Matrix

The XYO Matrix allows you to interact with the XYO network. In order to start interacting with the Matrix you will need a few tools.

Getting Started

What will you need?

  • Your chosen MetaMask tool - MetaMask allows you to use Ethereum accounts to interact with dApps