This file contains hidden or 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
******************************************************************************* | |
淏都錶狟ㄛ垀衄竘褐飲祥迵GND VCC 麼IO傻繚ㄛ笢Pin 9ㄛ11ㄛ26ㄛ27祥統迵傻繚潰聆 | |
眕狟竘褐淏都 | |
0 1 2 3 4 5 6 7 8 12 13 14 15 16 17 23 24 25 28 29 30 | |
眕狟竘褐迵GND傻繚 | |
10 18 19 20 21 22 | |
眕狟竘褐迵IO奪褐傻繚 |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<ui version="4.0"> | |
<class>MainWindow</class> | |
<widget class="QMainWindow" name="MainWindow"> | |
<property name="geometry"> | |
<rect> | |
<x>0</x> | |
<y>0</y> | |
<width>724</width> | |
<height>436</height> |
This file contains hidden or 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
+CENG: 0,"0522,27,00,255,06,22,2ab4,05,00,1159,255" | |
+CENG: 1,"0710,25,30,0bbc,255,06,FFFd" | |
+CENG: 2,"0706,20,15,0bb1,255,06,FFFd" | |
+CENG: 3,"0708,17,24,0bb3,255,06,FFFd" | |
+CENG: 4,"0540,10,59,0bba,255,06,FFFd" |
This file contains hidden or 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
#include "OneWireSlave.h" | |
// uncomment this line to enable sending messages along with errors (but takes more program memory) | |
//#define ERROR_MESSAGES | |
#ifdef ERROR_MESSAGES | |
#define ERROR(msg) error_(msg) | |
#else | |
#define ERROR(msg) error_(0) | |
#endif |
This file contains hidden or 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
# info from https://github.com/shabunin/cf-sonytv/blob/master/scripts/SonyTV.js | |
#https://wolstenhol.me/blog/using-tasker-autovoice-yatse-and-xbmc | |
#http://mendelonline.be/sony/sony.txt | |
#https://github.com/breunigs/bravia-auth-and-remote/blob/master/send_command.sh | |
from wakeonlan import wol | |
import requests, requests.utils, pickle | |
import base64 | |
import sys | |
import os.path |
This file contains hidden or 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
%% Matlabe example | |
%%Animated cycloid curve | |
teta1 = 0:1:120/3-2; | |
a=0:0.01:2*pi; | |
ca=0:0.01:2*pi; | |
%first frame | |
R=10; | |
al = (pi/3+pi/20); |
This file contains hidden or 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 pprint | |
TAB = '\t' | |
class LazyTree(object): | |
def __init__(self): | |
self.index = 0 | |
self.types = {} | |
self.path = [] | |
self.temp_path = [] | |
def __getattr__(self, n): |
This file contains hidden or 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 Tkinter as tk | |
import math | |
import time | |
FILE = 'map.txt' | |
WIDTH = 400 | |
HEIGHT = 400 | |
BDIV = 80 | |
BWIDTH = int(WIDTH/BDIV) |
This file contains hidden or 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
data = read_mixed_csv('tube19.csv', ','); | |
dt = datenum(strcat(data(:,1), {' '}, data(:,2)), 'dd.mm.yyyy HH:MM'); | |
M = [dt str2double(data(:,3))]; | |
plot(M(:,1), M(:,2)) | |
NumTicks = 10; | |
L = get(gca,'XLim'); | |
set(gca,'XTick',linspace(L(1),L(2),NumTicks)) | |
datetick('x',19,'keeplimits', 'keepticks') | |
% use this: minX = datenum(2009, 12, 31) for scale |