Skip to content

Instantly share code, notes, and snippets.

View rascode's full-sized avatar
🎯
Focusing

rascode rascode

🎯
Focusing
View GitHub Profile
@rascode
rascode / CompleteMinter.sol
Created April 3, 2023 05:04 — forked from mwmwmw/CompleteMinter.sol
A self-contained NFT minting contract
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
// contracts/GameItems.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
contract GameItems is ERC1155, Ownable {
docker run \
-d \
--name baserow \
-e BASEROW_PUBLIC_URL=http://base.local \
-v /path/to/persisted/data:/baserow/data \
-p 80:80 \
-p 443:443 \
--restart unless-stopped \
baserow/baserow:1.12.1
@rascode
rascode / .eleventy.js
Last active October 6, 2022 00:09
11ty Configuration Templates
const pluginWebc = require("@11ty/eleventy-plugin-webc");
module.exports = function(eleventyConfig) {
//passthroughs
eleventyConfig.addPassthroughCopy("manifest.json"); //site manifest file
eleventyConfig.addPassthroughCopy(".prettierrc"); //prettier config file
eleventyConfig.addPassthroughCopy({"src/assets/" : "/assets/"}); // assets directory
eleventyConfig.addPassthroughCopy({"src/styles" : "/styles/"); //css directory
@rascode
rascode / .gitignore
Last active November 17, 2021 20:02
.gitignore template for node based projects
# environment variables
*.env*
# build output
dist
.next
target
# dependencies
node_modules
@rascode
rascode / .zshrc
Last active February 21, 2022 17:47
Rascode :: Oh-My-Posh :: Configuration File
eval "$(oh-my-posh --init --shell zsh --config /path/to/your.omp.json)"
@rascode
rascode / role.js
Created December 11, 2020 11:44
Sanity.io - Reference Code
export default {
name: 'role',
type: 'document',
title: 'Role',
fieldsets: [
{name: 'duration', title: 'Duration', options:{columns: 2}}
],
fields: [
{title: 'Title', name: 'title', type: 'string'},
{title: 'Role', name: 'role', type: 'string'},
Error! An unexpected error occurred in alias: Error: ACME responded with an error for challenge http-01 and domain justinrascoe.com (400)
at responseError (/snapshot/repo/dist/now.js:2470:15)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
@rascode
rascode / settings.json
Created December 12, 2017 03:08
VS Code Workspace Settings Overrides
{
"files.exclude": {
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/CVS": true,
"**/.DS_Store": true,
"node_modules": true,
".vscode": true
}
@rascode
rascode / Proposed API Response Format.json
Last active October 24, 2017 18:41
Onit AP Web API: Proposed Changes to Response
{
"success": true,
"data": [
{
"p_vendor_name": "Gold USD Vendor",
"p_vendor_office_name": "Gold USD Vendor",
"p_vendor_office_id": "987654",
"p_invoice_amount": {
"cents": 225000,
"currency_iso": "USD"