Consider a list of strings you need to permanently assign a random color.
First you should turn the string into a hash.
var string = "string"
var hash = 0| #!/usr/bin/env bash | |
| declare -i last_called=0 | |
| declare -i throttle_by=2 | |
| @throttle() { | |
| local -i now=$(date +%s) | |
| if (($now - $last_called >= $throttle_by)) | |
| then | |
| "$@" |
| # Pass the env-vars to MYCOMMAND | |
| eval $(egrep -v '^#' .env | xargs) MYCOMMAND | |
| # … or ... | |
| # Export the vars in .env into your shell: | |
| export $(egrep -v '^#' .env | xargs) |
| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| # https://toster.ru/q/72866 | |
| # How to | |
| # wget http://gist.github.com/... | |
| # chmod +x ya.py | |
| # ./ya.py download_url path/to/directory | |
| import os, sys, json |
| pragma solidity >=0.8.0 <0.9.0; | |
| //SPDX-License-Identifier: MIT | |
| import "hardhat/console.sol"; | |
| import "@openzeppelin/contracts/utils/Counters.sol"; | |
| import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol"; | |
| import "@openzeppelin/contracts/utils/Strings.sol"; | |
| import "./Base64.sol"; | |
| import "@openzeppelin/contracts/access/Ownable.sol"; |