const winLogger = require('@utils/winston')
winLogger.info(`your message`)
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
// its looks like a '.let' in kotlin , awesome !, dart | |
extension ObjectExt<T> on T { | |
R let<R>(R Function(T) x) => x(this); | |
} | |
// for example | |
/** | |
* we have nested json object for example data --> user --> | |
*/ |
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
void main() { | |
for (int i = 0; i < 5; i++) { | |
print('hello ${i + 1}'); | |
} | |
// test | |
} | |
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.content.ContentUris | |
import android.content.Context | |
import android.database.Cursor | |
import android.net.Uri | |
import android.os.Build | |
import android.os.Environment | |
import android.provider.DocumentsContract | |
import android.provider.MediaStore | |
import android.util.Log | |
import java.lang.Exception |
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.content.ContentUris | |
import android.content.Context | |
import android.database.Cursor | |
import android.net.Uri | |
import android.os.Build | |
import android.os.Environment | |
import android.provider.DocumentsContract | |
import android.provider.MediaStore | |
class URIPathHelper { |
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
Filter Name : Disturb Debug Physical Device | |
Log Tag : | |
Log Message : ^(?!(processMotionEvent|dispatchPointerEvent|focused app window|processKeyEvent KeyEvent)) | |
Package Name : | |
PID | |
Log Level : Debug |
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
panic(cpu 5 caller 0xfffffe0015678af0): "FED err (L1C I-side data parity) on P-core: FAR=0x127e5dce8 FED_ERR_STS=0xf01fe00147b9d40 MMU_ERR_STS=0 ErrDet_Addr: VA=0x1fe00147b9d40" | |
Debugger message: panic | |
Memory ID: 0xff | |
OS release type: User | |
OS version: 20G165 | |
Kernel version: Darwin Kernel Version 20.6.0: Mon Aug 30 06:12:20 PDT 2021; root:xnu-7195.141.6~3/RELEASE_ARM64_T8101 | |
Fileset Kernelcache UUID: 6304A06696A657F4CF48CC569B129642 | |
Kernel UUID: DA16DC13-5845-3638-9BB4-B14F9AC08E55 | |
iBoot version: iBoot-6723.140.2 | |
secure boot?: YES |
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
DELIMITER $$ | |
DROP TRIGGER IF EXISTS `auto_number`$$ | |
CREATE TRIGGER `auto_number` BEFORE INSERT on users | |
FOR EACH ROW BEGIN | |
SET new.auto_number = CONCAT(new.id, LEFT(UUID(), 8)); | |
END$$ | |
DELIMITER ; |
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
// https://github.com/yogithesymbian/Kotlin-Setup-Starterpackjelly-2021 | |
// model viemodel viewmodelfacotry interface livedata | |
// soon will publish | |
// (File Header.java) | |
/** | |
* Android Studio Arctic Fox | 2020.3.1 Patch 3 | |
* Build #AI-203.7717.56.2031.7784292, built on October 1, 2021 | |
* Runtime version: 11.0.10+0-b96-7281165 x86_64 | |
* VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. | |
* macOS 11.6 |
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
{ | |
{".3gp", "video/3gpp"}, | |
{".torrent","application/x-bittorrent"}, | |
{".kml", "application/vnd.google-earth.kml+xml"}, | |
{".gpx", "application/gpx+xml"}, | |
{".csv", "application/vnd.ms-excel"}, | |
{".apk", "application/vnd.android.package-archive"}, | |
{".asf", "video/x-ms-asf"}, | |
{".avi", "video/x-msvideo"}, | |
{".bin", "application/octet-stream"}, |