Skip to content

Instantly share code, notes, and snippets.

@kf4x
kf4x / ex.rb
Last active November 2, 2015 08:05
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"
}

Keybase proof

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:

@kf4x
kf4x / building.py
Last active July 11, 2019 19:53
A little example of beginning to think about approaching a elevator in building problem.
class Building(object):
"""Building
has many Elevators
has many Floors
"""
def __init__(self, floors, elevators):
super(Building, self).__init__()
self.total_floors = floors
@kf4x
kf4x / README.md
Last active February 1, 2021 16:07
Getting started

Wallet

  1. create account https://metamask.io/
  2. Buy Etherium (coinbase.com, cex.io) will need your ID verified
  3. Transfer to metamask account (Etherium wallet address
  4. 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
  5. Select Etherium and deposit amount into pool to begin making money
@kf4x
kf4x / create_swarm_cluster.sh
Created July 27, 2023 21:10 — forked from alexei-led/create_swarm_cluster.sh
Deploy Docker Compose (v3) to Swarm (mode) Cluster
#!/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