Skip to content

Instantly share code, notes, and snippets.

View ni8mr's full-sized avatar
🇧🇩
Busy in concept building, guiding team and development

Noor Faizur Reza ni8mr

🇧🇩
Busy in concept building, guiding team and development
View GitHub Profile
function en2bn(input){
var en = ["1","2","3","4","5","6","7","8","9","0"];
var bn = ["১","২","৩","৪","৫","৬","৭","৮","৯","০"];
input = input.toString();
for( var i = 0; i <= 10; i++)
{
input = input.replace( en[i] , bn[i] );
}
return input;
}
@ni8mr
ni8mr / bootsrap_class_list
Created May 31, 2016 10:41 — forked from geksilla/bootsrap_class_list
Bootstrap css class list
.navbar
.caret
.label
.table
.img-responsive
.img-rounded
.img-thumbnail
.img-circle
.sr-only
.lead
@ni8mr
ni8mr / frontendDevlopmentBookmarks.md
Created June 11, 2016 05:19 — forked from dypsilon/frontendDevlopmentBookmarks.md
A badass list of frontend development resources I collected over time.
@ni8mr
ni8mr / hello.js
Last active November 9, 2016 08:15
// Initial "Hello world" app using NodeJS
var http = require('http');
http.createServer(function(req, res){
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('Hello World\n');
}).listen(8080, 'localhost');
// Initial "Hello world" app using express.js
var express = require('express')
@ni8mr
ni8mr / gist:eee2da1bebcd7c783f77dcb23372dc07
Created February 14, 2018 08:44
Remove unpushed commit in Git

Delete the most recent commit:

git reset --hard HEAD~1

Delete the most recent commit, without destroying the work you've done:

git reset --soft HEAD~1

@ni8mr
ni8mr / ReadMe.txt
Created March 6, 2018 09:10 — forked from vubon/ReadMe.txt
Install PostgreSQL in Ubuntu 16.04
#Update your apps by below command and install
$ sudo apt-get update
$ sudo apt-get install postgresql postgresql-contrib
#Connect to PostgreSQL
$ sudo su - postgres
$ psql
#Checking connection with user information
sudo add-apt-repository ppa:openjdk-r/ppa
sudo apt-get update
sudo apt-get install openjdk-7-jre
# install openjdk
sudo apt-get install openjdk-7-jdk
# download android sdk
wget http://dl.google.com/android/android-sdk_r24.2-linux.tgz
@ni8mr
ni8mr / datepicker.md
Created December 11, 2018 09:54 — forked from zmts/datepicker.md
Vuejs-datepicker disable dates
@ni8mr
ni8mr / nvmCommands.js
Created January 7, 2020 04:54 — forked from chranderson/nvmCommands.js
Useful NVM commands
// check version
node -v || node --version
// list installed versions of node (via nvm)
nvm ls
// install specific version of node
nvm install 6.9.2
// set default version of node
@ni8mr
ni8mr / msconvert.js
Created April 12, 2021 08:58 — forked from remino/msconvert.js
JavaScript: Convert milliseconds to object with days, hours, minutes, and seconds
function convertMS(ms) {
var d, h, m, s;
s = Math.floor(ms / 1000);
m = Math.floor(s / 60);
s = s % 60;
h = Math.floor(m / 60);
m = m % 60;
d = Math.floor(h / 24);
h = h % 24;
return { d: d, h: h, m: m, s: s };