Skip to content

Instantly share code, notes, and snippets.

@end360
end360 / wave.magic
Created March 10, 2019 07:37
Simple wave format for binwalk I use to extract wav files from games.
# WAVE file signature
0 string RIFF WAVE File |
>4 lelong x Chunk Size: %d
>4 lelong+7 x {size:%d}
>8 string WAVE
>4 lelong+7 x {jump:%d}
@end360
end360 / kahootDoAnswer.js
Created June 12, 2017 11:16
Kahoot thing
var serializedAnswers = "A;B;A;B;B;A;A;B;B;A;";
var split = serializedAnswers.split(";");
var answers = [];
for(var i=0; i<split.length;i++){
var thisans = split[i];
if(thisans == ""){
continue;
}
console.log(thisans);
answers[i] = "answer" + thisans;