Skip to content

Instantly share code, notes, and snippets.

View lprib's full-sized avatar
🐡

Liam Pribis lprib

🐡
View GitHub Profile
@lprib
lprib / main.js
Created June 29, 2016 23:12
markov text generation in node.js
var markov = require("./markov.js");
var fs = require("fs");
var stringList = fs.readFileSync("./textNavySeal.txt").toString();
console.log(markov.predictAutoWords(stringList, 10000));
@lprib
lprib / i3config
Last active August 20, 2019 12:20
vscode settings
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout some time, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
extern crate regex;
use regex::Regex;
use std::collections::HashMap;
fn main() {
process_defines("
some text
#define MY_CONST 343
");
@lprib
lprib / pixel_lock
Created September 2, 2016 07:07
pixelated lock screen for i3
#!/bin/bash
IMAGE=/tmp/i3lock.png
#take screenshot
scrot $IMAGE
##scale down then up to pixelate
convert $IMAGE -scale 8% -scale 1250% $IMAGE
char[][] prog;
int pcx, pcy;
enum Direct {
LEFT(-1, 0), RIGHT(1, 0), UP(0, -1), DOWN(0, 1);
public int x, y;
Direct(int x, int y) {
this.x = x;
this.y = y;
}
}
class Booster {
public float startTime, endTime, power, cycle;
private float counter;
Booster(float startTime_, float endTime_, float power_, float cycle_) {
// the time (in cycle) where booster will start firing
startTime = startTime_;
// time in cycle to end firing
endTime = endTime_;
power = power_;
"""
module docstring:
does step analysis stuff
"""
def metres_from_steps(num_steps, step_size):
"""docstring boiii"""
return float(num_steps * step_size)
@lprib
lprib / config
Last active June 16, 2021 21:43
desktop i3 config
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout some time, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
import sys
import socket
def main():
if len(sys.argv) != 4:
print("expected 3 args, got {}".format(len(sys.argv) - 1))
sys.exit(1)
hostname = sys.argv[1]
port = sys.argv[2]
@lprib
lprib / o.txt
Created October 17, 2019 21:57
test
test
test
test
test
test
test
test