- create account https://metamask.io/
- Buy Etherium (coinbase.com, cex.io) will need your ID verified
- Transfer to metamask account (Etherium wallet address
- Connect wallet to pool a. If using phone, open the browser in MetaMask and head to https://yearn.finance/vaults b. If using computer, https://yearn.finance/vaults
- Select Etherium and deposit amount into pool to begin making money
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# vars | |
[ -z "$NUM_WORKERS" ] && NUM_WORKERS=3 | |
# init swarm (need for service command); if not created | |
docker node ls 2> /dev/null | grep "Leader" | |
if [ $? -ne 0 ]; then | |
docker swarm init > /dev/null 2>&1 | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Building(object): | |
"""Building | |
has many Elevators | |
has many Floors | |
""" | |
def __init__(self, floors, elevators): | |
super(Building, self).__init__() | |
self.total_floors = floors |
I hereby claim:
- I am javierchavez on github.
- I am javierc (https://keybase.io/javierc) on keybase.
- I have a public key whose fingerprint is 46AA 8AC6 CF9D A286 8D79 7B69 0B0E E903 16E2 2091
To claim this, I am signing this object:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def create | |
# when a create occurs somthing like this is sent to server with a POST request..... | |
{ | |
"utf8"=>"✓", | |
"authenticity_token"=>"some/crazy/token", | |
"transaction"=>{"name"=>"chik-fil-a", | |
"category_id"=>"1", | |
"amount"=>"1.1"}, | |
"commit"=>"Create Transaction" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% -------------------------------------------------------------- | |
% This is all preamble stuff that you don't have to worry about. | |
% Head down to where it says "Start here" | |
% -------------------------------------------------------------- | |
\documentclass[12pt]{article} | |
\usepackage[margin=1in]{geometry} | |
\usepackage{amsmath,amsthm,amssymb} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tranit api. | |
http://maps.googleapis.com/maps/api/directions/json?origin=35.080935,-106.623872&destination=35.079812,-106.604904&sensor=false&departure_time=1400254800&mode=transit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
# open file | |
json_file = open("data.json") | |
# load json from file | |
json_data = json.load(json_file) | |
# total marks | |
print len(json_data['placemarks']) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## This file is a general .ucf for Nexys3 rev B board | |
## To use it in a project: | |
## - remove or comment the lines corresponding to unused pins | |
## - rename the used signals according to the project | |
## Clock signal | |
#NET "clk" LOC = "V10" | IOSTANDARD = "LVCMOS33"; #Bank = 2, pin name = IO_L30N_GCLK0_USERCCLK, Sch name = GCLK | |
#Net "clk" TNM_NET = sys_clk_pin; | |
#TIMESPEC TS_sys_clk_pin = PERIOD sys_clk_pin 100000 kHz; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RRGGBB | |
R(1)R(2) | |
R(1)*16 + R(2) |
NewerOlder