Skip to content

Instantly share code, notes, and snippets.

@brossi
brossi / gist:af239b3615cacf975e0face3c842b7b5
Last active October 5, 2016 17:20
Compile TCL-TK from source (Fixed)
svn checkout -r 374 https://svn.code.sf.net/p/tkimg/code/trunk
cd trunk
./configure --prefix=/usr/local/Cellar/tcl-tk/8.6.4
make collate
make install-libraries
cp Img/prefix/include/* /usr/local/Cellar/tcl-tk/8.6.4/include
cp -r Img/exec_prefix/lib/* /usr/local/Cellar/tcl-tk/8.6.4/lib
@brossi
brossi / list-syntax.md
Created November 2, 2015 19:57
Daology content editor - lists

"Generic" (unordered) list items can be defined with *, +, or - characters.

  • Generic list item
  • Generic list item
  • Generic list item

"Numbered" (ordered) list items are defined with a numeral...

  1. Numbered list item
  2. Numbered list item
@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.

@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 / 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 / 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 / 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 / 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 / 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 / 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