Skip to content

Instantly share code, notes, and snippets.

View loftywaif002's full-sized avatar
🎯
Focusing

Dipro Chowdhury loftywaif002

🎯
Focusing
  • IBM
  • San Francisco
  • 08:20 (UTC -07:00)
View GitHub Profile
@loftywaif002
loftywaif002 / setup-tests-with-mocha-chai-node.md
Last active June 19, 2023 17:20
How to setup chai, mocha and nyc for testing Node.js api server. [with code coverage report]

How to setup chai, mocha and nyc for Node.js server, with code coverage report.

Add the following testing packages in package.json file

 "dependencies": {
    "chai": "^4.2.0",
    "chai-http": "^4.3.0",
    "mocha": "^7.1.0",
@loftywaif002
loftywaif002 / react-paginate-styling-template
Created October 5, 2020 22:08
react-paginate-styling-template
.pagination {
display: inline-block;
padding-left: 0;
margin: 22px 0;
border-radius: 4px;
}
.pagination > li {
display: inline;
}
.pagination > li > a,
After install zsh
- brew update
- brew install nvm
- mkdir ~/.nvm
after in your ~/.zshrc or in .bash_profile if your use bash shell:
export NVM_DIR=~/.nvm
source $(brew --prefix nvm)/nvm.sh
@loftywaif002
loftywaif002 / README.md
Created July 29, 2020 05:29 — forked from matijs/README.md
Solarized Dark profile for macOS Terminal.app

Solarized Dark profile for Terminal.app on macOS High Sierra

Based on the excellent Solarized (Dark) created by Ethan Schoonover. For source code, check the main Solarized repository on GitHub.

Installation

Open and save Solarized Dark.terminal.

Import from the “Profiles” tab in the settings of Terminal.app or just double-click the file after downloading.

@loftywaif002
loftywaif002 / install vagrant and vistualbox in macOS
Created June 6, 2020 08:05
how to isntall vagrant and virtual box in mac
# Install Virtualbox && Vagrant for MacOSX
Vagrant uses Virtualbox to manage the virtual dependencies. You can directly download virtualbox and install or use homebrew for it.
```sh
$ brew cask install virtualbox
```
Now install Vagrant either from the website or use homebrew for installing it.
@loftywaif002
loftywaif002 / React-redux-Dependencies.txt
Last active June 10, 2019 02:02
React-Redux-Dependencies
npm i axios react-router-dom redux react-redux redux-thunk redux-devtools-extension
//QUEUE POPULATOR
var Firebase = require('firebase');
// Same ref as in queue_worker.js
var ref = new Firebase('https://<your-firebase>.firebaseio.com/queue');
// This doesn't need to be set every time, but helps us
// define the spec for the task in this example
ref.child('specs').set({
@loftywaif002
loftywaif002 / karma-jasmine-react.md
Last active December 12, 2021 06:16
Setup Karma with Jasmine for create-react-app

Set up Karma with Jasmine in Create React App

This guide will use specific versions NPM packages. Please double-check that you installed the same versions to avoid installation issues!

  1. Install Create React App
$ npm install -g create-react-app@1.3.1
@loftywaif002
loftywaif002 / api_keys_android.md
Last active June 4, 2024 13:03
Hiding Api Keys in Anroid

Hiding API keys in local.properties

  1. Make sure your build directory is gitignored. It should be, by default, in a new Android Studio project -- you can double check by making sure that your .gitignore file contains the line:
/build
  1. In your project root directory, add the API key to local.properties file like this:
@loftywaif002
loftywaif002 / OpenCV-Kali
Created November 14, 2017 09:07
Install-Open-CV-On-Kali-Debian-Derivative
######################################
# INSTALL OPENCV ON UBUNTU OR DEBIAN #
######################################
# | THIS SCRIPT IS TESTED CORRECTLY ON |
# |----------------------------------------------------|
# | OS | OpenCV | Test | Last test |
# |----------------|--------------|------|-------------|
# | Ubuntu 16.04.2 | OpenCV 3.2.0 | OK | 20 May 2017 |
# | Debian 8.8 | OpenCV 3.2.0 | OK | 20 May 2017 |