Skip to content

Instantly share code, notes, and snippets.

@benjiqq
benjiqq / gist:6449799
Created September 5, 2013 13:02 — forked from idan/gist:3135754

Hello there! This is a sample post for gist.io, a super-lightweight writing soapbox for hackers.

Now look up. Further. Above the post title. See that grey text with the gist ID?

Now back to me. That grey text is a link! Open that sucker in a new tab to see the source for this post. Also, I'm on a horse.

This is a major heading

If you peek at it with a web inspector, you'll see that it is a second-level heading. You can use first level headings, but they'll look just like the second level ones, and the gods of the HTML5 outlining algorithm will frown upon you.

We plan to crowdfund development of a system that will empower everyone to perform
giving and microdonation as a part of any transaction.
Many open source projects do not have necessary support to fund the work on an ongoing basis.
We plan to use the funds raised to support the work of development and maintenance of
the giving feature for the first year of work, which will include work to promote adoption
and support through multiple wallets and decentralized protocols, including, but not limited to bitcoin.
On github, the users ABISprotocol and ktorn provide vision and direction on the project, and will
work with coders or developers who are interested in contributing. Bounties or rewards for work
@benjiqq
benjiqq / client.py
Created February 10, 2014 15:34 — forked from devdave/client.py
"""
Bridge test client:
So this one's going to be a doozy.
Connect to target via SSH and then connect to target:localhost:8283(DAVE) and listen
for the time messages.
"""
@benjiqq
benjiqq / client.py
Created February 12, 2014 08:14 — forked from devdave/client.py
"""
Bridge test client:
So this one's going to be a doozy.
Connect to target via SSH and then connect to target:localhost:8283(DAVE) and listen
for the time messages.
"""
@benjiqq
benjiqq / monet.md
Created February 25, 2014 18:19 — forked from kai-qu/monet.md

But as I learned by trying to copy Monet’s paintings, that idea is completely mistaken (Colorplate 2). It is not possible to reproduce the effect of a Monet painting by jousting mechanically with the canvas, jabbing a dot of paint here and planting another one there, until the surface is uniformly puckered in Monet’s signature texture. A painter who does that will end up with a picture that looks soft and uninteresting, with a dull pattern of swirling circles like the ones left by some electric rug cleaners. A brush that’s loaded with paint and then pushed onto the canvas makes a circle, more or less, but Monet’s pictures do not have any circles in them. There is only one slightly rounded mark in this detail from one of his garden paintings—the blue patch at the lower right—and it’s rectangular, not circular at all. [The painting below is a different one.]

Crypto Review of Curve25519.java & Crypto.java

By DoctorEvil on Nextcoin.org

Sponsored by MSIN on BitcoinTalk.org

TL;DR

NXT's Crypto.java and Curve25519.java look kosher aside from a signing bug that is currently being worked around.

General Methodology

"""
Bridge test client:
So this one's going to be a doozy.
Connect to target via SSH and then connect to target:localhost:8283(DAVE) and listen
for the time messages.
"""
# a pedagogical implementation of curve25519 with ec-kcdsa
# coded by doctorevil to validate nxt's port of Matthijs van Duin's implementation
# warning: this implementation is not timing attack resistant
# ec arithmetic equations from http://hyperelliptic.org/EFD/g1p/auto-montgom.html
from hashlib import sha256
from ecdsa.numbertheory import square_root_mod_prime, SquareRootError, inverse_mod
CURVE_P = 2**255 - 19
CURVE_A = 486662
// see build.gradle for imports
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import ch.qos.logback.classic.LoggerContext;
import ch.qos.logback.core.util.StatusPrinter;
...
public abstract class Utilities {
public static final Logger logger = LoggerFactory.getLogger( "AnyUniqueStringHere" );
...
public static void printLoggerState() {
import zmq
def main():
try:
context = zmq.Context(1)
frontend = context.socket(zmq.SUB)
frontend.bind('tcp://*:5559')
frontend.setsockopt(zmq.SUBSCRIBE, '')