Skip to content

Instantly share code, notes, and snippets.

View shovanch's full-sized avatar

Shovan Chatterjee shovanch

View GitHub Profile
@1Marc
1Marc / config.js
Created September 12, 2018 01:41
My VS Code Config
// For: @musaid
// https://twitter.com/musaid/status/1039688749205020672
// Ligatures built into Operator Mono as "Operator Mono Lig" with https://github.com/kiliman/operator-mono-lig
// VS Code Extensions: vscode-icons, indent-rainbow, Rainbow Brackets, Git Lense and Prettier (require config file with requireConfig)
// VS Code Theme: Night Owl -- custom colors for a bit higher contrast
{
"editor.tabSize": 2,
"editor.insertSpaces": true,
"window.zoomLevel": 1,
"editor.fontSize": 18,
@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;
}
@zaydek-old
zaydek-old / bookmark.min.js
Last active May 28, 2024 19:18
A *simple* CSS debugger. To use, bookmark "Debug CSS" at https://zaydek.github.io/debug.css. Learn more here https://medium.freecodecamp.org/88529aa5a6a3 and https://youtu.be/2QdzahteCCs?t=1m25s (starts at 1:25)
/* debug.css | MIT License | zaydek.github.com/debug.css */ if (!("is_debugging" in window)) { is_debugging = false; var debug_el = document.createElement("style"); debug_el.append(document.createTextNode(`*:not(g):not(path) { color: hsla(210, 100%, 100%, 0.9) !important; background: hsla(210, 100%, 50%, 0.5) !important; outline: solid 0.25rem hsla(210, 100%, 100%, 0.5) !important; box-shadow: none !important; filter: none !important; }`)); } function enable_debugger() { if (!is_debugging) { document.head.appendChild(debug_el); is_debugging = true; } } function disable_debugger() { if (is_debugging) { document.head.removeChild(debug_el); is_debugging = false; } } !is_debugging ? enable_debugger() : disable_debugger();
color1: #35BCE6;
color2: #FF742E;
color3: #FFE270;
color4: #F8F8F8;
color5: #FF6E6E;
color6: #0F98E0;
color7: #1abc9c;
color8: #3498db ;
color9: #9b59b6;
@shovanch
shovanch / git-aliases.txt
Created February 28, 2018 20:05 — forked from kristofferh/git-aliases.txt
List all git aliases
List just aliases
$ git config --get-regexp alias
List all config parameters
$ git config --list
@shovanch
shovanch / JS-snippets.json
Last active September 10, 2018 19:29
VSCode Javascript snippets
{
// Place your snippets for javascript here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
// "Print to console": {
// "prefix": "log",
// "body": [
// "console.log('$1');",
@shovanch
shovanch / WSL.MD
Last active September 10, 2018 19:28
How to install nice terminal

sudo apt-get update sudo apt-get upgrade -y sudo do-release-upgrade -d

  • Setup Node and git in ubuntu Node Instruction sudo apt-get install -y nodejs and for git : sudo apt install git
  • Install ZSH sudo apt-get install zsh
  • Open your bash profile nano ~/.bashrc
  • Add this to set it to use ZSH as default in nano ~/.bashrc:
@jakewtaylor
jakewtaylor / readme.md
Last active January 6, 2024 23:29
VS Code CSS addition to increase readability on file tree.

Increases indentation on the file tree and adds some lines to each directory/file.

Works 15 levels deep, but you can expand it by just adding more of each line thats repeating, i.e.:

  • add another box shadow
    • (n*-20px) 0 0 0 rgba(255, 255, 255, 0.4)
  • add another padding-left
    • .monaco-tree-row[aria-level="n"] { padding-left: ((n-1)*20)px; }
  • add another :before & :after with left positioning
    • .monaco-tree-row[aria-level="n"]:before { left: (((n-1)*20)-9)px; }
  • .monaco-tree-row[aria-level="n"]:after { left: (((n-1)*20)-9)px; }