-
Install ethereum client (geth).
-
Mac
brew tap ethereum/ethereum brew install ethereum
-
Linux (Debian)
-
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 | |
import subprocess | |
import urllib.error | |
import urllib.parse | |
import urllib.request | |
import base64 | |
def download_html_page(url: str, uname: str, pwd: str): | |
user_agent = 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_4; en-US) AppleWebKit/534.3 (KHTML, like Gecko) ' \ |
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 | |
import subprocess | |
import urllib.error | |
import urllib.parse | |
import urllib.request | |
import base64 | |
def download_html_page(url: str, uname: str, pwd: str): | |
user_agent = 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_4; en-US) AppleWebKit/534.3 (KHTML, like Gecko) ' \ |
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
// Estimated Gas: 1,368,083 | |
pragma solidity ^0.4.24; | |
library StringOperation {function concat(string string1, string string2, string sep) internal pure returns (string){ | |
bytes memory string1Bytes = bytes(string1); | |
bytes memory string2Bytes = bytes(string2); | |
bytes memory sepBytes = bytes(sep); | |
string memory concatString = new string(string1Bytes.length + sepBytes.length + string2Bytes.length); |
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 stagger | |
from stagger.id3 import * | |
import os | |
dir_name = "/path/to/dir/with/songs" | |
file_list = os.listdir(dir_name) | |
# Filename in format = "Ariana Grande - No Tears Left To Cry.mp3" | |
for filename in file_list: | |
full_filename = dir_name + "/" + filename | |
print(full_filename) |
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 time | |
import datetime as dt | |
import sqlite3 | |
import json | |
import urllib.request, urllib.error, urllib.parse | |
FB_PAGE_ACCESS_API = "YOUR FACEBOOK PAGE ACCESS API KEY HERE" | |
class Database: | |
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
pragma solidity 0.4.11; | |
contract owned { | |
address public owner; | |
function owned() { | |
owner = msg.sender; | |
} | |
modifier onlyOwner { |
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
#!/usr/bin/python3 | |
import urllib.request, urllib.error, urllib.parse | |
from pdb import set_trace | |
from bs4 import BeautifulSoup | |
import os,sys | |
file_name = "" | |
def reporthook(blocknum, blocksize, totalsize): |
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
I use the first | |
—– BEGIN LICENSE —– | |
Michael Barnes | |
Single User License | |
EA7E-821385 | |
8A353C41 872A0D5C DF9B2950 AFF6F667 | |
C458EA6D 8EA3C286 98D1D650 131A97AB | |
AA919AEC EF20E143 B361B1E7 4C8B7F04 |
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/sh | |
# installation of Oracle Java JDK. | |
sudo apt-get -y update | |
sudo apt-get -y install python-software-properties | |
sudo add-apt-repository -y ppa:webupd8team/java | |
sudo apt-get -y update | |
sudo apt-get -y install oracle-java7-installer | |
# Installation of commonly used python scipy tools |