Skip to content

Instantly share code, notes, and snippets.

View ijogendrajat's full-sized avatar
:octocat:
learning

Jogendra Singh ijogendrajat

:octocat:
learning
View GitHub Profile
@ijogendrajat
ijogendrajat / healthcare-explained
Created May 28, 2024 06:03
healthcare-explained
| Feature | Korea | Japan | India |
| --------------- | ------------------------------------------------------------------ | ----------------------------------------------------------------- | ------------------------------------------------------------------- |
| Funding | Government funded | Government and social insurance funded | Government and private funded |
| Strengths | Advanced technology, strong emphasis on preventative care | Universal coverage, emphasis on quality | Large network of providers, affordability for some |
| Type of System | Universal healthcare (single-payer) | Universal healthcare (socia
@ijogendrajat
ijogendrajat / smallcaseErrorHandle.dart
Created April 16, 2024 06:13
Handle Transaction Error
void handleSdkResponse(String sdkResponse) {
if (sdkResponse.isNotEmpty) {
try {
final responseJson = jsonDecode(sdkResponse);
if (responseJson['success'] == false) {
// Implement your ui part here
final errorCode = responseJson['errorCode'].toString();
final errorMessage = responseJson['error'].toString();
final transactionId = responseJson['transaction'];
print('Error: $errorCode - $errorMessage (Transaction: $transactionId)');
@ijogendrajat
ijogendrajat / mercurial_x_git.md
Created April 13, 2024 06:32
Mercurial vs Git: Top 5 Differences

Mercurial vs Git: Top 5 Differences

Feature Mercurial Git
Popularity Lower market share (around 2%) Higher market share (over 80%)
Workflow Complexity Generally considered easier to learn Steeper learning curve due to internal model
Branching Centralized branching model Decentralized branching model
Merging More complex merge process Generally considered easier to merge
Community & Support Smaller community, but still well-supported Larger, more active community with vast resources
@ijogendrajat
ijogendrajat / apn_state_table.md
Last active February 10, 2024 09:19
apn_state_table
APN State Discription
Foreground Notifications are immediately delivered to your app and displayed to the user.
Background Notifications are queued by APNs and delivered when the app enters the foreground or is woken up for background tasks.
Terminated Notifications are stored on the device until the app is launched again. You cannot directly interact with them, but you can retrieve their payload when the app opens.
### Keybase proof
I hereby claim:
* I am ijogendrajat on github.
* I am ijogendrajat (https://keybase.io/ijogendrajat) on keybase.
* I have a public key ASDczWdoAxqLfrjQQWkYj7C57DoilZVLRmDqO1kPEYMDywo
To claim this, I am signing this object: