split -l 1000 student-adresser.txt STUDENT
I hereby claim:
- I am tobiasvl on github.
- I am tvl (https://keybase.io/tvl) on keybase.
- I have a public key whose fingerprint is 805D 8300 6D52 F8BC CCB1 A556 FBD3 F4A9 6CEB BF95
To claim this, I am signing this object:
Her er kommandoene jeg kjørte for å konvertere cerebrum_sites
fra CVS til Git.
Basert på http://www.embecosm.com/appnotes/ean11/ean11-howto-cvs-git-1.0.html.
Installer cvsclone
og avhengigheten flex
:
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
on *:text:!*:#: { | |
var %get $+(#,.,$1) | |
var %name $1 | |
var %text $readini(cmds.ini,%get,text) | |
if (!%text) { | |
/msg # | |
} | |
else { | |
if (%flood3) { return } | |
set -u0 %flood3 off |
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
require 'parslet' | |
require 'parslet/convenience' | |
require 'awesome_print' | |
require 'byebug' | |
class LocationParser < Parslet::Parser | |
# literals | |
rule(:space) { str(' ') } | |
rule(:spaces) { space.repeat(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
def true.-(a, &b) a[] end | |
def false.-(a, &b) b[] end | |
(1 == 1).--> { :ok } { fail Math } |
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
def decrypt(row, cipher): | |
plain = "" | |
seed = ((row * 0x1E2F) + 0xFE64) & 0xFFFFFFFF | |
for byte in bytes.fromhex(cipher): | |
mask = (seed >> 8) & 0xFF | |
plain += chr(byte ^ mask) | |
seed = (((seed + byte) * 0x0E6C9AA0) + 0x196AAA91) & 0xFFFFFFFF | |
plain = re.sub("[^0-9]", "", plain) | |
return plain |
The procedure I used to convert the repo cerebrum_sites
from CVS to Git.
Based on http://www.embecosm.com/appnotes/ean11/ean11-howto-cvs-git-1.0.html.
Install cvsclone
and its dependency flex
:
OlderNewer