Skip to content

Instantly share code, notes, and snippets.

View shovanch's full-sized avatar

Shovan Chatterjee shovanch

View GitHub Profile
[
{
"id": "BTC",
"currency": "BTC"
},
{
"id": "ETH",
"currency": "ETH"
},
{
{
"gratitude": [
"Describe your happiest childhood memory?",
"What is a popular song that you enjoy (and why do you like it)?",
"What is one of your favorite songs from your childhood?",
"Who is the one friend you can always rely on?",
"What is the biggest accomplishment in your personal life?",
"What is the biggest accomplishment in your professional life?",
"What is your favorite memory of your father?",
"What is your favorite memory of your mother?",
@shovanch
shovanch / cloudSettings
Last active June 6, 2019 20:39
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-06-06T20:39:17.239Z","extensionVersion":"v3.2.9"}
@shovanch
shovanch / cloudSettings
Created December 14, 2018 15:06
Visual Studio Code Settings Sync Gist
{"lastUpload":"2018-12-14T15:06:41.001Z","extensionVersion":"v3.2.4"}
  1. Create a branch name gh-pages
  2. Push it to remote
  3. Run the webpack build command
  4. Now run this command
git subtree push --prefix dist origin gh-pages

This will only push the dist folder to the gh-pages branch Now in the github pages settings change it from 'master' to 'gh-pages' branch

@shovanch
shovanch / bulma.md
Created June 5, 2018 06:27
How to use Bulma with CRA

Plain Bulma framework

Just to recap what I did to make it work with a plain Create React App (no ejection required).

Either, work with CSS, simply import the Bulma file in index.js:

import 'bulma/css/bulma.css' Or, work with Sassy CSS:

As described in the docs here, install the recommended CSS preprocessor:

@shovanch
shovanch / gitalias.md
Last active September 10, 2018 19:29
Git aliases

Syntax

  • git config --global alias.al al_things

  • git config --global alias.alist 'config --global --get-regexp alias'

  • git config --global alias.s status

  • git config --global alias.ss 'status -s'

  • git config --global alias.pm 'push origin master'

  • git config --global alias.pu 'push origin'

  • git config --global alias.ac '!git add -A && git commit -am'

  • git config --global alias.pgh 'subtree push --prefix dist origin gh-pages'

body * {
color: #434343 !important;
/* background: hsla(210, 100%, 50%, 0.33) !important; */
outline: 1px solid #353535 !important;
}
color1: #35BCE6;
color2: #FF742E;
color3: #FFE270;
color4: #F8F8F8;
color5: #FF6E6E;
color6: #0F98E0;
color7: #1abc9c;
color8: #3498db ;
color9: #9b59b6;
@shovanch
shovanch / git-aliases.md
Last active March 9, 2018 15:58 — forked from mwhite/git-aliases.md
The Ultimate Git Alias Setup

The Ultimate Git Alias Setup

If you use git on the command-line, you'll eventually find yourself wanting aliases for your most commonly-used commands. It's incredibly useful to be able to explore your repos with only a few keystrokes that eventually get hardcoded into muscle memory.

Some people don't add aliases because they don't want to have to adjust to not having them on a remote server. Personally, I find that having aliases doesn't mean I that forget the underlying commands, and aliases provide such a massive improvement to my workflow that it would be crazy not to have them.

The simplest way to add an alias for a specific git command is to use a standard bash alias.

# .bashrc