Commands to get commit statistics for a Git repository from the command line -
using git log
, git shortlog
and friends.
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; |
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; |
I start with a list and plan to create a comparison table.
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.
//import "openzeppelin-solidity/contracts/ECRecovery.sol"; | |
contract InviteLink { | |
using ECRecovery for bytes32; | |
IERC1077 owner; | |
// Mappings of transit pub key => true if link is used. | |
mapping (bytes => bool) usedLinks; | |
constructor(IERC1077 _owner) { |
-
Find the Discord channel in which you would like to send commits and other updates
-
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!
# 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 |
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" }, |