Skip to content

Instantly share code, notes, and snippets.

View SassOnTheRoad's full-sized avatar

Sasson Mansoori SassOnTheRoad

View GitHub Profile
@SassOnTheRoad
SassOnTheRoad / snakecoin-server-full-code.py
Created February 24, 2018 19:29 — forked from aunyks/snakecoin-server-full-code.py
The code in this gist isn't as succinct as I'd like it to be. Please bare with me and ask plenty of questions that you may have about it.
from flask import Flask
from flask import request
import json
import requests
import hashlib as hasher
import datetime as date
node = Flask(__name__)
# Define what a Snakecoin block is
class Block:
import hashlib as hasher
import datetime as date
# Define what a Snakecoin block is
class Block:
def __init__(self, index, timestamp, data, previous_hash):
self.index = index
self.timestamp = timestamp
self.data = data
self.previous_hash = previous_hash
@SassOnTheRoad
SassOnTheRoad / London-Borough-Profiles.csv
Last active April 20, 2021 03:30
Population Density of London Boroughs
area pop hec
Barking and Dagenham 201000 3610.8
Barnet 384600 8674.8
Bexley 236200 6058.1
Brent 322800 4323.3
Bromley 318300 15013.5
Camden 228500 2178.9
Croydon 377200 8650.4
Ealing 346600 5554.4
Enfield 320600 8083.2
@SassOnTheRoad
SassOnTheRoad / The_glasto.csv
Last active February 10, 2022 12:00
Playlist
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
A CRUSHING GLOW DJS
A MAN TO PET
A VOYAGE AROUND MY BEDROOM
AARON DOUGLAS
ABANDOMAN
ABI BAKER
ABLE MABLE
ABOVE AND BEYOND
ACID LOUNGE DJ'S
ACOLLECTIVE
@SassOnTheRoad
SassOnTheRoad / London-Borough-Profiles.csv
Last active August 29, 2015 14:17
DVD32015: Module 2 Exercise
area pop hec
City of London 8000 290.4
Barking and Dagenham 201000 3610.8
Barnet 384600 8674.8
Bexley 236200 6058.1
Brent 322800 4323.3
Bromley 318300 15013.5
Camden 228500 2178.9
Croydon 377200 8650.4
Ealing 346600 5554.4
@SassOnTheRoad
SassOnTheRoad / index.html
Created March 23, 2015 17:14
Data Visualization and Infographics with D3, Module 2, Exercise 1
<svg width="50" height="50">
<circle cx="25" cy="25" r="22" fill="blue" stroke="gray" stroke-width="2"/>
</svg>
@SassOnTheRoad
SassOnTheRoad / Citation.md
Last active August 29, 2015 14:17
London Borough Profiles Small
@SassOnTheRoad
SassOnTheRoad / Citation.md
Last active August 29, 2015 14:17
London Borough Profiles