Skip to content

Instantly share code, notes, and snippets.

View cosmicsarthak's full-sized avatar
💭
wanna change the world one pixel at a time! 🤯

Sarthak Mohanty cosmicsarthak

💭
wanna change the world one pixel at a time! 🤯
View GitHub Profile
@cosmicsarthak
cosmicsarthak / grokking_to_leetcode.md
Created December 27, 2022 08:45 — forked from tykurtz/grokking_to_leetcode.md
Grokking the coding interview equivalent leetcode problems

GROKKING NOTES

I liked the way Grokking the coding interview organized problems into learnable patterns. However, the course is expensive and the majority of the time the problems are copy-pasted from leetcode. As the explanations on leetcode are usually just as good, the course really boils down to being a glorified curated list of leetcode problems.

So below I made a list of leetcode problems that are as close to grokking problems as possible.

Pattern: Sliding Window

@cosmicsarthak
cosmicsarthak / dart_moralis_auth.dart
Created December 16, 2022 04:12 — forked from elkattan/dart_moralis_auth.dart
Moralis wallet authentication using flutter and Parse SDK
import 'dart:typed_data';
import 'package:parse_server_sdk_flutter/parse_server_sdk.dart';
import 'package:web3dart/crypto.dart';
import 'package:web3dart/web3dart.dart';
final Wallet? wallet = Wallet(); // User wallet should be initialized
authenticate() async {
if (wallet == null) {
throw Exception('Wallet is not initialized');
@cosmicsarthak
cosmicsarthak / Sync gh-pages + master branches
Created August 13, 2021 11:14 — forked from mandiwise/Sync gh-pages + master branches
Keep gh-pages up to date with a master branch
// Reference: http://lea.verou.me/2011/10/easily-keep-gh-pages-in-sync-with-master/
$ git add .
$ git status // to see what changes are going to be commited
$ git commit -m 'Some descriptive commit message'
$ git push origin master
$ git checkout gh-pages // go to the gh-pages branch
$ git rebase master // bring gh-pages up to date with master
$ git push origin gh-pages // commit the changes