Skip to content

Instantly share code, notes, and snippets.

#!/bin/zsh
# relative history
relative_histfile() {
searchdir="$(readlink -f $PWD)";
# default values
if [ -z "$HISTDIR" ]; then
HISTDIR="$HOME/.histfiles/";
fi
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <time.h>
typedef unsigned char byte_t;
double timestamp_now() {
struct timespec t_time;
double m_time;

query (raw): bitcoin, kelly-detwil, megawatt, mining, cryptocurrency, electricity, yearly, constraint, cost, energy, pool, datacenter, block, consumption, solving, math, amount, viability, transaction, blockchain, Blockchain input DB: ../word2vec.data/articles_prod_2016-07-25_hydrated_250k.json.gz opts: {:min-match 3, :ws-weights nil, :min-cosine 0.8}

  • 6.40117905309144 Blockchain A-Z: Everything You Need to Know About the Game-Changing Tech Beneath Bitcoin

TV product placement off to slow start

  • article-score=0.2361 match-score=0.448 uuid=5c59f5e7fa505166a2f639deb9d096f6bf0d9be3
  • http://www.theguardian.com/media/2011/aug/27/tv-product-placement
  • has: Made Simple
  • not: product placement, channel 4, mediaguardian, placement, placement deal, findmypast, catton, tv product, 3353, 020 3353, 020, deal, product, channel, show david, fat salt, intern televis, materialis, thing hold, make televis, pritchard, david charlesworth, catwalk competit, placement agenc, yesterdai call

Jordan Brand Store Opens on State Street

@axel-angel
axel-angel / convnet_test.py
Last active January 4, 2019 13:26
Caffe script to compute accuracy and confusion matrix
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Author: Axel Angel, copyright 2015, license GPLv3.
import sys
import caffe
import numpy as np
import lmdb
import argparse
@axel-angel
axel-angel / pyloss.py
Last active May 4, 2018 01:04
Caffe Python layer for Contrastive Loss
import caffe
import numpy as np
import os
import sys
# Author: Axel Angel, copyright 2015, license GPLv3.
class OwnContrastiveLossLayer(caffe.Layer):
def setup(self, bottom, top):