Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
party 🥳

Jason Stallings octalmage

💭
party 🥳
View GitHub Profile
@octalmage
octalmage / virus.sol
Created Jul 2, 2021
Virus ERC20 Token
View virus.sol
/*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
View keplr.js gist
window.keplr.experimentalSuggestChain({
// Chain-id of the Cosmos SDK chain.
chainId: "columbus-5",
// The name of the chain to be displayed to the user.
chainName: "Terra",
// RPC endpoint of the chain.
rpc: "https://lcd.terra.dev",
// REST endpoint of the chain.
rest: "https://fcd.terra.dev",
// Staking coin information
@octalmage
octalmage / release.md
Last active Mar 12, 2020
Local v5.2.6 Beta
View release.md
@octalmage
octalmage / ico.js
Last active Feb 28, 2020
IOST ICO Example
View ico.js
const TOKEN = 'TIX';
const IOST_COST = '.1';
const TOKEN_DECIMALS = 8;
class ICO {
init() {
// Runs on deploy.
}
// Remove to disable updates.
@octalmage
octalmage / wax.js
Created Feb 7, 2020
Checking the inline calls of a transaction.
View wax.js
const tx = await theWallet.transact({
actions: [{
account: 'blockarcade1',
name: 'result',
authorization: [{
actor: theAccount,
permission: 'active',
}],
data: {
customer_string: userID,
@octalmage
octalmage / bid.yaml
Last active Jun 22, 2019
Sonm Web Server bid.yaml
View bid.yaml
duration: 0
price: 0.01 USD/h price: 1 USD/h
identity: anonymous
tag: wp
resources:
network:
overlay: true
outbound: true
View index.js
import React from 'react'
// import { Link } from 'gatsby'
import Layout from '../components/layout'
import PostsList from '../components/posts_list'
import PostsFilter from '../components/posts_filter'
const IndexPage = (data) => {
console.log('Index.js', data.length)
return (
<Layout>
View test.json
{
"tests": "96",
"failures": "5",
"errors": "0",
"testsuites": {
"Tests_Meta": {
"name": "Tests_Meta",
"tests": "18",
"failures": "1",
"errors": "0",
View lircd.conf
begin remote
name Harmony_655
bits 13
flags RC5|CONST_LENGTH
eps 30
aeps 100
one 935 836
zero 935 836
@octalmage
octalmage / bulkUpdate.js
Created May 21, 2017 — forked from davideast/bulkUpdate.js
Bulk update with .push()
View bulkUpdate.js
/**
* Send a bulk update to Firebase from an array or an object literal.
*
* When .push() is called on a Firebase reference without a parameter passed no
* trip to the server is made.
*
* ex:
* var childRef = ref.push();
*
* A reference is returned which has a push-id that can be returned by calling .name().