git commit --allow-empty -m "trigger build" # Commit no new changes to trigger buildYou should never amend public commits (i.e. already pushed to a public reop).
| print("hello gist! This is my first time using this :)") |
| const { expect } = require("chai"); | |
| const { ethers } = require("hardhat"); | |
| describe.skip("Greeter", function () { | |
| it("Should return the new greeting once it's changed", async function () { | |
| const Greeter = await ethers.getContractFactory("Greeter"); | |
| const greeter = await Greeter.deploy("Hello, world!"); | |
| await greeter.deployed(); | |
| console.log("greeter deployed to:", greeter.address); |
| # ***** FILE SYSTEM ***** | |
| # Find paths of all files beginning with a regex in the current directory | |
| find . -regex '.*/learn.*' -maxdepth 1 | |
| # Move all files matching the regex to a folder ./learn | |
| # Warning: An error will appear but it's ok, all files except for ./learn itself are moved | |
| # mv: rename ./learn to learn/learn: Invalid argument | |
| mv $(find . -regex '.*/learn.*' -maxdepth 1) learn |
| { | |
| "env": { | |
| "browser": true, | |
| "node": true, | |
| "es6": true | |
| }, | |
| "plugins": ["react"], | |
| "ecmaFeatures": { |
launchd to work via plist at ~/Library/LaunchAgents/com.gilite-notes.notes.plist, but it didn't have enough permissions to access the Node files at /usr/local/bin/node.
launchd over cron since it allows the job to run right after the computer wakes from sleeping, if the job was supposed to run but the computer was in sleep mode.~/Library/LaunchDaemons/ so that the job can be executed even if I'm logged out, but the same error as above occurred.cron worked after a few tries, incl. setting the git config to replace https://github.com/ with [email protected]: since one of the errors specified fatal: could not read Username for 'https://github.com': No such file or directory. (see this)| from functools import cache | |
| """ | |
| You are throwing a dice for a fixed number of times (`throwCount`), of which | |
| you know the average of the total score. The total score is calculated by | |
| adding up all the dice scores from each throw. You only know the score of a | |
| few of the dice throws. | |
| Find all possible combinations of the remaining dice that fulfill | |
| the above information. |