Skip to content

Instantly share code, notes, and snippets.

View octalmage's full-sized avatar

Jason Stallings octalmage

View GitHub Profile
@octalmage
octalmage / bulkUpdate.js
Created May 21, 2017 15:47 — forked from davideast/bulkUpdate.js
Bulk update with .push()
/**
* 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().
begin remote
name Harmony_655
bits 13
flags RC5|CONST_LENGTH
eps 30
aeps 100
one 935 836
zero 935 836
{
"tests": "96",
"failures": "5",
"errors": "0",
"testsuites": {
"Tests_Meta": {
"name": "Tests_Meta",
"tests": "18",
"failures": "1",
"errors": "0",
@octalmage
octalmage / index.js
Last active September 6, 2018 19:15 — forked from salami-art/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>
@octalmage
octalmage / bid.yaml
Last active June 22, 2019 21:46
Sonm Web Server bid.yaml
duration: 0
price: 0.01 USD/h price: 1 USD/h
identity: anonymous
tag: wp
resources:
network:
overlay: true
outbound: true
@octalmage
octalmage / wax.js
Created February 7, 2020 19:54
Checking the inline calls of a transaction.
const tx = await theWallet.transact({
actions: [{
account: 'blockarcade1',
name: 'result',
authorization: [{
actor: theAccount,
permission: 'active',
}],
data: {
customer_string: userID,
@octalmage
octalmage / ico.js
Last active February 28, 2020 01:41
IOST ICO Example
const TOKEN = 'TIX';
const IOST_COST = '.1';
const TOKEN_DECIMALS = 8;
class ICO {
init() {
// Runs on deploy.
}
// Remove to disable updates.
@octalmage
octalmage / release.md
Last active March 12, 2020 19:52
Local v5.2.6 Beta
@octalmage
octalmage / keplr.js gist
Last active September 19, 2022 16:49 — forked from clevinson/keplr.js gist
DO NOT RUN THIS
{
"chainId": "phoenix-1",
"chainName": "Terra 2.0",
"rpc": "https://terra-rpc.polkachu.com/",
"rest": "https://phoenix-lcd.terra.dev/",
"stakeCurrency": {
"coinDenom": "LUNA",
"coinMinimalDenom": "uluna",
"coinDecimals": 6,
"coinGeckoId": "terra-luna"
@octalmage
octalmage / virus.sol
Created July 2, 2021 20:25
Virus ERC20 Token
/*
* 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.