Skip to content

Instantly share code, notes, and snippets.

View jldevezas's full-sized avatar

José Devezas jldevezas

View GitHub Profile
@jldevezas
jldevezas / lfs_install.sh
Last active April 28, 2022 16:06
Installing LFS for a cloned Git repository when using lfs-filestore
#!/bin/bash
if [[ $# -lt 1 ]]
then
echo "Usage: $0 LFS_FOLDERSTORE_PATH"
exit 1
fi
lfs_folderstore_bin=$(which lfs-folderstore)
lfs_folderstore_path=$1

Keybase proof

I hereby claim:

  • I am jldevezas on github.
  • I am jldevezas (https://keybase.io/jldevezas) on keybase.
  • I have a public key ASATM_EUbSAJP46SRPljWjvf2GVSmZHiM6ar9x5rEyJCEgo

To claim this, I am signing this object:

#!/usr/bin/python3
import sys, os, string
from nltk.tokenize import WordPunctTokenizer
if len(sys.argv) < 3:
print("Usage: %s BRATDIR COLFILE [BASENAME]" % sys.argv[0])
sys.exit(1)
if len(sys.argv) > 3:
#!/bin/sh
#
# /etc/init.d/ant -- startup script for the ANT 0.1-SNAPSHOT search engine
#
# Written by José Devezas <[email protected]>.
#
### BEGIN INIT INFO
# Provides: ant
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
#!/bin/sh
find project/ -name '*.cs' -or -name '*.js' | \
awk '{ \
cmd = "wc -l "$0; \
cmd | getline res; \
split(res, n, " "); \
print n[1]; \
close(cmd) \
}' | paste -s -d'+' - | bc
for ( i <- 0 until n ;
j <- i + 1 until n ;
if i + j == v ) {
// Do something.
}
for ( int i = 0 ; i < n ; i++ ) {
for ( int j = i + 1 ; j < n ; j++ ) {
if ( i + j == v ) {
// Do something.
}
}
}