This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git log --oneline HEAD..abs |sed '$d' | awk '{print $1}' | xargs git cherry-pick |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ps ux | fold -s -w $(tput cols) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
learning.algorithm=LambdaMART-RegressionTree | |
learning.evaluation-metric=NDCG | |
# tree options | |
trees.num-leaves=50 | |
trees.min-instance-percentage-per-leaf=0.25 | |
trees.min-instance-per-leaf=-1 | |
trees.feature-sampling=1.0 | |
trees.randomized-splits=false | |
# comma separated list of feature id's zero-indexed |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
autocmd FileType r setlocal keywordprg=Rscript\ -e\ \'?<cword>\' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env gawk -f | |
{ | |
split($0, arr) | |
for (i in arr) { | |
if (arr[i] ~ "@") { | |
gsub(/[<>]/, "", arr[i]) | |
print arr[i] | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Original Jing program for reference | |
prolog some: 2; | |
prolog op_unify: 2; | |
prolog below_floor: 1; | |
prolog above_floor: 1; | |
prolog next_floor_to_serve: 1; | |
action down: 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env swipl -f -q -s | |
:- ['indigolog/Interpreters/indigolog-vanilla_swi']. | |
:- initialization main. | |
execute(A, Sr) :- ask_execute(A, Sr). | |
exog_occurs(_) :- fail. | |
rm(N) :- N = 1; N = 2. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find src -name *.h -type f -exec echo {} \; -exec grep -nE "( +$|\t+)" {} \; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* gcc -g -o readlex readlex.c -Isrc */ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include "index.h" | |
int | |
main(void) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct lexicon_entry { | |
/* the term (t) */ | |
char *term; | |
/* term length */ | |
uint16_t len; | |
/* the document frequency (ft) */ | |
uint32_t doc_freq; | |
/* start of inverted list for this term */ | |
uint64_t offset; | |
}; |