Skip to content

Instantly share code, notes, and snippets.

View tebeka's full-sized avatar
💭
alive

Miki Tebeka tebeka

💭
alive
View GitHub Profile
@tebeka
tebeka / check_install.py
Created March 16, 2020 16:58
Check install
import importlib
from sys import version_info
if version_info[:2] < (3, 6):
raise SystemExit('error: Python 3.6+ required')
missing = []
pkgs = (
('jupyterlab', 'jupyterlab'),
('matplotlib', 'matplotlib'),
@tebeka
tebeka / mat_test.go
Created March 8, 2020 07:39
Matrix Sum
package main
import (
"testing"
)
var (
nRows, nCols = 10000, 27
mat [][]int
n = nRows * nCols
@tebeka
tebeka / update-go.sh
Created January 15, 2020 05:50
Update go version
#!/bin/bash
case $1 in
-h | --help ) echo "usage: $(basename $0) VERSION"; exit;;
esac
if [ $# -ne 1 ]; then
1>&2 echo "error: wrong number of arguments"
exit 1
fi
@tebeka
tebeka / httpd.py
Created January 9, 2020 10:51
Testing gunicorn + genvent
from time import sleep
from flask import Flask
app = Flask(__name__)
counter = 0
@app.route('/count')
@tebeka
tebeka / col.cc
Created July 14, 2019 14:06
column_get_bool
typedef struct {
std::shared_ptr<arrow::Array> chunk;
int64_t offset;
const char *error;
} chunk_t;
chunk_t find_chunk(void *vp, long long i, int typ) {
chunk_t ct = {nullptr, 0, nullptr};
auto column = (Column *)vp;
@tebeka
tebeka / column.cc
Last active July 14, 2019 12:30
Getting item from column
int column_bool_at(void *vp, long long i) {
auto column = (Column *)vp;
// TODO: errors
if (column == nullptr) {
return -1;
}
if (column->ptr->type()->id() != BOOL_DTYPE) {
return -1;
}
@tebeka
tebeka / allenai.md
Created June 17, 2019 15:27
Allen AI Israel Job

AI2 Israel is looking for an experienced software engineer to join our Tel-Aviv, Sarona office

AI2 Israel is the Israeli branch of the Allen Institute for Artificial Intelligence, a non-profit research institute founded by Paul Allen with the mission to contribute to humanity through high-impact research and engineering in artificial intelligence. https://allenai.org/ai2-israel/ The Israeli branch focuses on language understanding technologies. As a non-profit organization, our goals are not to maximize revenue but rather to do good to the world. All of our work is aimed to be released freely to the public.

As part of our team you will be building software infrastructure to facilitate state of the art research in natural language processing and information extraction. You will design and develop backend services, build UI components and contribute to software that is being used by researchers around the world. You will interact closely with academic researchers working on state-of-the-art language unde

@tebeka
tebeka / nameless.md
Created March 31, 2019 16:03
The Nameless

I have many names, and none of them matter. Names are not important. To speak is to name names, but to speak is not important. A thing happens once that has never happened before. Seeing it, a man looks upon reality. He cannot tell others what he has seen. Others wish to know, however, so the question him saying, 'What is it like, this thing you have seen?' So he tries to tell them. Perhaps he has seen the very first fire in the world. He tells them, 'It is red, like a poppy, but through it dance other colors. It has no form, like water, flowing everywhere. It is warm, like the sun of summer, only warmer. It exists for a time upon a piece of wood, and then the wood is gone, as though it were eaten, leaving behind that which is black and can be sifted like sand.

@tebeka
tebeka / miki.vim
Created September 6, 2018 05:27
vimrc
call plug#begin('~/.vim/plugged')
Plug 'SirVer/ultisnips'
Plug 'artur-shaik/vim-javacomplete2'
Plug 'fatih/vim-go'
Plug 'flazz/vim-colorschemes'
Plug 'honza/vim-snippets'
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
Plug 'junegunn/fzf.vim'
Plug 'scrooloose/nerdtree'
@tebeka
tebeka / docker-cleanup.sh
Last active August 14, 2018 03:34
Cleanup Docker
#!/bin/bash
# Cleanup docker containers and volumes
case $1 in
-h | --help ) echo "usage: $(basename $0)"; exit;;
esac
if [ $# -ne 0 ]; then
1>&2 echo "error: wrong number of arguments"
exit 1