-
Install ethereum client (geth).
-
Mac
brew tap ethereum/ethereum brew install ethereum
-
Linux (Debian)
-
This file contains 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 | |
# Some Color coding | |
red='\e[31m' | |
grn='\e[32m' | |
yel='\e[33m' | |
blu='\e[34m' | |
pnk='\e[35;40m' | |
org='\e[33;40m' | |
wht='\e[0m' |
This file contains 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 | |
url = input('Enter url from hellocomic.com: ') | |
# url = 'http://www.hellocomic.com/miles-morales-ultimate-spider-man/c1/p1' |
This file contains 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 |
This file contains 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 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 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 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 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 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); |
OlderNewer