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 / svelte-tailwind-svelte-spa-router config.txt
Last active November 12, 2020 09:29
How to configure svelte with tailwind and svelte-spa-router
npx degit sveltejs/template project-name
cd project-name
npm install
npm install svelte-spa-router
// Temporary issue postcss works only with: [email protected] (remove @9.8.6 if the issue was solved)
@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()