Skip to content

Instantly share code, notes, and snippets.

import org.web3j.crypto.Keys;
import org.web3j.crypto.Sign;
import org.web3j.utils.Numeric;
import java.security.SignatureException;
public class SignUtil {
private static final String GETH_SIGN_PREFIX = "\u0019Ethereum Signed Message:\n32";
@megamattron
megamattron / realms.py
Last active January 5, 2017 15:15
LED Minecraft server status for Raspberry Pi and Sense HAT
import requests
from mcstatus import MinecraftServer
from sense_hat import SenseHat
mojang_username = "<your mojang login, usually your email address>"
minecraft_playername = "<your minecraft playername>"
password = "<your mojang password>"
def get_cookie(user_uuid):
return "sid=token:" + get_token() + ":"+user_uuid+";user="+minecraft_playername+";version=1.7.9"
Verifying that +matt2000 is my Bitcoin username. You can send me #bitcoin here: https://onename.io/matt2000

How did Pullup get started? Who all was involved, and how did the idea come about?

Myself and @pents90 were talking about how online communities tend to lose much of what makes them special as they grow. There are some exceptions to that rule, but usually as the community gets diluted from the early adopters things go downhill. We decided to try and set the bar for membership to be (too?) high and see what happens. So the 1000th person that joined had to do roughly the same amount of work as the 1st person. All of that, and the hook for the site - join via pull request - seemed too sweet to pass up, we knew we had to give it a try. It also seemed like an interesting experiment in chaotic software development. You usually don't get far with no real plan for a piece of software, so it's been interesting to see things develop.

Pullup is one of the fastest growing projects on Github. How did you get so much traction so quickly?

I'm not exactly sure! I think it w

@megamattron
megamattron / jquery.html5form-1.5.js
Created August 7, 2012 14:31
JQuery HTML5 - modified for dynamic forms
/*
* Html5 Form Plugin - jQuery plugin
* Version 1.5 / English
*
* Author: by Matias Mancini http://www.matiasmancini.com.ar
*
* Modified to be safe to call repeatedly on a form, useful for forms that change their fields dynamically.
*
* Copyright (c) 2010 Matias Mancini (http://www.matiasmancini.com.ar)
* Dual licensed under the MIT (MIT-LICENSE.txt)
// From http://stackoverflow.com/questions/931207/is-there-a-jquery-autogrow-plugin-for-text-fields
(function ($) {
$.fn.autoGrowInput = function (o) {
o = $.extend({
maxWidth:1000,
minWidth:0,
comfortZone:70
}, o);
var testerWidth = testSubject.width(),
newWidth = (testerWidth + o.comfortZone) >= minWidth ? testerWidth + o.comfortZone : minWidth,
currentWidth = input.width(),
isValidWidthChange = (newWidth < currentWidth && newWidth >= minWidth)
|| (newWidth > minWidth && newWidth < o.maxWidth);
@megamattron
megamattron / jquery.jeditable.tinymce.js
Created March 8, 2012 00:08
JEditable TinyMCE custom input plugin
/*
* Wysiwyg input for Jeditable
*
* Copyright (c) 2008 Mika Tuupola
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/mit-license.php
*
* Depends on jWYSIWYG plugin by Juan M Martinez:
* http://projects.bundleweb.com.ar/jWYSIWYG/