Install Hardhat
npm install --save-dev hardhat
Initiate a new Hardhat project (in empty directory)
npx hardhat
| import requests | |
| import time | |
| # change the address here to be your desired NFT | |
| url = "https://api.opensea.io/asset/0xc17030798a6d6e1a76382cf8f439182eb0342d93/" | |
| update_flag = "/?force_update=true" | |
| ids = [ i for i in range(0, 180)] | |
| for i in ids: |
| pragma solidity ^0.4.16; | |
| contract Token { | |
| bytes32 public standard; | |
| bytes32 public name; | |
| bytes32 public symbol; | |
| uint256 public totalSupply; | |
| uint8 public decimals; | |
| bool public allowTransactions; | |
| mapping (address => uint256) public balanceOf; |
| #!/usr/bin/env python | |
| import argparse | |
| import redis | |
| def connect_redis(conn_dict): | |
| conn = redis.StrictRedis(host=conn_dict['host'], | |
| port=conn_dict['port'], | |
| db=conn_dict['db']) | |
| return conn |
| /* Based on | |
| * - EGM Mathematical Finance class by Enrique Garcia M. <[email protected]> | |
| * - A Guide to the PMT, FV, IPMT and PPMT Functions by Kevin (aka MWVisa1) | |
| */ | |
| var ExcelFormulas = { | |
| PVIF: function(rate, nper) { | |
| return Math.pow(1 + rate, nper); | |
| }, |
This gist is based on the information available at golang/dep, only slightly more terse and annotated with a few notes and links primarily for my own personal benefit. It's public in case this information is helpful to anyone else as well.
I initially advocated Glide for my team and then, more recently, vndr. I've also taken the approach of exerting direct control over what goes into vendor/ in my Dockerfiles, and also work from
isolated GOPATH environments on my system per project to ensure that dependencies are explicitly found under vendor/.
At the end of the day, vendoring (and committing vendor/) is about being in control of your dependencies and being able to achieve reproducible builds. While you can achieve this manually, things that are nice to have in a vendoring tool include:
| # Welcome to Serverless! | |
| # | |
| # Happy Coding! | |
| service: cross-region-sns-subscriber | |
| # Keep environment specific configurations in separate files | |
| custom: ${file(config/${env:STAGE}.json)} | |
| provider: |
When the "Indent Text" menu item is selected, any cells within a single column selection will be indented by 5 spaces.
You can increase or decrease the number of spaces the text is indented by changing the line below so that the "5" is changed to a larger or smaller number (depending on your preference):
newValues.push(['=CONCAT(REPT( CHAR( 160 ), 5),"' + values[i][0] + '")']);