Skip to content

Instantly share code, notes, and snippets.

{
"compilerOptions": {
"outDir": "./dist",
"strict": false,
"target": "es5",
"esModuleInterop": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"sourceMap": true
},
'''
USAGE:
Use python3
Place addresses to track, one per line, in addresses.txt
Place assetchains to track, one per line, in assets.txt
Adjust balance_threshold and send_amount as needed
If you need to specify an alternative komodo_cli location, either pass it as the first argument
when invoking the script, or change the komodo_cli variable.
'''
let lotion = require('lotion');
let os = require('os');
let fs = require('fs');
let app = lotion({
initialState: {
},
logTendermint: false,
createEmptyBlocks: false,
});
import unicodedata
with open("steam_crash.txt", 'rb') as myfile:
message = myfile.read()
print('Length of message in bytes: ' + str(len(message)))
message = message.decode('utf-8')
print('Number of characters in message: ' + str(len(message)))
@Jaxkr
Jaxkr / humanized_elapsed.py
Created May 8, 2016 04:46
Elapsed time to human readable sentence
import math
def humanize_date_difference(total_seconds):
total_seconds = round(total_seconds)
if (total_seconds > 3600):
hours = math.floor(total_seconds / 3600)
minutes = math.floor((total_seconds - (hours * 3600)) / 60)
seconds = math.floor((total_seconds - (hours * 3600) - (minutes * 60)))