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
@mattlockyer
mattlockyer / conditional-json.js
Created June 19, 2019 15:25
Using spread syntax to conditionally add JSON key, value to object. Fetch example using POST and Authorization.
export const POST = (auth) => ({
method: "POST", // *GET, POST, PUT, DELETE, etc.
mode: "cors", // no-cors, cors, *same-origin
headers: {
"Content-Type": "application/json",
...(auth ? { "Authorization": auth } : {})
},
})
@zmts
zmts / datepicker.md
Created December 7, 2017 13:52
Vuejs-datepicker disable dates
@nicobytes
nicobytes / steps.md
Last active September 21, 2022 06:06
Remeber you fuck steps, config for deploy django project

Conectarse con el server

  1. ssh user@your_ip
  2. Generar llave ssh-keygen -b 4096 (dentro de .ssh)
  3. Enviar llave al server ssh-copy-id -i .ssh/name.pub user@your_ip
  4. Conectar: ssh user@your_ip

Install Nginx

  1. update apt-get update
@vubon
vubon / ReadMe.txt
Last active January 8, 2019 16:14
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
@chranderson
chranderson / nvmCommands.js
Last active October 20, 2025 20:28
Useful NVM commands
// check version
node -v || node --version
// list locally installed versions of node
nvm ls
// list remove available versions of node
nvm ls-remote
// install specific version of node
import React from "react";
import { render } from "react-dom";
const ParentComponent = React.createClass({
getDefaultProps: function() {
console.log("ParentComponent - getDefaultProps");
},
getInitialState: function() {
console.log("ParentComponent - getInitialState");
return { text: "" };
@DevinWalker
DevinWalker / Beanstalk_to_GitHub
Created October 9, 2015 17:19
Move Git Repository from Beanstalk to GitHub with full repository history
#Example moving the DPSG Global Library
# 1 Checkout the Beanstalk Repo
git clone --bare git@codeandtheory.beanstalkapp.com:/dpsg-global-library.git
# 2 Push into your desired GitHub repo. (Please note that you must create the github repo prior to this step)
git push --mirror git@github.com:codeandtheory/dpsg-global-library.git
@PurpleBooth
PurpleBooth / README-Template.md
Last active November 3, 2025 11:24
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@saaiful
saaiful / gist:586e920310cd37d6c4ce
Last active May 11, 2024 16:16
বাংলায় গানিতিক সমস্যার সমাধান
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++)
{
var re = new RegExp(en[i], 'g');
input = input.replace(re,bn[i]);
}
return input;