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
// This is universal, works with Infura -- set provider accordingly | |
const ethers = require('ethers') | |
//const provider = ethers.getDefaultProvider('rinkeby') | |
const provider = new ethers.providers.JsonRpcProvider(process.env.WEB3_URL) | |
function hex_to_ascii(str1) { | |
var hex = str1.toString(); | |
var str = ''; | |
for (var n = 0; n < hex.length; n += 2) { |
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
#!/bin/bash | |
function complete_remote_paths() { | |
word_to_complete=${COMP_WORDS[COMP_CWORD]} | |
command_line=${COMP_LINE} | |
# If the command line contains ^/ we should start completing | |
if [[ "$command_line" == *^/* ]]; then | |
# Create a base path for svn to use which only contains complete folder | |
# names. Examples: | |
# ^/bra => ^/ |
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
cleaned_data = ( | |
[self.process_cleaned_data(form_data) for form_data in cleaned_data] if isinstanced(cleaned_data, list) | |
else self.process_cleaned_data(cleaned_data) | |
) |