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 / 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 / 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 / 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 / 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
@pllearns
pllearns / bridge-x-guide.md
Last active March 18, 2019 19:48
Bridge X Guide

Connecting your Bridge X with a browser

The XYO Bridge is the primary data relayer of the XYO Network. It signs off on collected data from nearby Sentinel X devices to add to the proof of origin chain.

Getting Started

What will you need? Some of these items you may not need but you should have just in case.

@pllearns
pllearns / XY_DEVELOPER_GUIDE.md
Last active April 18, 2019 19:09
XY Development Guide

logo

DEVELOPER GUIDE

The following is a guide for all procedures, standards, and conduct while working on any developmnent projects at XYO.

While you own your assigned project, you do have decision making autonomy, however you should refer to this guide for key infrastructure so that your app is ready for the high standards here at XYO.

IMPORTANT