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 python3 | |
# -*- coding: utf-8 -*- | |
import os | |
# import sys | |
from cx_Freeze import setup, Executable | |
def files_under_dir(dir_name): |
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
from socket import socket, AF_INET, SOCK_DGRAM | |
from dtls import do_patch | |
import requests | |
import binascii | |
import sslpsk | |
import json | |
BRIDGE_IP = 'your_bridge_ip' | |
VALID_API_VERSION = 1.22 | |
USERNAME = 'your_hue_username' |
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
class SWLayer: CALayer { | |
@NSManaged var currentX: CGFloat | |
override init() { | |
super.init() | |
} | |
override init(layer: Any) { | |
super.init(layer: layer) | |
if let layer = layer as? SWLayer { |