Skip to content

Instantly share code, notes, and snippets.

View mbutler's full-sized avatar
🇦🇶
Exploring

Matthew Butler mbutler

🇦🇶
Exploring
View GitHub Profile
@mbutler
mbutler / listfiles_google_drive.js
Created November 17, 2018 05:47 — forked from woodwardtw/listfiles_google_drive.js
google script to list all subfolder content of a particular folder
function listFolders(folder) {
var sheet = SpreadsheetApp.getActiveSheet();
sheet.appendRow(["Name", "Folder", "Date", "Size", "URL", "Download", "Description", "Type"]);
var folder = DriveApp.getFolderById("0BxGcFSIReuGfOTJ0dTloY2xWS0E");
var subfolders = folder.getFolders();
while (subfolders.hasNext()) {
//Logger.log(folder);
@mbutler
mbutler / mersenne_predict.py
Created March 23, 2022 13:59 — forked from Rhomboid/mersenne_predict.py
Predict output of Mersenne Twister after seeing 624 values
#!/usr/bin/env python
#
# Mersenne Twister predictor
#
# Feed this program the output of any 32-bit MT19937 Mersenne Twister and
# after seeing 624 values it will correctly predict the rest.
#
# The values may come from any point in the sequence -- the program does not
# need to see the first 624 values, just *any* 624 consecutive values. The
# seed used is also irrelevant, and it will work even if the generator was