This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="https://cdnjs.cloudflare.com/ajax/libs/paho-mqtt/1.0.1/mqttws31.js" type="text/javascript"></script> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> | |
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-PsH8R72JQ3SOdhVi3uxftmaW6Vc51MKb0q5P2rRUpPvrszuE4W1povHYgTpBfshb" crossorigin="anonymous"> | |
<style type="text/css"> | |
.card { | |
margin-right: 10px; | |
} | |
</style> | |
<div class="container"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am sspssp on github. | |
* I am kekskurse (https://keybase.io/kekskurse) on keybase. | |
* I have a public key ASCgiVQp1lhF3YkjSwe6BUkrFS37aGVtM941vLYhvhdH5wo | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
print(os.environ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
while True: | |
print("Jap") | |
time.sleep(5) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Authorization.ino | |
* | |
* Created on: 09.12.2015 | |
* | |
*/ | |
#include <Arduino.h> | |
#include <ArduinoJson.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import time | |
import serial | |
ser = serial.Serial( | |
port='/dev/ttyAMA0', | |
baudrate = 9600, | |
parity=serial.PARITY_NONE, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ Point | |
, View | |
, Range | |
} = require 'atom' | |
path = require 'path' | |
fs = require 'fs' | |
{spawn} = require 'child_process' | |
module.exports = |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import twitter | |
class DM: | |
def __init__(self): | |
self.api = twitter.Api(consumer_key='', consumer_secret='', access_token_key='', access_token_secret='') | |
def getLastSinceID(self): | |
dms = self.api.GetDirectMessages(count=1) | |
return dms[0].id | |
def getFollowers(self): | |
follower = self.api.GetFollowers() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import logging | |
import threading | |
from sleekxmpp import ClientXMPP | |
from sleekxmpp.exceptions import IqError, IqTimeout | |
class XMPP(threading.Thread): | |
def __init__(self, jid, pw, twitterName): | |
self.jid = jid |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sqlite3 | |
import os.path | |
import time | |
class DB: | |
def __init__(self): | |
install = False | |
if os.path.isfile("db.sqlite") == False: | |
install = True | |
conn = sqlite3.connect('db.sqlite') |
NewerOlder