I hereby claim:
- I am federicobond on github.
- I am federicobond (https://keybase.io/federicobond) on keybase.
- I have a public key whose fingerprint is 45ED 2027 0053 0F06 D919 9F9F 3C44 A4B4 EB48 DE76
To claim this, I am signing this object:
#include <stdio.h> | |
#include <stdlib.h> | |
#include <ctype.h> | |
#define MEM_SIZE 30000 | |
#define BUF_SIZE 2000 | |
void execute(const char prg[]); | |
int read_file(FILE *f, char buf[], const int bufsize); |
from collections import Counter | |
class Letterpress(object): | |
DICTIONARY = "Words/Words/en.txt" | |
def __init__(self, available): | |
"""Inialize letterpress object""" | |
self.words = self.build_words() |
// messages.js - Client-side messages for Bootstrap | |
// (c) 2013 Federico Bond | |
// messages.js may be freely distributed under the MIT License. | |
!function ($) { | |
"use strict"; | |
var templateString = '<div class="alert alert-{{ cls }}">{{ msg }}' + | |
'<a class="close" data-dismiss="alert" href="#">×</a>' + |
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
# Small script to find missing translation strings in Processing | |
# | |
# Use with no arguments to find strings that are in the codebase but have not | |
# been added to the default language file. | |
# | |
# Use with a language code as first argument to find strings that are in the | |
# default properties file but have not yet been translated to the given | |
# language. |
Verifying I am +federicobond on my passcard. https://onename.com/federicobond |
#!/bin/bash | |
# | |
# This scripts solves the following error when running Django's makemessages with xlwt installed. | |
# It also gets rid of the warnings. | |
# | |
# CommandError: errors happened while running xgettext on UnicodeUtils.py | |
# xgettext: ./env/lib/python2.7/site-packages/xlwt/UnicodeUtils.py:1: Unknown encoding "windows-1252". Proceeding with ASCII instead. | |
# xgettext: Non-ASCII string at ./env/lib/python2.7/site-packages/xlwt/UnicodeUtils.py:37. | |
# Please specify the source encoding through --from-code or through a comment | |
# as specified in http://www.python.org/peps/pep-0263.html. |
This choropleth encodes unemployment rates from 2008 with a quantize scale ranging from 0 to 15%. A threshold scale is a useful alternative for coloring arbitrary ranges.
The other day we had an in-person meeting with @slezica, @yemel, @esneider et al., and we talked about the library architecture. This is what came out of it:
We decided early on that Bitforge should provide accurate representations of protocol objects. These are Transactions, Inputs, Outputs, Addresses, etc. They are immutable and syntactically valid since creation. We cannot check network consensus rules like double spends (for obvious reasons) and script semantics, like valid signatures (which would require us to execute the script, a computationally expensive operation) but, other than that, these objects can be considered well formed and valid.
Bitforge therefore needs a way to model some objects that are in the process of becoming proper protocol objects. The most obvious case of these are unsigned transactions. These objects can (and will) have friendlier interfaces. While the Transaction constructor receives signed inputs and an output list, the object that represents an unsigned transaction Transac
package main | |
import ( | |
"crypto/ecdsa" | |
"crypto/elliptic" | |
"crypto/rand" | |
"fmt" | |
"testing" | |
jwt "github.com/dgrijalva/jwt-go" |