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 json | |
import os | |
import oci | |
from tinydb import Storage | |
''' | |
OCIStorage is custom Storage for TinyDB to allow | |
store JSON DB files in OCI Object Storage service. | |
Create a TinyDB instance using the following example: |
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
npx degit solidjs/templates/ts mySolidTest | |
cd mySolidTest | |
rm pnpm-lock.yaml | |
bun install | |
bun start |
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 DetectiPhoneXOrGreater { | |
static bool isiPhoneXOrGreater(context) { | |
if (Platform.isAndroid) { | |
return false; | |
} | |
else if (Platform.isIOS) { | |
double height = MediaQuery.of(context).size.height; | |
if (height >= 812.0) return true; | |
} | |
return false; |
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 DebugMode { | |
static bool get isInDebugMode { | |
bool inDebugMode = false; | |
assert(inDebugMode = true); | |
return inDebugMode; | |
} | |
} |
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 'package:flutter/material.dart'; | |
import '../utils/util.dart'; | |
import '../controllers/push_notifications.dart'; | |
class MainPage extends StatefulWidget { | |
@override | |
_MainPageState createState() => _MainPageState(); | |
} | |
class _MainPageState extends State<MainPage> { |