Skip to content

Instantly share code, notes, and snippets.

View justyn-clark's full-sized avatar
🌬️

Justyn Clark justyn-clark

🌬️
View GitHub Profile
@justyn-clark
justyn-clark / NFT.sol
Created March 6, 2022 22:44 — forked from dabit3/NFT.sol
Basic NFT Smart Contract
// contracts/NFT.sol
// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity ^0.8.3;
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "hardhat/console.sol";
@justyn-clark
justyn-clark / ecosystem.json
Created January 18, 2022 07:01 — forked from wirwolf/ecosystem.json
pm2 ecosystem.json config example
{
"apps": [
{
/* General */
"name": "my-api", /* (string) application name (default to script filename without extension) */
"script": "index.js", /* (string) script path relative to pm2 start */
"cwd": "/var/www/", /* (string) the directory from which your app will be launched */
"args": "-a 13 -b 12", /* (string) string containing all arguments passed via CLI to script */
"interpreter": "/usr/bin/python", /* (string) interpreter absolute path (default to node) */
"interpreter_args": "--harmony", /* (string) option to pass to the interpreter */
effect explanation
put dispatch an action to the redux store
select retrieve a part of the existing application state using selectors
call can call other sagas,Promises etc
take wait for an action to be dispatched
fork trigger a sub-process and move on without waiting for it to complete
cancel cancel the sub-process that has been forked
cancelled check if a current process has been cancelled
delay idles for the given period before moving to next statement, returns a Promise
@justyn-clark
justyn-clark / gruntfile.js
Created January 13, 2016 22:39
Browserify + React compilation on file save
var fs = require('fs');
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
env: {
build: {
NODE_ENV: 'production'
}
@justyn-clark
justyn-clark / .gitignore
Last active February 11, 2024 20:46 — forked from redoPop/.gitignore
# This is a template .gitignore file for git-managed WordPress projects.
#
# Fact: you don't want WordPress core files, or your server-specific
# configuration files etc., in your project's repository. You just don't.
#
# Solution: stick this file up your repository root (which it assumes is
# also the WordPress root directory) and add exceptions for any plugins,
# themes, and other directories that should be under version control.
#
# See the comments below for more info on how to add exceptions for your