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
""" | |
Telegram Bot using CircuitPython on Raspberry Pi Pico W | |
Items: | |
- Maker Pi Pico Mini | |
https://my.cytron.io/p-maker-pi-pico-mini-simplifying-projects-with-raspberry-pi-pico | |
- USB Micro B Cable | |
https://my.cytron.io/p-usb-micro-b-cable | |
CircuitPython Raspberry Pi Pico W |
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 'dart:io'; | |
import 'package:device_info_plus/device_info_plus.dart'; | |
class DeviceInfoUtils { | |
final DeviceInfoPlugin deviceInfo = DeviceInfoPlugin(); | |
/// Info available for both iOS & Android OS | |
String? deviceId; | |
String? deviceName; |
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
# This is a basic workflow to help you get started with Actions | |
name: CD Internal-Lane | |
# Controls when the action will run. Triggers the workflow on push or pull request | |
# events but only for the master branch | |
on: | |
push: | |
tags: | |
- "internal-v*.*.*" # on every version tag will build a new android artifact example: v3.1.2+6 | |
jobs: |
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
final IsolateHandler isolateHandler = IsolateHandler(); | |
void scheduleNotificationsIsolate(String _reminders) async { | |
await new Future.delayed(new Duration(milliseconds: 500)); | |
// ... (describe settings) | |
flutterLocalNotificationsPlugin.initialize( | |
settings, | |
onSelectNotification: onSelectNotification, | |
); |
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
using System.Diagnostics.CodeAnalysis; | |
using UnityEngine; | |
// Dont forget to add "using RDG;" to the top of your script! | |
namespace RDG | |
{ | |
/// <summary> | |
/// Class for controlling Vibration. Automatically initializes before scene is loaded. | |
/// </summary> | |
public static class Vibration |
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
using UnityEngine; | |
using System.Collections; | |
public static class Vibration | |
{ | |
#if UNITY_ANDROID && !UNITY_EDITOR | |
public static AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); | |
public static AndroidJavaObject currentActivity = unityPlayer.GetStatic<AndroidJavaObject>("currentActivity"); | |
public static AndroidJavaObject vibrator = currentActivity.Call<AndroidJavaObject>("getSystemService", "vibrator"); |