Skip to content

Instantly share code, notes, and snippets.

View Zircoz's full-sized avatar
💻
Hitting random keys!

Zircoz Zircoz

💻
Hitting random keys!
View GitHub Profile
# Converts a JSONL file generated with telegram-history-dump (1) to CSV
# Usage: python telegram-csv.py <path to json file> <path to output csv file>
# Example: python telegram-csv.py Bob.json Bob.csv
# 1: https://github.com/tvdstaaij/telegram-history-dump
from datetime import datetime
import unicodecsv as csv
import json, sys
def get_isodate(msg):
date = msg.get("date", None)
@daqo
daqo / blockchain.md
Last active October 6, 2021 20:27
Blockchain Essentials for Developers

Blockchain Course

These are the notes that I have taken on “IBM blockchain Essentials for Developers” course on Coursera IBM Blockchain Foundation for Developers | Coursera.

Jargon

Ledger: the system of record for a business

Transaction: an asset transfer onto or off the ledger

@Zircoz
Zircoz / clouds-using-css-3d-transforms.markdown
Created January 16, 2019 20:09
Clouds using CSS 3D Transforms

Clouds using CSS 3D Transforms

How to use CSS 3D Transforms to create sprite-based 3D-like clouds. Demo: http://www.clicktorelease.com/code/css3dclouds/

There are several div elements, distributed randomly with transform: translate3d() inside a world div that is rotated with transform: rotate3d() using JavaScript in the onmousemove handler.

Each cluster contains several div elements with a cloud texture that are distributed in 3d with transform: translate3d() rotateZ() scale().

Every frame each layer is updated to face the camera, by rotating the sprite in X and Y the inverse amount of the rotation of the world.