Skip to content

Instantly share code, notes, and snippets.

@ihaque
ihaque / fps.txt
Created August 27, 2021 19:42
Generate set of 64-bit FPs with fully unique pairwise Tanimotos
0x831A122F5DED0F74
0xF1E6F872274DB4B4
0x8940578CC91025A7
0x5DFE2CABD588AB8A
0xF17DA5DF5A7438AB
0x8F97D17115314C0D
0xAFCF937513811F3B
0xDE69E942303BA44D
0x64D37E0B37C3B362
0x09171FE07590059D
@ihaque
ihaque / numpy-accelerate.log
Last active December 29, 2015 19:18
Broken numpy.eigh
Eigenvalues OK for matrix of size 559? (Remove head) True
Eigenvalues OK for matrix of size 559? (Remove tail) True
Eigenvalues OK for matrix of size 560? False
Numpy configuration
version: 1.10.2
lapack_opt_info:
extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
extra_compile_args = ['-msse3']
define_macros = [('NO_ATLAS_INFO', 3), ('HAVE_CBLAS', None)]
@ihaque
ihaque / G.txt
Last active December 29, 2015 05:12
gram matrix
5.659961250000000000e+05 3.724742578125000000e+04 3.637817968750000000e+04 4.413761718750000000e+04 3.397246093750000000e+04 3.453220703125000000e+04 1.498615332031250000e+04 3.384765625000000000e+04 3.595958593750000000e+04 3.050485351562500000e+04 3.297774609375000000e+04 3.719416406250000000e+04 4.236740625000000000e+04 3.620104296875000000e+04 2.128593554687500000e+04 3.408514843750000000e+04 3.712941796875000000e+04 4.125301953125000000e+04 3.623164453125000000e+04 3.005377929687500000e+04 3.264214843750000000e+04 2.887791796875000000e+04 4.038496875000000000e+04 2.608633789062500000e+04 3.608921484375000000e+04 3.599268750000000000e+04 3.745137500000000000e+04 2.524565234375000000e+04 1.657358789062500000e+04 3.332289843750000000e+04 2.248200781250000000e+04 2.927972460937500000e+04 3.407544531250000000e+04 3.738280468750000000e+04 3.035079882812500000e+04 1.650042578125000000e+04 4.307830859375000000e+04 4.003902734375000000e+04 2.278440820312500000e+04 2.907345117187500000e+04 3.380399609375000000e+04
.globl _msd_axis_major
.align 4, 0x90
_msd_axis_major: ## @msd_axis_major
.cfi_startproc
## BB#0:
pushq %rbp
Ltmp43:
.cfi_def_cfa_offset 16
Ltmp44:
.cfi_offset %rbp, -16
@ihaque
ihaque / test.py
Created May 7, 2013 07:00
Demo program for pytables bug
import tables
import numpy as np
h5 = tables.openFile('test.h5', 'w')
table = h5.createTable(
h5.root, 'table',
description=np.dtype([('col', 'S16')]))
table.append([('S_%05d' % i,) for i in xrange(10)])
@ihaque
ihaque / matrix_bug_demo.py
Created April 21, 2013 08:18
Demo program showing broken FileChooserIconView
import kivy
kivy.require('1.6.0')
from kivy.app import App
from kivy.uix.filechooser import FileChooserIconView
class DemoApp(App):
def build(self):
return FileChooserIconView()
@ihaque
ihaque / analyze.py
Last active December 16, 2015 08:49 — forked from entee/gist:5408785
#!/usr/bin/python
import sys
'''
Created on Apr 17, 2013
@author: ntilmans
revised by @ihaque
'''
@ihaque
ihaque / hang_on_terminate.py
Created April 14, 2013 23:49
Short demo program illustrating Kivy bug
import logging
import multiprocessing
multiprocessing.log_to_stderr().setLevel(logging.DEBUG)
import kivy
from kivy.app import App
from kivy.uix.button import Button
@ihaque
ihaque / demo.py
Created April 3, 2013 20:29
Debug kivy MarkupLabel
import kivy
kivy.require('1.6.0') # replace with your current kivy version !
from kivy.app import App
from kivy.uix.label import Label
class MyApp(App):
def build(self):
return Label(text='Hello World', markup=True)
@ihaque
ihaque / Makefile
Created February 28, 2012 17:57
Thesis compilation tools
all: master.pdf
clean:
rm -f *.pdf *.log *.aux *.blg *.bbl *.lof *.lot *.out *.toc
rm -f *_lores.tex
rm -f images/*/downsampled/*
master.pdf: master.tex PAPER_lores.tex SIML.tex GPUCG_lores.tex SCISSORS_lores.tex \
kernelnoise_lores.tex kernelnoise_chapter.tex nips_abstract.tex nips_appendices.tex\
bibliography.bib introduction.tex master-macros.sty conclusion.tex \
bounds.tex realtime_lores.tex acknowledgement.tex abstract.tex