Skip to content

Instantly share code, notes, and snippets.

View GypsyDangerous's full-sized avatar
🖥️
Coding

David Snyder GypsyDangerous

🖥️
Coding
View GitHub Profile
@GypsyDangerous
GypsyDangerous / delete_email.py
Created April 11, 2019 15:26 — forked from giovaneliberato/delete_email.py
Python script to delete emails from a specific sender at gmail
#coding: utf-8
import imaplib
import sys
'''
Simple script that delete emails from a given sender
params:
-username: Gmail username
-pw: gmail pw
-label: If you have a label that holds the emails, specify here
import random
class Node:
def __init__(self,key):
self.left = None
self.right = None
self.val = key
def insert(self, node):
if self.val < node.val:
if self.right is None:
import numpy as np
import random
import math
def nextGeneration(population):
print('next generation')
size = len(population)
calculateFitness()
for i in range(size):
population[i] = pickOne(population)
@GypsyDangerous
GypsyDangerous / main.py
Created April 4, 2019 15:57
EnergeticDimMap created by anonymous - https://repl.it/repls/EnergeticDimMap
import numpy as np
import random
def round(x):
large = int(x+1)
if large-x <= .5:
return large
else:
return int(x)