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 struct | |
import ubluetooth as bt | |
from micropython import const | |
MANUFACTURER_ID = const(0x004C) | |
DEVICE_TYPE = const(0x02) | |
DATA_LENGTH = const(0x15) | |
BR_EDR_NOT_SUPPORTED = const(0x04) | |
FLAG_BROADCAST = const(0x01) | |
MANUFACTURER_DATA = const(0xFF) |
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
// ESP32 Tilt Repeater | |
// By David Gray | |
#include "BLEDevice.h" | |
#include "BLEBeacon.h" | |
#include "esp_deep_sleep.h" | |
// User Settings | |
int SCAN_TIME = 5; // Duration to scan for bluetooth devices (in seconds). | |
int TIME_TO_SLEEP = 60; // Duration ESP32 will go to sleep between scans (in seconds). |
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
module 30fan() { | |
difference() | |
{ | |
linear_extrude(height=11, center = true, convexity = 4, twist = 0) | |
difference() | |
{ | |
square([30,30],center=true); | |
difference() | |
{ | |
circle(r=28.5/2,center=true); |
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
$fn=120; | |
spindle = 53; | |
vacuum = 37.2; | |
//%color("orange") rotate([0, 0, 90]) import("adapter_1_v1_0.stl"); | |
translate([0, 0, 10]) color("red") { | |
%cylinder(r=spindle/2, h=90); | |
%translate([0, 0, -spindle]) cylinder(r=19/2, h=52); |
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
padding = 0.3; | |
module bearing() { | |
cylinder(r=8+padding, h=12, center=true); | |
translate([0, 0, 6.5]) cylinder(r1=8+padding, r2=6, h=1, center=true); | |
} | |
module main() { | |
difference() { | |
union() { |
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
@app.route('/xhr/library_remove/<media>/<int:id>') | |
@requires_auth | |
def xhr_clear_playlist(media, id): | |
logger.log('CONTROLS :: Removing %s from XBMC library' % media, 'INFO') | |
xbmc = jsonrpclib.Server(server_api_address()) | |
try: | |
if media == 'movie': | |
xbmc.VideoLibrary.RemoveMovie(movieid=id) | |
elif media == 'tvshow': |
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
<!-- Joystick Name: OUYA Game Controller --> | |
<!-- Button Mappings in Windows: --> | |
<!-- --> | |
<!-- ID Button --> | |
<!-- --> | |
<!-- 1 O --> | |
<!-- 2 U --> | |
<!-- 3 Y --> | |
<!-- 4 A --> |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<addon id="plugin.video.rate_test" version="0.0.1" name="Test Trakt Ratings" provider-name="N3MIS15"> | |
<requires> | |
<import addon="xbmc.python" version="2.1.0"/> | |
<import addon="script.module.xbmcswift2" version="2.4.0" /> | |
</requires> | |
<extension point="xbmc.python.pluginsource" library="plugin.py"> | |
<provides>video</provides> | |
</extension> | |
<extension point="xbmc.addon.metadata"> |
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 | |
# | |
# Copyright (C) 2013 Garrett Brown | |
# See Copyright Notice in rominfo.py | |
import testutils | |
import unittest | |
import os | |
import json |
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 | |
######################################################################### | |
# Boblight config generator created by David Gray (N3MIS15) # | |
# Positioning is calculated starting at the middle bottom of screen # | |
# Only has barebone settings, any other setting should be set manually # | |
# Tested with adafruit 8806 LEDs and adalight # | |
######################################################################### |
NewerOlder