Skip to content

Instantly share code, notes, and snippets.


alincmt ClimenteA

View GitHub Profile
ClimenteA /
Created May 9, 2018
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()
ClimenteA /
Last active May 10, 2018
Auto respond to new incoming messages on your android phone using qpython3 and sl4a library
import sl4a
droid = sl4a.Android()
print("Can't initialize sl4a module!")
import re
import random
import time
import itertools
ClimenteA / svelte-tailwind-svelte-spa-router config.txt
Last active Nov 12, 2020
How to configure svelte with tailwind and svelte-spa-router
View svelte-tailwind-svelte-spa-router config.txt
npx degit sveltejs/template project-name
cd project-name
npm install
npm install svelte-spa-router
// Temporary issue postcss works only with: autoprefixer@9.8.6 (remove @9.8.6 if the issue was solved)
ClimenteA / Javascript Python relevant
Last active Nov 16, 2020
Here I added some relevant github repo's relavant for python/javascript positions
View Javascript Python relevant