Skip to content

Instantly share code, notes, and snippets.

ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDZGqVDbgFDS/NRsKtcyMhnngT9j5u+wJY7AautgcWuxwFmm7QqGVzrWDKLhdYk1VmIrHopXb2rloADlGbKgzIF8SWYCUJ7Wc1cRf2aMEwnKBcnaQ5ysztWwLnfJ+3DFdNrwZAiuI98BmARshXG5Ftmt3oGhbPgvOE3n9GcVKcxX8eTv1FTZgdQPRL74DHX1BZoiO+86N20FlU/2PM3G0QMBCzZ6+jTMr/LQ0DqmZhfFONplA3ct1eZhsWCqDcA/ouwos1mn7IUYMIgkrMbY8n8YyL1LkTr1rYHDu/tnCMVI13wI7DoYLyzehyu+fi5bLZ5yulNjoP67PhXATGwnkT7 jackmallers@Jacks-MacBook-Pro.local

Add to section element (card container)

background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(http://www.zap.jackmallers.com/assets/zap_logo-958aa8e….jpg);
width: 200px;
height: 300px;
border-radius: 40px;
position: relative;
background-repeat: no-repeat;
background-position: center center;
@JimmyMow
JimmyMow / Toe.md
Last active December 10, 2018 19:40

Pulling down a PR

You'll usually wanna type git branch to see what branch you're currently on. The master branch is the main branch. All other branches besides master are proposed changes.

Navigate to the Zap Desktop Github org and view the PR you'd like to test. When viewing the PR in the browser on Github you'll notice a branch name and a PR number.

You'll now head back to terminal and execute the following command:

git fetch origin pull/pull_request_number/head:pull_request_branch

Keybase proof

I hereby claim:

  • I am JimmyMow on github.
  • I am jimmymow (https://keybase.io/jimmymow) on keybase.
  • I have a public key whose fingerprint is 4245 6398 6C76 51F3 7610 8243 910C 2597 8638 04F2

To claim this, I am signing this object:

@JimmyMow
JimmyMow / index.css
Created August 29, 2016 19:17
Bloc CSS tutor assesment
body {
margin: 0;
}
.clearfix:after {
content: "";
display: table;
clear: both;
}

Javascript

Hey Student,

This is a tricky one! What I would first do is use console.log() to make things more transparent and see what's really going on when your onclick event listener callback is fired.

When I console.log(btnNum) inside the onclick callback function I get 3 not matter what button I click, which isn't what we want. So I would start using console.log() to really dig in and see what's going on.

If you still feel stuck I provided an explanation of what is happening below:

from two1.wallet import Two1Wallet
with open('{}/.two1/wallet/default_wallet.json'.format(expanduser('~'))) as data_file:
wallet_data = json.load(data_file)
wallet = Two1Wallet.import_from_mnemonic(mnemonic=wallet_data['master_seed'])
history = wallet.transaction_history()
print(history)
from two1.wallet import Two1Wallet
from two1.bitcoin.crypto import HDPublicKey
with open('{}/.two1/wallet/default_wallet.json'.format(expanduser('~'))) as data_file:
wallet_data = json.load(data_file)
wallet = Two1Wallet.import_from_mnemonic(mnemonic=wallet_data['master_seed'])
pubkey = wallet.get_payout_public_key()
import pandas as pd
import json
import time
import urllib2
# Step1
addrs = pd.read_csv('addresses.csv', dtype = {'Zip': str})
addrs['Full Addr'] = addrs['Address'] + ', ' + addrs['City'] + ', ' + addrs['State']+ ', ' + addrs['Zip']
#Step2
@JimmyMow
JimmyMow / index.py
Created March 29, 2016 16:10
Given a ticker symbol return the name of the company. This uses Google's finance API
import urllib2
import re
url = 'http://www.google.com/finance/info?infotype=infoquoteall&q='
def get_name(ticker):
try:
response = urllib2.urlopen(url+ticker)
except:
print("Oops! Looks like we don't support that ticker.")