Skip to content

Instantly share code, notes, and snippets.

View iqfareez's full-sized avatar
🎯
Focusing

Fareez Iqmal iqfareez

🎯
Focusing
View GitHub Profile
@idriszmy
idriszmy / code.py
Last active January 16, 2024 08:07
Telegram Bot using CircuitPython on Raspberry Pi Pico W
"""
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
@encikpulasan
encikpulasan / device_info_utils.dart
Created June 25, 2021 05:57
Flutter Device Info Utility Helper
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;
@vinicioslc
vinicioslc / flutter-android-cd.yml
Last active May 10, 2024 22:01
Build flutter releases in github actions for production only android for while.
# 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:
@taciomedeiros
taciomedeiros / isolate_handler_example.dart
Created August 16, 2020 12:11
It is an example of how to use flutterLocalnotifications to schedule a lot of notifications with isolateHandler
final IsolateHandler isolateHandler = IsolateHandler();
void scheduleNotificationsIsolate(String _reminders) async {
await new Future.delayed(new Duration(milliseconds: 500));
// ... (describe settings)
flutterLocalNotificationsPlugin.initialize(
settings,
onSelectNotification: onSelectNotification,
);
@ruzrobert
ruzrobert / Vibration.cs
Last active May 9, 2024 10:34
Android Vibration for Unity 3D. Supports all API: 1 - 29 (auto detect), Amplitudes, Predefined Effects, both Legacy and >=26 APIs.
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
@aVolpe
aVolpe / Vibration.cs
Created October 16, 2014 02:45
Vibration for Unity3d with Android native Call, with fallback to Handlheld.Vibrate()
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");