- Homebrew/terminal/bash
- OSX Productivity - Window Management/Quick Launcher/Hyperswitch
- OSX Settings - Dock/Finder
- Web Browser - Extensions - AdBlock, Privacy Badger, OneTab, JSONViewer, Stylus, Vue Devtools, React Devtools
- Node.js - nvm
- Code Editor - vs code
- Code Editor Extensions
- Break timer and Flux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//* Function to solve a word search puzzle | |
function wordSearch(board, words) { | |
board = board.map((row) => row.split('')); | |
//* Define the possible directions to move on the board | |
const directions = [ | |
[-1, 0, '↑'], // up | |
[1, 0, '↓'], // down | |
[0, -1, '←'], // left | |
[0, 1, '→'], // right |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add the below flags while running chrome | |
--enable-precise-memory-info --js-flags="--expose-gc" | |
Ex: | |
"C:\Program Files\Google\Chrome Beta\Application\chrome.exe" --user-data-dir="C:/ChromeDevSession" --disable-web-security --ignore-certificate-errors --enable-precise-memory-info --js-flags="--expose-gc" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Logs to console, can be extended to localstorage, webapi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", | |
"final_space": false, | |
"osc99": true, | |
"console_title": true, | |
"console_title_style": "template", | |
"console_title_template": "{{if .Root}} ⚡ {{end}}{{.Folder | replace \"~\" \"🏚\" }} @ {{.Host}}", | |
"blocks": [ | |
{ | |
"type": "prompt", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using namespace System.Management.Automation | |
using namespace System.Management.Automation.Language | |
if ($host.Name -eq 'ConsoleHost') | |
{ | |
Import-Module PSReadLine | |
} | |
#Import-Module PSColors | |
#Import-Module posh-git | |
Import-Module -Name Terminal-Icons |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Injectable, OnDestroy } from '@angular/core'; | |
import { SubscriptionLike } from 'rxjs'; | |
import { SubSink } from 'subsink'; | |
/** | |
* @description Keeps hold of your subscriptions and unsubscribes them when component is destroyed. | |
* This uses 'SubSink' library to achieve this. | |
* @usage Extend your component from this 'MyComponent extends Unsubscribe'. Call super() in your component's constructor. | |
* @important Please keep a note that if you happen to implement OnDestroy in your component, | |
* you have to explicitly call super.ngOnDestroy() to invoke un-subscription for the component. | |
* @param sub; Subscription list. Assign your subscriptions in your component to 'sub' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(function () { | |
"use strict"; | |
// for better performance - to avoid searching in DOM | |
var content = $('#content'); | |
var input = $('#input'); | |
var status = $('#status'); | |
// my color assigned by the server | |
var myColor = false; |