Skip to content

Instantly share code, notes, and snippets.

View MatejMecka's full-sized avatar
⛰️
Can i go back to Cali and explore the wilderness?

Matej Plavevski MatejMecka

⛰️
Can i go back to Cali and explore the wilderness?
View GitHub Profile

Keybase proof

I hereby claim:

  • I am matejmecka on github.
  • I am matejmecka (https://keybase.io/matejmecka) on keybase.
  • I have a public key ASDi2x7XRLEaU0YbXd0Oi-FV_Nkrv7CDF9O4bT3xTTDxJgo

To claim this, I am signing this object:

@MatejMecka
MatejMecka / help.md
Created September 16, 2017 18:39
GoogleBot Help

Help

Commands:

  • Search -> Returns 3 Searches. Poured by Google
  • Weather -> Returns the weather,temperature and wind speeds for a given location. Powered by OpenWeatherMap
  • Define -> Gives the first dictionary entry of a word. Powered by Oxford Dictionaries
  • Date -> Returns the current date
  • Info -> Information about the Bot
  • Translate -> Translates a given text to specified language. translate Јас ја сакам Баба to en. Powered by Google Translate
@MatejMecka
MatejMecka / torta.cpp
Created September 19, 2017 14:06
Tapa sum
#include <iostream>
#include <vector>
#include <algorithm>
#include <math.h>
using namespace std;
int main(){
int eggs;
@MatejMecka
MatejMecka / status.py
Created October 24, 2017 17:16
Status na Hacklabot/
# _*_ coding: utf-8 _*_
import requests
import json
import time
res = requests.get('https://db.softver.org.mk/influxdb/query?db=status&q=SELECT+doorstatus+FROM+doorstatus+WHERE+location=%27hacklab%27+ORDER+BY+time+DESC+LIMIT+1&epoch=ms')
data = json.loads(res.text)
if data['results'][0]['series'][0]['values'][0][1] == 'OPEN':
print "Хаклабот е отворен! и тоа од: " + str(time.strftime("%H:%M", time.localtime(int(data['results'][0]['series'][0]['values'][0][0]))))
@MatejMecka
MatejMecka / welcomer.py
Last active November 28, 2017 18:43
GCI17 CCExtractor Development
# -*- coding: utf-8 -*-
# To start bot install SlackClient from pip. Make sure bot joins #general only! Leave it to run. Use supervisor i'd recommmend
from slackclient import SlackClient
import time
slack_token = "" #token for slack
sc = SlackClient(slack_token)
messagetosend = "" #message to great
@MatejMecka
MatejMecka / izarontoomanybugsinterview.md
Created December 12, 2017 10:19
I've interviewed Alex Bratosin and Evgeny Shulgin and talked about Google Code In

GCI Winners Interview

Google Code-In is a competition happening during November till the end of the winter break that encourages teens from the age of 13 to 17 to learn more about Open Source and contribute to it.

During Code-In students are collaborating and working on solving problems ranging from coding, documentation, training, outreach, research, quality assurance and user interface to help the organization they picked.

Last year it was my first year participating in Google Code-In and that year I made a lot of friends that we are staying in touch. Together we work on collaborating on Projects of our own, Help each other when we are stuck and express our opinions on Linux Distributions.

Sadly I’m not a winner to talk about it but two of my best friends are and I’m really proud of them and their contributions. Great work guys!

Anyways I decided to do an interview too and learn more about what they did during Code-In and tips I can get to go to the magical paradise called Googleplex. This year they

@MatejMecka
MatejMecka / arduinoideas.md
Last active December 12, 2017 16:50
GCI 2017

Arduino: Come up with 3 ideas for Arduino projects related to subtitles


Send SMS if favorite show is on TV

We have a TVBox but there's nothing good on TV except HBO and rarely the Simpsons and South Park. I usually recorded the Simpsons episode but now the recording function broke. I know I can watch them using torrents but it's different watching on a bigger screen and taking the entire space on the couch. And After School I have a lot of free time but never actually check the TV. So my first idea is to connect an Arduino to a TV box and check the TV guide or based on the intro of the show usually the Simpsons start with the subtitle " the sinpsons". While the Arduino is parsing the data via a video experimenter shield and registers it it will send me an SMS via a gsm modem or a notification via an internet shield using Slacks API or pushbullet

Detect emotions.

cc.api_add_param(s,param) # for each parameter call this function.
#very mandatory for keeping a track of pythonapi call. Always must be set.
cc.my_pythonapi(s, callback)
#once done you are going to compile all params.
compile_ret = cc.compile_params(s,len(<params>));

subtitleTextRank

A script developed during Google Code In 2017 for CCExtractor Development to summarize an article.

Requirements:

  • Python

Installation:

pip install pysrt pip install -u Gensim pip install topia.termextract

-----BEGIN PGP PUBLIC KEY BLOCK-----
mQENBFsC8zQBCADAEsxxe/edeIlHh/nWizobcWGOGlEiQpKm2d6TQ7LMhC4Ph3El
hR8qflh5qS8CPng3qEqwrG23HgUlbC8+CB/brg3TWE8T7EqRO6bzfLzYzYpJUxsv
HUPrc347Cjf7rNyFxWS5s7uJlmPIkysjUYnLOE7dlxCn7U2qV8k9APsfHe4EBJXG
aJESkXl3Hna/PxoDrM0WW6bertCyYNGaI+/VdWoh1nXf101/ChX/311NaK7JVqLj
55ejwc28WQ16Khd5USIVyDvOvgvFei1aJgNEPNhYAw8+6PSqoXCUscbGtjyMlb2h
JGgXB9scj22CyvFgoolu157efYp9TS1dw07vABEBAAG0K01hdGVqIFBsYXZldnNr
aSA8bWF0ZWoucGxhdmV2c2tpQGdtYWlsLmNvbT6JAVQEEwEIAD4WIQSZd42urvY8
wJ//C5T3/vydk3XTigUCWwLzNAIbAwUJA8JnAAULCQgHAgYVCgkICwIEFgIDAQIe