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 / config.xml
Created July 26, 2017 09:41
Parse cordova config.xml from shell easily using xmllint --xpath
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<widget id="com.app.my" version="2.0.0" xmlns="http://www.w3.org/ns/widgets">
<name>App BETA</name>
<description>app</description>
</widget>
@Alexintosh
Alexintosh / Batman.js
Created September 6, 2017 11:17
JSFun
console.log(`${Array(16).join("wat"-1)} Batman!`);
0x627306090abaB3A6e1400e9345bC60c78a8BEf57
@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.




module.exports = function witson(_) {
var service = {
encode: encode,
decode: newDecode
};
var delimiters = {
objStart: ['@', '¿', '¡'],
objEnd: '#',
arrStart: '[',
@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;
const l = () => {
// tslint:disable-next-line:one-variable-per-declaration
const stack = new Error().stack,
caller = stack.split('\n')[2].trim();
let args = Array.prototype.slice.call(arguments);
console.log.apply(this, [caller, args]);
};
const i = () => {
// tslint:disable-next-line:one-variable-per-declaration
@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;
Deck: https://docs.google.com/presentation/d/1bhy0EEleZ6jqA2tES9nVvVnN7MtGm3jpYZPvygu8n7g/edit?usp=sharing
Lightpaper: https://docs.google.com/document/d/1brxn0YPAvU3jqpQ2aXgK66IW0iLo7Ex9gZU4LDfUNWE/edit?usp=sharing