Skip to content

Instantly share code, notes, and snippets.

View fulldecent's full-sized avatar

William Entriken fulldecent

View GitHub Profile
@fulldecent
fulldecent / collisionLSH.py
Created August 18, 2021 17:32 — forked from unrealwill/collisionLSH.py
Proof of Concept : generating collisions on a neural perceptual hash
import tensorflow as tf #We need tensorflow 2.x
import numpy as np
#The hashlength in bits
hashLength = 256
def buildModel():
#we can set the seed to simulate the fact that this network is known and doesn't change between runs
#tf.random.set_seed(42)
model = tf.keras.Sequential()
@fulldecent
fulldecent / reminders.scpt
Created October 20, 2012 22:00 — forked from statonjr/reminders.scpt
Write out Reminders to file on desktop
tell application "Reminders"
set todo_accounts to every account
-- accounts have lists. loop thru accounts to get their lists.
repeat with i from 1 to length of todo_accounts
tell account i
set todo_lists to get every list
-- lists have reminders. loop thru lists to get their reminders
repeat with j from 1 to length of todo_lists
tell list j
set todos to (get reminders)