- Update HISTORY.md
- Commit the changes:
git add HISTORY.md
git commit -m "Changelog for upcoming release 0.1.1."
- Update version number (can also be minor or major)
bumpversion patch
import time | |
def RateLimited(maxPerSecond): | |
minInterval = 1.0 / float(maxPerSecond) | |
def decorate(func): | |
lastTimeCalled = [0.0] | |
def rateLimitedFunction(*args,**kargs): | |
elapsed = time.clock() - lastTimeCalled[0] | |
leftToWait = minInterval - elapsed | |
if leftToWait>0: |
git add HISTORY.md
git commit -m "Changelog for upcoming release 0.1.1."
bumpversion patch
#! /usr/bin/env python | |
import numpy as np | |
from heapq import nlargest | |
from itertools import izip | |
from sklearn.feature_extraction.text import CountVectorizer | |
old_settings = np.seterr(all='ignore') | |
def logsum(x): |
# graph | |
# Python object that creates an ordered GraphSON representation. | |
# | |
# Author: Benjamin Bengfort <ben@cobrain.com> | |
# Created: Mon Sep 23 11:30:05 2013 -0400 | |
# | |
# Copyright (C) 2013 Cobrain Company | |
# For license information, see LICENSE.txt | |
# | |
# ID: graph.py [] ben@cobrain.com $ |
from haystack.backends.elasticsearch_backend import ElasticsearchSearchQuery, ElasticsearchSearchBackend, \ | |
ElasticsearchSearchEngine | |
from haystack.query import SearchQuerySet | |
from haystack.constants import DEFAULT_ALIAS, DJANGO_CT | |
from django.conf import settings | |
from haystack.utils import get_model_ct | |
# Snagged this a LOT of this from: https://github.com/josephdrose/django-haystack |
If a project has to have multiple git repos (e.g. Bitbucket and Github) then it's better that they remain in sync.
Usually this would involve pushing each branch to each repo in turn, but actually Git allows pushing to multiple repos in one go.
If in doubt about what git is doing when you run these commands, just
/* | |
Parses the long_abstracts format: | |
<http://dbpedia.org/resource/Anarchism> <http://dbpedia.org/ontology/abstract> "Anarchism is a collection of movements and ideologies that ..."@en . | |
*/ | |
import org.openrdf.rio.* | |
import org.openrdf.rio.helpers.* | |
def parse(line, factory) { | |
def reader = new StringReader(line); |
This is a writeup and example implementation for puzzle #9 by https://nebolsin.keybase.pub/puzzles/
Our clue was given in form of the pubkey GBW7N7EXR5MV4A34N7LEQGSKZMFEJGW4SQWHUPXGDX2JCGNJH2RXKHUL
When looking up the accounts state we find an threshold setting of 2/3/4
, 2 active signers (and one to clawback). The master key has been removed.
The account also posseses an data entry containing
More puzzles: https://erayd.keybase.pub/puzzles.html. Have fun!