Skip to content

Instantly share code, notes, and snippets.

@brossi
brossi / add-new-crypto-to-peatio.md
Last active February 10, 2023 00:08
Adding A New Cryptocurrency to Peatio

State: Draft
Based on the Peatio Stable branch


Coin Daemon

To the coin daemon's {coin}.conf file, include the -walletnotify command:

# Notify when receiving coins
@brossi
brossi / exportprocess.md
Last active August 29, 2015 14:11
Exchange Guide for Exporting Peercoin Addresses Paired With User's NuShares Addresses

DOCUMENT STATUS: DRAFT

This document is going to cover a number of scenarios that can assist exchanges with setting up their own procedures for distributing Nu dividend payments to their users. Consider it a very rough draft at this time. Please include comments if you have specific scenarios you would like to see discussed.

Here are the details for how dividends work:

  1. Dividends are not paid out on a set schedule, but are released when based on each dividend-paying custodian's proposal / performance / activity. For instance, if a trade goal is met, that may trigger a dividend payment.

  2. A dividend address is a peercoin addresses that uniquely maps to one NSR address. By transforming the NSR address into a PPC address, it allows the private key to be exported from the Nu wallet to a Peercoin wallet.

@brossi
brossi / summary.md
Created April 17, 2015 19:27
Liquidity Provider "Micro-Fee" Grant Proposals

Summary

Data-driven creation of “micro grant requests” with addresses + grant request amounts being created on a daily or every other day (+/-) frequency. “Just In Time” delivery system is reactive to the evolving needs of custodians.

Assumptions

  • Each Liquidity Provider (e.g. "NuLagoon", "Nu Pool") offers their own data feed;
  • Liquidity Providers' operations are transparent and data is made available to shareholders for independent audit;

Scenario

@brossi
brossi / nu-open-source-motion.md
Created June 16, 2015 12:10
[Motion Sample] Proposal to Open Source Software

With the successful passage of this motion, the Nu Shareholders[1] ("Shareholders") have instructed the Nu Development Team[2] ("Developers") to make the Nu source code available to the general public. The updated license will allow free, permissive use of the source code in Nu-related and derivative projects.

The Nu source code (including the code that describes the underlying Nu network protocol, the daemons, the GUIs, and the associated support systems for testing, distribution, and deployment) will include a text file, COPYING, in the root directory of the project.

Copyright (c) {YEAR[3]} Nu Developers Copyright (c) 2013-2014 Peershares Developers Copyright (c) 2011-2014 Peercoin (PPCoin) Developers Copyright (c) 2009-2012 Bitcoin Developers

>Permission is hereby granted, free of charge, to any person obtaining a copy

@brossi
brossi / nu.conf
Created June 19, 2015 22:12
Example Nu Configuration File (votenotify)
testnet=1
server=1
votenotify=C:\folder\folder\script.bat
@brossi
brossi / dollars-to-html.py
Created October 30, 2015 13:29 — forked from drewsberry/dollars-to-html.py
Replace equations $ ... $ or $$ ... $$ with KaTeX HTML using Python
import re
import execjs
def find_equations(string):
""" Take in a string, and convert everything between $ ... $ into an inline
equation and everything between $$ ... $$ into a centred equation. """
doubledollar = re.compile(ur"\$\$([^$]+)\$\$")
singledollar = re.compile(ur"(?<![\$])\$([^$]+)\$(?!\$)")
@brossi
brossi / stylus-best-practices.md
Created October 30, 2015 13:37 — forked from zspecza/stylus-best-practices.md
Stylus Best Practices

Stylus Best Practices

Introduction

This is a curated set of conventions and best practices for Stylus, an expressive, dynamic, robust and advanced CSS preprocessor. Frustrated with there not being a set of conventions set in place (that could be easily found), I set forth to find out on my own.

@brossi
brossi / simplemde.sass
Created November 2, 2015 18:45
SimpleMDE Editor Styles (SASS versions)
// current as of build b59279a3d8d186016398f81cc1d8d5645a44d128 (Nov. 2, 2015)
// https://github.com/NextStepWebs/simplemde-markdown-editor/commit/b59279a3d8d186016398f81cc1d8d5645a44d128
.CodeMirror
height: auto
min-height: 300px
border: 1px solid #ddd
border-bottom-left-radius: 4px
border-bottom-right-radius: 4px
padding: 10px
@brossi
brossi / simplemde.styl
Created November 2, 2015 18:47
SimpleMDE Styles (Stylus version)
// current as of build b59279a3d8d186016398f81cc1d8d5645a44d128 (Nov. 2, 2015)
// https://github.com/NextStepWebs/simplemde-markdown-editor/commit/b59279a3d8d186016398f81cc1d8d5645a44d128
.CodeMirror
height auto
min-height 300px
border 1px solid #ddd
border-bottom-left-radius 4px
border-bottom-right-radius 4px
padding 10px
@brossi
brossi / footnotes.md
Last active November 2, 2015 19:44
Daology content editor footnote support

This is the first paragraph.1

  • List item one.2
  • List item two.3

Footnotes

  1. This is the first note.

  2. This is the second note.

  3. This is the third note, defined out of order.