This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"compilerOptions": { | |
"outDir": "./dist", | |
"strict": false, | |
"target": "es5", | |
"esModuleInterop": true, | |
"emitDecoratorMetadata": true, | |
"experimentalDecorators": true, | |
"sourceMap": true | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
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. | |
''' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let lotion = require('lotion'); | |
let os = require('os'); | |
let fs = require('fs'); | |
let app = lotion({ | |
initialState: { | |
}, | |
logTendermint: false, | |
createEmptyBlocks: false, | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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))) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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))) |