Skip to content

Instantly share code, notes, and snippets.

View mrpmohiburrahman's full-sized avatar
🎯
Focusing

MD. MOHIBUR RAHMAN mrpmohiburrahman

🎯
Focusing
View GitHub Profile
@mrpmohiburrahman
mrpmohiburrahman / knew.md
Created October 8, 2024 12:57 — forked from nandorojo/knew.md
What I wish I knew when I started with Expo Web, React Navigation & Next.js

I started using React Native in September 2018. I always forget some things when I build new apps, so I'll keep track of the gotchas on this post.

Some topics, such as navigation, will be fundamental to how I think about apps. Others, will be one-line helpers that make apps work more smoothly.

It's gotten to the point where I find my own answers from 6 months before on certain Github issues.

I'll keep adding over time as I think of more. If anyone thinks these topics would be useful, let me know and I'll elaborate.

I have made libraries to address a number of the topics here, from navigation to design.

@mrpmohiburrahman
mrpmohiburrahman / nvim-tree.lua
Created July 29, 2024 13:50
nvim-tree configuration in nvchad
local map = vim.keymap.set
-- Function to set highlight groups
local function set_highlights()
vim.api.nvim_set_hl(0, "NvimTreeIndentMarker", {
fg = "#8891B1"
})
vim.api.nvim_set_hl(0, "NvimTreeStatusLine", {
bg = "#1e222a"
})
@mrpmohiburrahman
mrpmohiburrahman / karabiner-config in goku
Created March 14, 2024 00:25
Facing lag when typing.
{:profiles
{:goku {:default true
:alone 80 ; hold for .. ms to register single tap
:held 50 ; TODO: not sure what it's for
:delay 0 ; time after which the key press is delayed
:sim 30}} ; keys need to be pressed within this threshold to be considered simultaneous
:templates {:alfred "osascript -e 'tell application id \"com.runningwithcrayons.Alfred\" to run trigger \"%s\" in workflow \"%s\" with argument \"%s\"'"
:km "osascript -e 'tell application \"Keyboard Maestro Engine\" to do script \"%s\"'"
:open "open -a \"%s\""
}
{
"@react-native-assets/slider":"slider",
"react-native-logs": "miscellaneous",
"react-native-gl-image-filters": "Image Filters",
"react-native-unicons": "Icon Libraries",
"pesdk-react-native": "Photo Editing SDK Integration",
"vesdk-react-native": "Video Editing SDK Integration",
"react-native-image-crop-picker": "Image Picker & Cropper",
"react-native-resegmented-control": "Segmented Control",
"react-native-scales": "Responsive Design Tools",
{
"slider": [
"@react-native-assets/slider"
],
"miscellaneous": [
"react-native-logs",
"pinar"
],
"Image Filters": [
"react-native-gl-image-filters"
npm i -g eslint
npm i -g prettier
eslint --init
? How would you like to configure ESLint? Use a popular style guide
? Which style guide do you want to follow? Airbnb (https://github.com/airbnb/javascript)
? Do you use React? Yes
? What format do you want your config file to be in? JSON
Checking peerDependencies of eslint-config-airbnb@latest
@mrpmohiburrahman
mrpmohiburrahman / VSCodeSettings.md
Created September 14, 2021 15:41 — forked from shukerullah/VSCodeSettings.md
Visual Studio Code settings for React Native

React Native VSCode Settings

Visual Studio Code is a code editor redefined and optimized for building and debugging modern web and cloud applications. Visual Studio Code is free and available on your favorite platform - Linux, Mac OSX, and Windows.

This module will install visual studio code essential extensions and settings for react-native.

Install

npm install --save-dev react-native-vscode-settings
@mrpmohiburrahman
mrpmohiburrahman / david-shariff-js-quiz-explanation.md
Created August 28, 2021 06:29 — forked from jesspoemape/david-shariff-js-quiz-explanation.md
An explanation of David Shariff's Javascript quiz
@mrpmohiburrahman
mrpmohiburrahman / vpn.md
Created October 23, 2020 10:25 — forked from joepie91/vpn.md
Don't use VPN services.

Don't use VPN services.

No, seriously, don't. You're probably reading this because you've asked what VPN service to use, and this is the answer.

Note: The content in this post does not apply to using VPN for their intended purpose; that is, as a virtual private (internal) network. It only applies to using it as a glorified proxy, which is what every third-party "VPN provider" does.

  • A Russian translation of this article can be found here, contributed by Timur Demin.
  • A Turkish translation can be found here, contributed by agyild.
  • There's also this article about VPN services, which is honestly better written (and has more cat pictures!) than my article.
@mrpmohiburrahman
mrpmohiburrahman / cygwin-mirror-speed.py
Created October 6, 2018 14:20 — forked from ushkinaz/cygwin-mirror-speed.py
Tests speed of http mirrors of cygwin
#!/usr/bin/env python3
"""
Tests http mirrors of cygwin
"""
import random
import time
from urllib.request import urlopen
import sys
__author__ = 'Dmitry Sidorenko'