- Distributed ledger system; for tracking the transfer of tokens (currency, data of any type).
- A cross between economics, cryptography, and the internet.
- Side note- if you ever wanted a financial incentive to get involved in cryptography, this is it.
- A blockchain is literally a chain of blocks, where each block contains a list of transactions that everyone agrees have occurred.
- Each block builds upon all the ones before it.
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
private void delegate MyDelegate(); // This is the delegate that will be invoked from the main thread if needed |
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
# File name | |
DIR := bin | |
PREFIX := race-the-web | |
TAG := $(shell git describe --always --dirty --tags) | |
# Build command | |
CMD_BUILD := go build -o $(DIR)/$(PREFIX)_$(TAG)_ | |
# Environment variables for build | |
ENV_OSX64 := GOOS=darwin GOARCH=amd64 |
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 ( | |
"bytes" | |
"io/ioutil" | |
"net/http" | |
) | |
// Function readResponseBody is a helper function to read the content from a response's body, | |
// and refill the body with another io.ReadCloser, so that it can be read again. | |
func readResponseBody(resp *http.Response) (content []byte, err error) { | |
// Get the content |
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 SimpleHTTPServer | |
import SocketServer | |
# Redirect to Google.com | |
class Redirect(SimpleHTTPServer.SimpleHTTPRequestHandler): | |
def do_GET(self): | |
print self.path | |
self.send_response(301) | |
new_path = '%s%s'%('https://google.com', self.path) | |
self.send_header('Location', new_path) |
I hereby claim:
- I am thehackerdev on github.
- I am thehackerdev (https://keybase.io/thehackerdev) on keybase.
- I have a public key ASDu1dsuBEHadlU4aEIOYyb5mI6ThFtCilJbxtaKLoEbjgo
To claim this, I am signing this object: