Skip to content

Instantly share code, notes, and snippets.

View Ankita-Das's full-sized avatar
💛
Constructing my way

Ankita Das Ankita-Das

💛
Constructing my way
View GitHub Profile
@mohitkh7
mohitkh7 / blockchain.py
Last active January 21, 2022 05:33
Workshop on blockchain - Scipy 2021
"""
Exercises:
Try to change difficulty level in proof of work algorithm and see how long does it takes to compute nonce.
Write a method to validate the chain.
Reward the mining node.
"""
# blockchain.py
import hashlib
anonymous
anonymous / pca_animation.m
Created January 26, 2017 21:47
Matlab code to produce PCA animations
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Matlab code to produce PCA animations shown here:
% http://stats.stackexchange.com/questions/2691
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Static image
clear all
rng(42)
@ipbastola
ipbastola / clean-up-boot-partition-ubuntu.md
Last active August 16, 2024 13:39
Safest way to clean up boot partition - Ubuntu 14.04LTS-x64, Ubuntu 16.04LTS-x64

Safest way to clean up boot partition - Ubuntu 14.04LTS-x64, Ubuntu 16.04LTS-x64

Reference

Case I: if /boot is not 100% full and apt is working

1. Check the current kernel version

$ uname -r 
@deanrather
deanrather / Github Web Hosting.md
Last active November 5, 2024 15:38
Free Hosting on GitHub

Free Hosting on GitHub

This guide will take you from zero webserver knowledge, to having your own free site hosted on GitHub. The only non-free bit is registering a domain name, which can be as cheap as $5/year.

This guide uses CrazyDomains as the Registrar, FreeDNS as the DNS, and GitHub as the Webserver.


1) Domain Registration and Setup