Skip to content

Instantly share code, notes, and snippets.

Avatar

Kaan Akşit kunguz

View GitHub Profile
@kunguz
kunguz / HarvestLog.py
Created Nov 24, 2015
Way to record logs of Kivy to a different location on hard drive.
View HarvestLog.py
#!/usr/bin/python
# -*- coding: utf-8 -*-
__author__ = ('Kaan Akşit')
__version__ = '0.1'
# Importing necessary libraries.
try:
import sys,time,os,datetime,logging
from kivy.logger import Logger
@kunguz
kunguz / kernels.py
Created Dec 17, 2015
Here are some kernels I like to use for Machine Learning related projects.
View kernels.py
#!/usr/bin/python
# -*- coding: utf-8 -*-
__author__ = ('Kaan Akşit')
__version__ = '0.1'
# Importing necessary libraries.
try:
import sys,glob,time,copy
import numpy as np
View System report
SteamVR System Report created Tue Oct 10 16:52:53 2017
<Report>
SteamVR Version: 1507164278
SteamVR Date: 2017-10-04
Steam: Public
Steam Branch: beta
Steam AppID: 250820
Tracking: lighthouse
OS: Linux version 4.4.0-96-generic (buildd@lgw01-10) (gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.4) ) #119-Ubuntu SMP Tue Sep 12 14:59:54 UTC 2017
@kunguz
kunguz / androser.py
Last active Aug 25, 2018
Serial communication using pyjnius, Arduino Nano and USB-OTG
View androser.py
#!/usr/bin/python
# -*- coding: utf-8 -*-
__author__ = ('Kaan Akşit')
try:
import sys,time
from array import array
from jnius import autoclass
from jnius import cast
@kunguz
kunguz / dancing_bulb.py
Last active Jan 5, 2020
Dance of a Smart bulb with music
View dancing_bulb.py
'''
This is tested with an Ubuntu 19.10. I tested this script with %60 volume and a Bistee Smart WiFi Bulb E26 7W RGBW --> https://smile.amazon.com/gp/product/B07YDKD274/ref=ppx_yo_dt_b_asin_title_o00_s00?ie=UTF8&psc=1
(1) Assuming that you set the default input device on your machine as monitor of your soundcard (check input devices in `pavucontrol`).
(2) Assuming that you installed sounddevice, flux_led using pip3: sudo pip3 install sounddevice, flux_led .
(3) make sure that you set the ip address of your smart bulb correctly. Check ip_address line in this script.
(4) Simply run this script to make your light dance!
(5) If the light transition isn't good as you want, try playing with kd and kp variables in below.
'''
import sounddevice as sd
You can’t perform that action at this time.