Skip to content

Instantly share code, notes, and snippets.

View breakds's full-sized avatar

Break Yang breakds

View GitHub Profile
@breakds
breakds / opencv2.BUILD
Created October 5, 2017 04:24
OpenCV2
# OpenCV highgui module can support various GUI libraries for capture.
# They can be enabled by including the corresponding .cpp files in
# modules/highgui/src/cap*. They are not enabled currently.
cc_library(
name = "highgui",
hdrs = glob([
"modules/highgui/src/grfmt*.hpp",
]) + [
"modules/highgui/src/precomp.hpp",
"modules/highgui/src/utils.hpp",
@breakds
breakds / config.h
Last active May 29, 2023 23:34
BreakDS's Planck Layout
/* Copyright 2015-2021 Jack Humbert
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
fn construct_vector() -> Vec<i32> {
let mut result: Vec<i32> = vec![];
for i in 0..10 {
result.push(i);
}
result
}
## this is a program that takes two txt file of company list and return a list of closest matches.
## name1.txt census name consist of three columns: stem_name1, full_name1, id1
## name2.txt corprate name consist of three columns: stem_name2, full_name2, id2
## read in the files
import sys
import re
import os
import shutil
@breakds
breakds / de_bruijn.py
Last active August 29, 2015 14:11
DeBruijn
def GenList(alphabet, k):
dict_size = len(alphabet)
node_size = k - 1
mask = dict_size ** (node_size - 1)
next_out = [0 for i in xrange(mask * dict_size)]
prefix = [0]
postfix = []
while 0 < len(prefix):
node = prefix[-1]
@breakds
breakds / two-by-two-grid
Created July 4, 2014 09:25
A 2x2 grid.
<div>
<table style="border-collapse:collapse;">
<tr>
<td style="border:1px solid black; width:20px; height:20px;"></td>
<td style="border:1px solid black; width:20px; height:20px;"></td>
</tr>
<tr>
<td style="border:1px solid black; width:20px; height:20px;"></td>
<td style="border:1px solid black; width:20px; height:20px;"></td>
</tr>