Skip to content

Instantly share code, notes, and snippets.

View ClimenteA's full-sized avatar
👋
Hi! Let's connect on LinkedIn/X!

Alin Climente ClimenteA

👋
Hi! Let's connect on LinkedIn/X!
View GitHub Profile
@ClimenteA
ClimenteA / qpython3_auto_sms.py
Last active May 10, 2018 15:48
Auto respond to new incoming messages on your android phone using qpython3 and sl4a library
try:
import sl4a
droid = sl4a.Android()
except:
print("Can't initialize sl4a module!")
pass
import re
import random
import time
import itertools
@ClimenteA
ClimenteA / genumerate.py
Created May 9, 2018 05:27
Iterate thru a very big list, to be used in case you iterate over a list and you get memory error
def genumerate(li):
#using a generator not to kill memory
for item in li:
yield li.index(item), item
#use case
for idx, val in genumerate(biglist):
pass #do_something()