Skip to content

Instantly share code, notes, and snippets.

JimmyMow

Block or report user

Report or block JimmyMow

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View pubkey.txt
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDZGqVDbgFDS/NRsKtcyMhnngT9j5u+wJY7AautgcWuxwFmm7QqGVzrWDKLhdYk1VmIrHopXb2rloADlGbKgzIF8SWYCUJ7Wc1cRf2aMEwnKBcnaQ5ysztWwLnfJ+3DFdNrwZAiuI98BmARshXG5Ftmt3oGhbPgvOE3n9GcVKcxX8eTv1FTZgdQPRL74DHX1BZoiO+86N20FlU/2PM3G0QMBCzZ6+jTMr/LQ0DqmZhfFONplA3ct1eZhsWCqDcA/ouwos1mn7IUYMIgkrMbY8n8YyL1LkTr1rYHDu/tnCMVI13wI7DoYLyzehyu+fi5bLZ5yulNjoP67PhXATGwnkT7 jackmallers@Jacks-MacBook-Pro.local
View suggested_channel_card.md

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;
View Toe.md

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

View keybase.md

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 Aug 29, 2016
Bloc CSS tutor assesment
View index.css
body {
margin: 0;
}
.clearfix:after {
content: "";
display: table;
clear: both;
}
View bloc.markdown

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:

View index.py
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)
View index.py
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()
View addresses.py
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 Mar 29, 2016
Given a ticker symbol return the name of the company. This uses Google's finance API
View index.py
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.")
You can’t perform that action at this time.