Skip to content

Instantly share code, notes, and snippets.

View regexyl's full-sized avatar

Regina Liu regexyl

View GitHub Profile
@regexyl
regexyl / .eslintrc.js
Created February 18, 2022 09:07 — forked from nkbt/.eslintrc.js
Strict ESLint config for React, ES6 (based on Airbnb Code style)
{
"env": {
"browser": true,
"node": true,
"es6": true
},
"plugins": ["react"],
"ecmaFeatures": {
@regexyl
regexyl / commands.sh
Last active April 8, 2022 01:35
Linux/MacOS commands I use a lot
# ***** 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
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);
@regexyl
regexyl / hello_gist.py
Created June 2, 2021 02:12
Hello Gist
print("hello gist! This is my first time using this :)")