Skip to content

Instantly share code, notes, and snippets.

View pi0neerpat's full-sized avatar
🤠

Patrick Gallagher pi0neerpat

🤠
View GitHub Profile
@pi0neerpat
pi0neerpat / Chicken.sol
Created March 12, 2024 01:02
Chicken wars
// SPDX-License-Identifier: UNLICENSED
//
// //
// ww_ ___.///
// o__ `._.-''''' //
// |/ \ , / //
// \ ``,,,' _//
// `-. \--' .'`.
// \_/_/ `.,'
@pi0neerpat
pi0neerpat / docker-publish.yml
Created January 4, 2024 01:49
Example docker github action
# Adapted from https://github.com/users/jeliasson/packages/container/package/redwoodjs-app-api-main
name: 'Github Publish Docker'
on:
workflow_dispatch:
inputs:
image_tag_prefix:
description: 'Image Tag Prefix (dev or sandbox)'
required: true
default: 'dev'
env:
@pi0neerpat
pi0neerpat / redwood-getting-started page raw HTML
Created December 12, 2022 23:05
redwood-getting-started.html
<html lang="en"><head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/png" href="/favicon.png">
<script defer="" src="/static/js/runtime-app.bundle.js"></script><script defer="" src="/static/js/app.bundle.js"></script><style>
/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZVJvb3QiOiIifQ== */</style><title>Redwood App | Redwood App</title></head>
<body>
<div id="redwood-app"><main><section><style>
:root {
@pi0neerpat
pi0neerpat / test-jwks.json
Last active September 27, 2022 21:37
feather-demo-jwks
{
"keys": [
{
"kty": "RSA",
"n": "_RjTfVf6CLxbEmPcNvCe1q1npk7iQHAlqvDAreq7I-Wg8ITXOi_ij_dN-eKeJMQaLJ_E5UW8Dr6AEdG2VmjcmQ",
"e": "AQAB",
"alg": "RS256",
"kid": "75d809beae4c8e9212a83874b",
"use": "sig"
}
@pi0neerpat
pi0neerpat / ChiliFarm.sol
Created July 26, 2021 21:14
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.5.5+commit.47a71e8f.js&optimize=false&runs=200&gist=
pragma solidity ^0.5.0;
/**
* @dev Standard math utilities missing in the Solidity language.
*/
library Math {
/**
* @dev Returns the largest of two numbers.
*/
@pi0neerpat
pi0neerpat / ChiliFarm.sol
Created July 26, 2021 21:14
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.5.5+commit.47a71e8f.js&optimize=false&runs=200&gist=
pragma solidity ^0.5.0;
/**
* @dev Standard math utilities missing in the Solidity language.
*/
library Math {
/**
* @dev Returns the largest of two numbers.
*/
@pi0neerpat
pi0neerpat / ERC20.abi
Last active July 26, 2021 21:08
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.5.6+commit.b259423e.js&optimize=false&runs=200&gist=
[
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "owner",
"type": "address"
},
@pi0neerpat
pi0neerpat / ERC721.sol
Last active July 22, 2021 18:43
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.7.6+commit.7338295f.js&optimize=false&runs=200&gist=
//SPDX-License-Identifier: MIT
pragma solidity ^0.7.0;
import {ERC721} from "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v3.2.0-solc-0.7/contracts/token/ERC721/ERC721.sol";
contract TestNFT is ERC721 {
constructor () ERC721 ( "Test NFT", "TestNFT" ) {
_mint(msg.sender, 1);
}
}
@pi0neerpat
pi0neerpat / chromatic.yml
Last active July 8, 2021 19:14
Pi0neerpat's RedwoodJS Devops
name: Chromatic
on:
push:
jobs:
chromatic-deployment:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
@pi0neerpat
pi0neerpat / chromatic.yml
Created July 8, 2021 00:55
Chromatic + RedwoodJS Github Action
name: Chromatic
on:
push:
jobs:
chromatic-deployment:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1