Skip to content

Instantly share code, notes, and snippets.

View ronentk's full-sized avatar

Ronen Tamari ronentk

View GitHub Profile
[
{
"alpha2_code": "ao",
"continent": "Africa",
"gdp": 115332111283.362,
"latitude": -8.81155,
"life_expectancy": 51.464,
"longitude": 13.242,
"name": "Angola",
"population": 12104952,
@ronentk
ronentk / preview.html
Created February 8, 2018 14:09
preview
<html>
<head>
<meta name="description" content="Also want these pretty website previews?" />
<meta property="og:description" content="Also want these pretty website previews?" />
<script src="https://d3js.org/d3.v4.min.js"></script>
<script src="https://cdn.rawgit.com/nicgirault/circosJS/v2/dist/circos.js"></script>
<link href="https://fonts.googleapis.com/css?family=Roboto+Mono:400,700" rel="stylesheet">
<style>
body {
@ronentk
ronentk / toy_hashing_demo.py
Last active August 14, 2017 16:18
Bitcoin Hashing demo
# -*- coding: utf-8 -*-
"""
Toy Bitcoin Mining demo
"""
# Not using SHA-256 as the Skein cryptographic hash function hashes input to arbitrary
# size output, and for demonstration purposes 8 bits are enough.
from skein import skein512
import codecs
import struct
import random