1,129 karma · joined June 26, 2014
https://svgplayground.com/#encodedsvg=PHN2ZyB3aWR0aD0iMTAwIi...
When I was building SwiftStore - a KV store [1] for iOS, I went with LevelDB as the choice for the underlying database.
LevelDB because it's written in c++ and used widely as an embedded database. Integrating it as a static library in Objective-C is also fairly straight forward.
The bridge creates an interface between an embedded webserver to react native.
Things to note:
1. Always dispatch bridging methods to their own threads. On IOS you can do this via. dispatch_async. On Android, you can utilise native threads or some kind of task management library. I like Bolts [2].
2. Always create bridging methods that resolve promises. This makes it easy to utilise async / await paradigm on the JS side.
[0] Android: https://github.com/hemantasapkota/react-native-web-server/tr...
[1] IOS: https://github.com/hemantasapkota/react-native-web-server/tr...
Pretty excited to go through the course!!
[1]: https://www.educative.io/collection/5687753853370368/5707702...
Caps -> Control
Control -> Command
Perfect config for TMUX + VIM.
For losing weight. If you're obese to begin with, this regime will give very good results at the beginning which also helps with the motivation. Note: Fasting + Strength training is superior to justing fasting. Why ? Because fasting decreases your metabolism. Strength training does the opposite.
> It does seem counterintuitive to everything I have read and heard throughout my entire life.
Yes, I'd say so.
> What sort of improvements, if any, have you noticed from adopting this style of eating versus the standard 3-4 meals per day?
1 ) Increased mental alertness - I've noticed how quickly the alertness disappears once food enters my body & digestion begins. Not sure If I should attribute this to increased insulin sensitivity or something else.
2 ) Increased productivity - It's amazing how much you can get done when you're not thinking of what & when to eat. I spend most of time writing code, learning new guitar riffs, & planning my workouts.
3 ) Prolonged workday: Related to (2). You can effectively prolong your daily work hours easily from the standard 8, up to 12 - 16 hours. This is because of (1) and (2). Heck you can also go 24 hours+.
4 ) Better quality sleep: On multi-day fasts (24+ hours), I get good quality sleep. I do believe they're of "good quality", because of an interesting effect I've noticed - you don't get the usual grogginess when you wake up. It's non-existent.
> A tactical question: Do you load up all of your daily calories in that one meal e.g. if your usual intake is 2500 per day, do you have all of that at once or do you eat less?
Yes - All calories in one meal. However, this is not optimal for muscle growth. For athletes, it'd be ideal to spread out protein intake across two meals, at the least.
This is what I sense when my fast crosses 18+ hours.
I believe they exited Nepal, not Tibet.
Underneath it's LevelDB.