Skip to content

Instantly share code, notes, and snippets.

View Alexintosh's full-sized avatar
🧑‍🍳
Baking

Alessio Delmonti Alexintosh

🧑‍🍳
Baking
View GitHub Profile
@Alexintosh
Alexintosh / git-commit-log-stats.md
Created November 24, 2017 10:32 — forked from eyecatchup/git-commit-log-stats.md
Some commands to get git commit log statistics for a repository on the command line.

git commit stats

Commands to get commit statistics for a Git repository from the command line -
using git log, git shortlog and friends.




@Alexintosh
Alexintosh / itmap.sol
Created January 19, 2018 15:24 — forked from ethers/itmap.sol
Solidity iterable map
library itmap {
struct entry {
// Equal to the index of the key of this item in keys, plus 1.
uint keyIndex;
uint value;
}
struct itmap {
mapping(uint => entry) data;
uint[] keys;
@Alexintosh
Alexintosh / IDEX.sol
Created June 24, 2018 15:51 — forked from dominiek/IDEX.sol
IDEX Smart Contract
pragma solidity ^0.4.16;
contract Token {
bytes32 public standard;
bytes32 public name;
bytes32 public symbol;
uint256 public totalSupply;
uint8 public decimals;
bool public allowTransactions;
mapping (address => uint256) public balanceOf;
@Alexintosh
Alexintosh / js-crypto-libraries.md
Created September 23, 2018 16:19 — forked from jo/js-crypto-libraries.md
List of JavaScript Crypto libraries.

JavaScript Crypto Libraries

I start with a list and plan to create a comparison table.

WebCryptoAPI

http://www.w3.org/TR/WebCryptoAPI/

This specification describes a JavaScript API for performing basic cryptographic operations in web applications, such as hashing, signature generation and verification, and encryption and decryption. Additionally, it describes an API for applications to generate and/or manage the keying material necessary to perform these operations. Uses for this API range from user or service authentication, document or code signing, and the confidentiality and integrity of communications.

@Alexintosh
Alexintosh / InviteLink.sol
Created November 22, 2018 11:47 — forked from Dobrokhvalov/InviteLink.sol
InviteLink module for ERC-1077
@Alexintosh
Alexintosh / Github Webhook Tutorial.md
Created March 14, 2019 13:24 — forked from jagrosh/Github Webhook Tutorial.md
Simple Github -> Discord webhook

Step 1 - Make a Discord Webhook

  1. Find the Discord channel in which you would like to send commits and other updates

  2. In the settings for that channel, find the Webhooks option and create a new webhook. Note: Do NOT give this URL out to the public. Anyone or service can post messages to this channel, without even needing to be in the server. Keep it safe! WebhookDiscord

Step 2 - Set up the webhook on Github

  1. Navigate to your repository on Github, and open the Settings Settings
@Alexintosh
Alexintosh / submit-dapp.md
Created May 3, 2019 14:58 — forked from dappvolume/submit-dapp.md
Submit Dapps to these sites for huge exposure!

Submit A Dapp

Once you create a dapp its important the dapp gets exposure. Here is a list of 20 places you can submit your Dapp.

Dapp Websites

The following websites showcases dapps ( decentralized applications ).

Name URL Platform
@Alexintosh
Alexintosh / iceage.py
Created December 18, 2019 17:20 — forked from lrettig/iceage.py
Simulation script for ice age block times
# Date, blocknum, difficulty as of 2019-01-18
# Script by vbuterin, slightly modified by lrettig
import random
import datetime
import sys
def calc_bomb(i):
period = i // 100000
if (period > 0):
# Subtract 2, this is the original formula
@Alexintosh
Alexintosh / 1.js
Created December 22, 2019 13:32 — forked from mxriverlynn/1.js
Standard deviation, in JavaScript
var sum = values.reduce(function(sum, value){
return sum + value;
}, 0);
var avg = sum / data.length;
const fs = require("fs");
const CoinGecko = require("coingecko-api");
const { table } = require("table");
const chalk = require("chalk");
const cg = new CoinGecko();
const coins = [
{ "id": "ethereum", "symbol": "ETH" },
{ "id": "bitcoin", "symbol": "BTC" },