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
| public class HashedPaletteComparator implements Comparator<String> { | |
| public static final HashedPaletteComparator INSTANCE = new HashedPaletteComparator(); | |
| private static final long FNV1_64_INIT = 0xcbf29ce484222325L; | |
| private static final long FNV1_PRIME_64 = 1099511628211L; | |
| @Override | |
| public int compare(String o1, String o2) { | |
| byte[] bytes1 = o1.getBytes(StandardCharsets.UTF_8); | |
| byte[] bytes2 = o2.getBytes(StandardCharsets.UTF_8); |
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
| """ | |
| Sign in to Xbox Live with OAUTH2 | |
| 1. Go to https://portal.azure.com/#blade/Microsoft_AAD_RegisteredApps/ApplicationsListBlade | |
| 2. Register new app ("+ New registration") | |
| 2.1. Enter a name for your app | |
| 2.2. Set "Supported account types" to "Personal Microsoft accounts only" | |
| 2.3. Click register | |
| 2.4. Choose "Redirect URIs" -> "Add a Redirect URI" | |
| 2.5. Click "Add a platform" -> "Mobile and desktop applications" |
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
| DeviceInfo(softwareRevision, isOn, | |
| SceneLightState(color, powerOnBehavior, deviceInfo | |
| Light(id, | |
| Capabilities(dimmable, customState | |
| PowerOnBehavior(option | |
| hueplay, huebloom, hueiris, huelightstrip, huego, plug, bollard, wallspot, groundspot, flexiblelamp, wallshade, walllantern | |
| [ea:44:13:bd:db:59] Service [b8843add-0000-4aa1-8794-c3f462030bda] Unknown, ble_firmware_update? | |
| [ea:44:13:bd:db:59] Characteristic [b8843add-0004-4aa1-8794-c3f462030bda] |
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
| # -*- coding: utf-8 -*- | |
| import wifi | |
| def Search(): | |
| wifilist = [] | |
| cells = wifi.Cell.all('wlan0') |