Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am uwinkel on github.
  • I am markussait (https://keybase.io/markussait) on keybase.
  • I have a public key ASApvAjELJMJwFtBngRAYuo2cjoRyunG65Nc4A5bxX42Gwo

To claim this, I am signing this object:

{"nodes":[{"id":"Bitcoin ","group":1},{"id":"Ethereum ","group":1},{"id":"StablyUSD ","group":1},{"id":"EOS ","group":1},{"id":"Litecoin ","group":1},{"id":"Bitcoin Cash ","group":1},{"id":"Binance Coin ","group":1},{"id":"Tether ","group":1},{"id":"Stellar ","group":1},{"id":"TRON ","group":1},{"id":"Bitcoin SV ","group":2},{"id":"Cardano ","group":2},{"id":"Monero ","group":3},{"id":"IOTA ","group":2},{"id":"Dash ","group":2},{"id":"Maker ","group":2},{"id":"NEO ","group":3},{"id":"Ethereum Classic ","group":3},{"id":"NEM ","group":3},{"id":"Ontology ","group":3},{"id":"Zcash ","group":3},{"id":"Waves ","group":3},{"id":"Tezos ","group":3},{"id":"VeChain ","group":3},{"id":"ABBC Coin ","group":4},{"id":"USD Coin ","group":4},{"id":"Dogecoin ","group":5},{"id":"Basic Attenti... ","group":4},{"id":"Bitcoin Gold ","group":0},{"id":"TrueUSD ","group":2},{"id":"Qtum ","group":3},{"id":"OmiseGO ","group":2},{"id":"Chainlink ","group":2},{"id":"Decred ","group":2},{"id":"ICON ","group":2},{"id":"Lisk ","group":2},
@markusait
markusait / Canciones_por_pablo
Created April 21, 2019 17:01
Cancioes por pablo
{
"Viejo": {
"Doncella": "https://www.convyoutube.com/watch?v=-KTqiy_ClNE",
"Bonita": "https://www.convyoutube.com/watch?v=eAqeed4INns",
"Ojitos chiquititos": "https://www.convyoutube.com/watch?v=lY7G2FSSmnQ",
"Burn it up": "https://www.convyoutube.com/watch?v=0Q1VU5fCno0",
"Amor de Pobre": "https://www.convyoutube.com/watch?v=dLV05Er73cc",
"Chulo sin H": "https://www.convyoutube.com/watch?v=HSB4cLIr8aw",
"Down": "https://www.convyoutube.com/watch?v=oUbpGmR1-QM",
"Asesina con aldo..": "https://www.convyoutube.com/watch?v=QqId7le0kzg",
{
"type":"auth/StdTx",
"value":{
"msgs":[
{
"type":"tokens/FreezeMsg",
"value":{
"from":"tbnb1kzhvu454j2edyalutzpmq4z3m09dwrexym2zkn",
"symbol":"BNB",
"amount":"2"
{
"user_id" : "5",
"name" : "michael"
}
@markusait
markusait / usds.svg
Created July 16, 2019 00:49
USDS Token SVG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@markusait
markusait / addLiquidity.js
Created October 16, 2019 20:21
Uniswap adding liquidity
let Web3 = require("web3");
const Tx = require('ethereumjs-tx')
var abi = '[{"name": "TokenPurchase", "inputs": [{"type": "address", "name": "buyer", "indexed": true}, {"type": "uint256", "name": "eth_sold", "indexed": true}, {"type": "uint256", "name": "tokens_bought", "indexed": true}], "anonymous": false, "type": "event"}, {"name": "EthPurchase", "inputs": [{"type": "address", "name": "buyer", "indexed": true}, {"type": "uint256", "name": "tokens_sold", "indexed": true}, {"type": "uint256", "name": "eth_bought", "indexed": true}], "anonymous": false, "type": "event"}, {"name": "AddLiquidity", "inputs": [{"type": "address", "name": "provider", "indexed": true}, {"type": "uint256", "name": "eth_amount", "indexed": true}, {"type": "uint256", "name": "token_amount", "indexed": true}], "anonymous": false, "type": "event"}, {"name": "RemoveLiquidity", "inputs": [{"type": "address", "name": "provider", "indexed": true}, {"type": "uint256", "name": "eth_amount", "indexed": true}, {"type": "uint256", "name": "tok
// https://www.youtube.com/watch?v=wyu6VRmtCmE&t=916s
const InsensitiveDistanceCompare = (str1, str2) => {
let index1 = 0
let index2 = 0
let different = 0
while(index1 < str1.length && index2 < str2.length) {
char1 = str1[index1]
char2 = str2[index2]
if(char1.toLowerCase() === char2.toLowerCase()) {
index1++
/*
* Complete the 'getEventsOrder' function below.
*
* The function is expected to return a STRING_ARRAY.
* The function accepts following parameters:
* 1. STRING team1
* 2. STRING team2
* 3. STRING_ARRAY events1
* 4. STRING_ARRAY events2
*/
@markusait
markusait / errorHandling.ts
Created May 20, 2020 03:05
Approach to do error handling in typescript
// Usually one wowuld import these declerations like such
// import { ok, err, Result } from './util'
export declare type Result<T, E>
= Ok<T, E> // contains a success value of type T
| Err<T, E> // contains a failure value of type E
// utility functions to build Ok and Err instances
export declare const ok: <T, E>(value: T) => Ok<T, E>
export declare const err: <T, E>(err: E) => Err<T, E>
export declare class Ok<T, E> {