Skip to content

Instantly share code, notes, and snippets.

Avatar

William Entriken fulldecent

  • paypal.me/fulldecent
  • Philadelphia USA
View GitHub Profile
@fulldecent
fulldecent / collisionLSH.py
Created Aug 18, 2021 — forked from unrealwill/collisionLSH.py
Proof of Concept : generating collisions on a neural perceptual hash
View collisionLSH.py
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 Oct 20, 2012 — forked from statonjr/reminders.scpt
Write out Reminders to file on desktop
View reminders.scpt
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)