- "Introduction to Bluetooth Low Energy" by Adafruit.
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
| /* | |
| * Copyright 2026 Kyriakos Georgiopoulos | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
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 <NeoPixelBus.h> | |
| const static uint16_t PixelCount = 400; | |
| const static uint8_t PixelPin = 13; | |
| class NeoBitsSpeedWs2812xCurtain : public NeoBitsSpeedBase | |
| { | |
| public: | |
| const static uint16_t BitSendTimeNs = 1425; | |
| const static uint16_t ResetTimeUs = 300; |
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 android.app.Presentation | |
| import android.content.Context | |
| import android.graphics.Bitmap | |
| import android.graphics.Picture | |
| import android.graphics.SurfaceTexture | |
| import android.hardware.display.DisplayManager | |
| import android.view.Display | |
| import android.view.Surface | |
| import android.view.ViewGroup | |
| import androidx.compose.foundation.layout.Box |
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
| class DemoModeEnabler { | |
| fun enable() { | |
| executeShellCommand("settings put global sysui_demo_allowed 1") | |
| sendCommand("exit") | |
| sendCommand("enter") | |
| sendCommand("notifications", "visible" to "false") | |
| sendCommand("network", "wifi" to "hide") | |
| sendCommand("battery", "level" to "100", "plugged" to "false") | |
| sendCommand("clock", "hhmm" to "1000") |
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
| class $NAME$ extends StatefulWidget { | |
| $NAME$({Key key, this.title}) : super(key: key); | |
| static const String routeName = "/$NAME$"; | |
| final String title; | |
| @override | |
| _$NAME$State createState() => new _$NAME$State(); | |
| } |
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
| #EXTM3U | |
| #EXTINF:-1,Digitally Imported - Ambient | |
| http://pub1.diforfree.org:8000/di_ambient_hi | |
| #EXTINF:-1,Digitally Imported - Big Room House | |
| http://pub1.diforfree.org:8000/di_bigroomhouse_hi | |
| #EXTINF:-1,Digitally Imported - Breaks | |
| http://pub1.diforfree.org:8000/di_breaks_hi |
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
| func getQueryStringParameter(url: String, param: String) -> String? { | |
| let url = NSURLComponents(string: url)! | |
| return | |
| (url.queryItems? as [NSURLQueryItem]) | |
| .filter({ (item) in item.name == param }).first? | |
| .value() | |
| } |
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
| #!/usr/bin/ruby | |
| require 'fileutils' | |
| require 'RMagick' | |
| require 'slop' | |
| require 'builder' | |
| opts = Slop.new do | |
| banner "gif2animdraw [options]\n" | |
| on :i, :input=, 'path to animated GIF (or directory of GIFs)', :required => true | |
| on :o, :outdir=, 'path to root output directory', :required => true |
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
| /** | |
| * This is how we can start OldDiscoverActivity | |
| * This is possible because OldDiscoverActivity has an Intent-Filter in the AndroidManifest.XML | |
| */ | |
| Intent i = new Intent(); | |
| //i.setClassName("tv.ouya.console", "tv.ouya.console.launcher.store.adapter.DiscoverActivity"); | |
| i.setClassName("tv.ouya.console", "tv.ouya.console.launcher.store.OldDiscoverActivity"); | |
| try { | |
| startActivity(i); | |
| } catch (Exception e) { |
NewerOlder