Skip to content

Instantly share code, notes, and snippets.

@glisha
glisha / mnogudetna.py
Created October 12, 2014 19:33
mnogudetna word cloud (https://imgur.com/T22BTeH)
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
#https://github.com/amueller/word_cloud
from wordcloud import WordCloud
#http://www.pmgrecordings.com/makedonide.php?id=113
#pdftotext
text = open("mnogudetna.txt").read().decode('utf-8')
@glisha
glisha / .i3status-vga1.conf
Created October 24, 2014 12:27
.i3/config
general {
colors = true
interval = 20
output_format = "i3bar"
}
# order += "ipv6"
# order += "run_watch DHCP"
# order += "run_watch VPN"
#order += "wireless wlan0"
@glisha
glisha / arduino.ino
Created October 24, 2014 23:11
arduino+esp8266+relay
boolean wifiReady = 0;
boolean wifiConnected = 0;
void setup() {
pinMode(10,OUTPUT);
pinMode(13,OUTPUT);
digitalWrite(10,LOW);
digitalWrite(13,LOW);
Serial.begin(115200);
@glisha
glisha / get.py
Last active April 7, 2020 19:22
Get availalbe free slots for online order by the AH
#!/usr/bin/python3
"""
This script notifies you by mail when there are available time slots for online shopping at the AH.
./get.py --postcode 1111aa --to-mail <WHERE_TO_SEND_THE_ALLERT> --from-mail <GMAIL_SENDER_ADDRESS> --password <THEPASS>
"""
import json
import urllib.request