Skip to content

Instantly share code, notes, and snippets.

View jgrizzled's full-sized avatar

Justin Greene jgrizzled

View GitHub Profile
@jgrizzled
jgrizzled / sybil_attack.py
Created July 4, 2024 03:09
sybil attack simulation
import random
from typing import List
import matplotlib.pyplot as plt
class User:
def __init__(self, is_attacker=False, verified=False):
self.is_attacker = is_attacker
self.verified = verified
class Pair:
@jgrizzled
jgrizzled / COVIDMarket_summary.txt
Last active April 13, 2020 21:16
COVIDMarket Summary
App name: COVID Market
Description:
The COVID-19 pandemic has severely impacted the US economy.
Stay abreast of the unfolding situation with key COVID-19 statistics and economic indicators.
Gain insight into the market by comparing the current stock market with past recessions.
Technical info:
The app will display a customizable chart that allows the user to overlay various data.
The data will include COVID-19 case stats and economic data.
@jgrizzled
jgrizzled / melon_infura_test.js
Created November 27, 2019 17:52
Melon Infura Test
const Web3 = require('web3');
const apiKey = 'INSERT_API_KEY';
const web3 = new Web3('https://mainnet.infura.io/v3/' + apiKey);
// ABI of called contract
const fundRankingAbi = [
{
constant: true,
inputs: [{ name: '_factory', type: 'address' }],
@jgrizzled
jgrizzled / Thinkful API Capstone User Flows.txt
Created November 21, 2019 15:50
Thinkful API Capstone User Flows
App:
Melon List
Description:
View the current live funds on the blockchain platform Melon Protocol (melonprotocol.com)
Pages:
Main page (on page load): header, search box, submit button
Main page (on submit): add table of funds
Main page (on table click): expand fund row clicked on
@jgrizzled
jgrizzled / Thinkful API Capstone User Stories.txt
Last active November 21, 2019 00:54
Thinkful API Capstone User Stories
App:
Melon List
Description:
Melon Protocol is a fund management platform that lets users launch funds on the Ethereum blockchain.
Melon List is a webapp that retreives the list of funds from the blockchain and displays fund details to the user.
As a new user, I want to:
1. Discover a growing ecosystem of blockchain funds
@jgrizzled
jgrizzled / Thinkful API Capstone Proposal.txt
Created November 20, 2019 20:31
Thinkful API Capstone Proposal
Melon Protocol (melonprotocol.com) is a fund management platform built on the Ethereum blockchain.
Melon was released earlier this year and allows anyone to launch a fund on the blockchain.
At present, there is no way to easily see a list of live funds on the platform.
For the API capstone, my app will talk to the blockchain through the Infura.io API, and retreive a list of funds on the Melon platform.
Users will be able to see the state of the Melon fund ecosystem and track fund performance, without having to run specialized blockchain software.
Users can input a search string to only display matching funds (by name).
Users can click on a fund to view more details such as fees and number of investors (causes additional API calls).
Additionally, the app will use the Messari.io API to get the current market price of cryptocurrencies, so users can see fund balances in terms of US dollars.
I have already prototyped and tested API calls to ensure I can get the needed data.
@jgrizzled
jgrizzled / Thinkful M10 CP4.txt
Created November 4, 2019 23:57
Thinkful M10 CP4
Youtube API
1 required parameter:
part
data type: string
example: "id,contentDetails"
2 optional parameters:
maxResults
data type: unsigned integer
example: 5
order
@jgrizzled
jgrizzled / Thinkful M10 CP2.txt
Created November 4, 2019 21:03
Thinkful M10 CP2
Analogy:
A client is like a restaurant customer making requests to a waiter (server). The customer (client) asks for specific things and the waiter (server) responds with a set of those things.
The restaurant itself is also like a server, storing food (files) that a customer wants, and can be looked up in a map (like looking up IP address from DNS).
Drawing:
https://drive.google.com/file/d/1WMld9c7CxnOJUsFgQps_gve0HLpXuhzv/view?usp=sharing
@jgrizzled
jgrizzled / thinkful_portfolio_mockup.txt
Created October 29, 2019 23:53
Thinkful Portfolio Mockup
Mockup (using Sketch app)
Mobile:
https://drive.google.com/file/d/1JKxdLWplDcmMaFSh7mGxn3IkHuXJon5P/view?usp=sharing
Desktop:
https://drive.google.com/file/d/1EEstVUuOFhN6CU2neBjIrlGTO5pFO14d/view?usp=sharing
@jgrizzled
jgrizzled / thinkful_portfolio_text.txt
Last active October 30, 2019 02:22
Thinkful Portfolio Text
Headline:
Hi, I'm Justin
Full stack web developer and blockchain enthusiast in Phoenix, AZ
Projects:
- Blockchain Quiz App
This browser-based quiz app tests your knowledge on blockchain fundamentals. It utilizes HTML5, CSS3, and jQuery to generate a responsive single-page web app for both mobile and desktop.
Github Repo: https://github.com/jgrizzled/blockchain-quiz-app
Live demo: https://jgrizzled.github.io/blockchain-quiz-app/