Skip to content

Instantly share code, notes, and snippets.

View nrubel's full-sized avatar

Nasir Uddin nrubel

View GitHub Profile
@nrubel
nrubel / README.md
Created May 18, 2023 08:20 — forked from lopspower/README.md
Hexadecimal color code for transparency

Hexadecimal color code for transparency

Twitter

How to set transparency with hex value ?

For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.

Download This sample on Google Play Store

@nrubel
nrubel / basic-carousel-by-react.js
Created March 20, 2023 11:08
Very basic react carousel
@nrubel
nrubel / gist:19066ee2f3782274fea4a140fba4e5dd
Last active February 23, 2023 02:18
Install nvm - Most simply
brew update
brew install nvm
mkdir ~/.nvm
echo "export NVM_DIR=~/.nvm\nsource \$(brew --prefix nvm)/nvm.sh" >> .zshrc
source ~/.zshrc
@nrubel
nrubel / nextjs-deploy.md
Created November 21, 2022 18:06 — forked from jjcodes78/nextjs-deploy.md
Deploying NEXTJS site with nginx + pm2

How to setup next.js app on nginx with letsencrypt

next.js, nginx, reverse-proxy, ssl

1. Install nginx and letsencrypt

$ sudo apt-get update
$ sudo apt-get install nginx letsencrypt

Also enable nginx in ufw

[
"Dhaka",
"Faridpur",
"Gazipur",
"Gopalganj",
"Jamalpur",
"Kishoreganj",
"Madaripur",
"Manikganj",
"Munshiganj",
@nrubel
nrubel / env_bash_r.md
Last active June 23, 2020 10:17
env: bash\r: No such file or directory

Ok, here is how I fixed the issue,
I had to convert all files in the project directory:

Mac

brew install dos2unix # Installs dos2unix Mac
find . -type f -exec dos2unix {} \; # recursively removes windows related stuff

List<Timezone> timezones = [
Timezone(
value: "Dateline Standard Time",
abbr: "DST",
offset: -12,
isdst: false,
text: "(UTC-12:00) International Date Line West",
utc: ["Etc/GMT+12"],
),
Timezone(
List<Timezone> timezones = [
Timezone(
value: "Dateline Standard Time",
abbr: "DST",
offset: -12,
isdst: false,
text: "(UTC-12:00) International Date Line West",
utc: ["Etc/GMT+12"],
),
Timezone(
List countries = [
Country("Afghanistan", "AF"),
Country("Åland Islands", "AX"),
Country("Albania", "AL"),
Country("Algeria", "DZ"),
Country("American Samoa", "AS"),
Country("AndorrA", "AD"),
Country("Angola", "AO"),
Country("Anguilla", "AI"),
Country("Antarctica", "AQ"),
@nrubel
nrubel / README.md
Created October 8, 2018 17:32 — forked from joyrexus/README.md
Vanilla JS equivalents of jQuery methods

Sans jQuery

Events

// jQuery
$(document).ready(function() {
  // code
})