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
var markov = require("./markov.js"); | |
var fs = require("fs"); | |
var stringList = fs.readFileSync("./textNavySeal.txt").toString(); | |
console.log(markov.predictAutoWords(stringList, 10000)); |
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
# 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! |
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
extern crate regex; | |
use regex::Regex; | |
use std::collections::HashMap; | |
fn main() { | |
process_defines(" | |
some text | |
#define MY_CONST 343 | |
"); |
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
#!/bin/bash | |
IMAGE=/tmp/i3lock.png | |
#take screenshot | |
scrot $IMAGE | |
##scale down then up to pixelate | |
convert $IMAGE -scale 8% -scale 1250% $IMAGE |
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
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; | |
} | |
} |
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
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_; |
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
""" | |
module docstring: | |
does step analysis stuff | |
""" | |
def metres_from_steps(num_steps, step_size): | |
"""docstring boiii""" | |
return float(num_steps * step_size) |
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
# 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! |
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
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] |
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
test | |
test | |
test | |
test | |
test | |
test | |
test | |
test |
OlderNewer