Skip to content

Instantly share code, notes, and snippets.

@goosecoid
goosecoid / rename-files.sh
Created April 29, 2022 07:33
script rename files
#!/bin/bash
# Small script that renames all files according to smart contact name (kvstore or smallbank), txCount & tps
SC="smallbank"
TXCOUNT=2500
TPS=100
NETWORK_URL="wss://fr3.ebsi-orange.eu/node0/ws"
unameOut="$(uname -s)"
case "${unameOut}" in
@goosecoid
goosecoid / cleancalcObject.js
Created September 18, 2017 12:13
object for cleancalc adrien
ar calc = {
lastResult: 0000,
operate: function(operation, arg1, arg2) {
if (arg2) {
return (this.lastResult = operation(arg1, arg2));
} else {
return (this.lastResult = operation(arg1, this.lastResult));
}
},