This file contains 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
/* magcube solver | |
* James Stanley 2018 | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <math.h> | |
/* uncomment this if you want to find new cube sets instead of using the set I settled on, ... */ |
This file contains 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/perl | |
use strict; | |
use warnings; | |
use GD; | |
my $filename1 = shift or die "usage: xorimg ONE.PNG TWO.PNG > OUTPUT.PNG\n"; | |
my $filename2 = shift or die "usage: xorimg ONE.PNG TWO.PNG > OUTPUT.PNG\n"; |
This file contains 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/perl | |
use strict; | |
use warnings; | |
use bytes; | |
my $input = 'BYGRBLBYBLBLBYBRBLGYBYYYBLBYBYBLBYFYBLGYBGRGBGRRBGFRBLBFBLBYBYFLBLBGBYYBBLYYBGRLBYYFBYGRBYFRBLBFBGYFBYRRBGRYBGYFBGRRBLGG'; | |
for my $b (0 .. 5) { |
This file contains 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
'use strict'; | |
class Markov { | |
constructor() { | |
this.maxLength = 30; | |
this.dict = {}; | |
} | |
addSentence(text) { | |
// '\0' is a sentinel marking the beginning + end of sentences |
This file contains 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
package main | |
import ( | |
"fmt" | |
"golang.org/x/net/proxy" | |
"net" | |
"os" | |
"strconv" | |
"time" | |
) |
This file contains 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
'use strict'; | |
class Markov { | |
constructor() { | |
this.minLength = 6; | |
this.maxLength = 30; | |
this.dict = {}; | |
} | |
addSentence(text) { |
This file contains 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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <time.h> | |
int main() { | |
srand(time(NULL)); | |
short *buf = malloc(1048576); | |
for (int i = 0; i < 1000; i++) { |
This file contains 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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <time.h> | |
#include <inttypes.h> | |
// lfsr64 from https://github.com/russm/lfsr64/blob/master/lfsr64.c | |
uint64_t byte_feedback[256] = { | |
0x0000000000000000, 0xc70000000000000b, 0x8e0000000000000d, 0x4900000000000006, |
This file contains 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
TEXT main.genDataChunk(SB) /home/jes/rdspam/main.go | |
main.go:64 0x4b2c00 4883ec08 SUBQ $0x8, SP | |
main.go:64 0x4b2c04 48892c24 MOVQ BP, 0(SP) | |
main.go:64 0x4b2c08 488d2c24 LEAQ 0(SP), BP | |
main.go:64 0x4b2c0c 488b442410 MOVQ 0x10(SP), AX | |
main.go:64 0x4b2c11 488b4c2420 MOVQ 0x20(SP), CX | |
main.go:64 0x4b2c16 488b542418 MOVQ 0x18(SP), DX | |
main.go:64 0x4b2c1b 31db XORL BX, BX | |
main.go:65 0x4b2c1d eb0e JMP 0x4b2c2d | |
binary.go:90 0x4b2c1f 48893c08 MOVQ DI, 0(AX)(CX*1) |
This file contains 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
00000000 05 00 00 00 00 00 00 69 0a 00 00 00 00 00 69 db |.......i......i.| | |
00000010 0f 00 00 00 00 69 db b6 05 00 00 00 69 db b6 6d |.....i......i..m| | |
00000020 0a 00 00 69 db b6 6d db 0f 00 69 db b6 6d db b6 |...i..m...i..m..| | |
00000030 05 69 db b6 6d db b6 6d 63 db b6 6d db b6 6d db |.i..m..mc..m..m.| | |
00000040 de b6 6d db b6 6d db 69 ba 6d db b6 6d db 69 9a |..m..m.i.m..m.i.| | |
00000050 63 db b6 6d db 69 9a a6 de b6 6d db 69 9a a6 69 |c..m.i....m.i..i| | |
00000060 ba 6d db 69 9a a6 69 9a 63 db 69 9a a6 69 9a a6 |.m.i..i.c.i..i..| | |
00000070 de 69 9a a6 69 9a a6 69 65 9a a6 69 9a a6 69 9a |.i..i..ie..i..i.| | |
00000080 93 a6 69 9a a6 69 9a fb a9 69 9a a6 69 9a fb b9 |..i..i...i..i...| | |
00000090 65 9a a6 69 9a fb b9 9f 93 a6 69 9a fb b9 9f fb |e..i......i.....| |