Skip to content

Instantly share code, notes, and snippets.

View choyan's full-sized avatar
🎯
Focusing

Zahidul Hossain choyan

🎯
Focusing
View GitHub Profile

Include multiple class inside CSS module

<footer className={ `${styles.footerArea} ${styles.footerLight}` }>

MULTIPLE CONDITIONAL RENDERINGS IN REACT with ENUM

<TableCell align="center">
  {
    {
      'None': <p>We are not sure about this email.</p>,
const gulp = require('gulp');
const plugins = require('gulp-load-plugins')();
const del = require('del');
const log = require('fancy-log');
const imagemin = require('gulp-imagemin');
const imageminMozjpeg = require('imagemin-mozjpeg');
const critical = require('critical');
const browserSync = require('browser-sync');
@choyan
choyan / browsersync.js
Created January 29, 2020 13:34 — forked from tristanisfeld/browsersync.js
Gulp 4 - Multifile tasks w/ external config. Basic gulpfile template for use with multiple task files, using gulp-load-plugins
// =========================================================
// Gulp Task: browsersync
// NOTE: Using gulp v4
// Description: Sync sass, typescript, html, and browser
// using external config or add modify src
// npm install --save-dev browser-sync gulp-typescript gulpjs/gulp.git#4.0 gulp-load-plugins
// Options: node-sass gulp-sass || gulp-ruby-sass
// =========================================================
var config = require('../config.js');
var browserSync = require('browser-sync').create();
@choyan
choyan / Gulpfile.js
Created January 7, 2020 10:25
Gulp 4 configuration for gulp-inject
const gulp = require('gulp');
const inject = require('gulp-inject');
// use to concat css files
function injectIntoHTML() {
// It's not necessary to read the files (will speed up things), we're only after their paths:
let sources = gulp.src(['./src/**/*.js', './src/**/*.css'], {read: false});
return gulp

Installation Procedure

Need to have Node and JDK installed.

For JDK

sudo apt install openjdk-8-jdk

Download and install Android Studio https://developer.android.com/studio/index.html

Lamp Installation

sudo apt install lamp-server^

sudo systemctl stop apache2.service
sudo systemctl start apache2.service
sudo systemctl enable apache2.service

Composer Instal

bid brand web_site
1 sqaure sqaure.com.bd
2 beximco beximco.com.bd
2 beximco beximco.com.bd
2 beximco beximco.com.bd
@choyan
choyan / pantheon-terminal.md
Last active February 18, 2017 15:27
Pantheon Terminal color setup

Pantheon terminal alternate color profile

Open dconf Editor and navigate to org/pantheon/terminal/settings . And now update the value as provided

Name Value
Background rgba(40, 42, 54, 1)
Font Droid Sans Mono 12
Foreground rgba(239, 240, 235, 1)
Pallette #222430:#97979b:#3498db:#ff5c57:#5af78e:#ff5c57:#57c7ff:#ff6ac1:#9aedfe:#f1f1f0:#686868:#ff5c57:#5af78e:#ff5c57:#57c7ff:#ff6ac1:#9aedfe
  1. Navigate to http://nodejs.org/download/ and on the Linux Binaries (.tar.gz) row click to download the 64-bit version of the current latest release.

  2. Say you've downloaded node-v0.10.7-linux-x64.tar.gz into the Downloads directory. Then, open the terminal and type the following:

$ cd ~/Downloads
$ mkdir -p ~/local/node
$ tar xzf node-v0.10.7-linux-x64.tar.gz -C ~/local/node --strip-components=1
$ echo '# Node Enviroment Setup' >> ~/.bashrc
$ echo 'export PATH=$HOME/local/node/bin:$PATH' &gt;&gt; ~/.bashrc