Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View debragail's full-sized avatar
💀
ded

Ophelia debragail

💀
ded
View GitHub Profile
### Keybase proof
I hereby claim:
* I am debragail on github.
* I am 27club (https://keybase.io/27club) on keybase.
* I have a public key ASAfnM18DsYQhgUZb6cGZSZ8AQgRbTUS8UEONl1251VbLwo
To claim this, I am signing this object:
@debragail
debragail / Blockchain.jl
Created September 4, 2018 02:59 — forked from TestSubjector/Blockchain.jl
A very basic implementation of a blockchain in Julia.
using SHA
"""
An individual block structure
"""
struct Block
index::Int
timestamp::DateTime
data::String
previous_hash::String
##
# Creates an alias called "git hist" that outputs a nicely formatted git log.
# Usage is just like "git log"
# Examples:
# git hist
# git hist -5
# git hist <branch_name>
# git hist <tag_name> -10
##
git config --global alias.hist "log --pretty=format:'%C(yellow)[%ad]%C(reset) %C(green)[%h]%C(reset) | %C(red)%s %C(bold red){{%an}}%C(reset) %C(blue)%d%C(reset)' --graph --date=short"
@debragail
debragail / 0_reuse_code.js
Created October 14, 2015 23:30
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console