Skip to content

Instantly share code, notes, and snippets.

View siwalikm's full-sized avatar

Siwalik Mukherjee siwalikm

View GitHub Profile
@siwalikm
siwalikm / archived_website_footer.js
Last active April 7, 2024 22:31
source for archived_website_footer banner
@siwalikm
siwalikm / free_dev_fonts_list.txt
Last active March 3, 2024 22:21
Free developer fonts that support ligatures
JetBrains Mono - https://www.jetbrains.com/lp/mono
Fira Code - https://github.com/tonsky/FiraCode
Cascadia Code - https://github.com/microsoft/cascadia-code
Iosevka - https://github.com/be5invis/Iosevka
Hasklig - https://github.com/i-tu/Hasklig
Monoid - https://larsenwork.com/monoid/
Victor Mono - https://rubjo.github.io/victor-mono

image

prompt:

A [nationality] woman sitting on a couch, 24 year old, social media, cute sweater over dress, big smile, beautiful dark hair, shot on iPhone, no filter, plant blurred in background, hands or palm not in frame

Negative prompt: >(no hands visible, bad hands, worst quality, low quality, normal quality, lowres, low details, oversaturated, undersaturated, overexposed, underexposed, grayscale, bw, bad photo, bad photography, bad art:1.4), (watermark, signature, text font, username, error, logo, words, letters, digits, autograph, trademark, name:1.2), (blur, blurry, grainy), morbid, ugly, asymmetrical, mutated malformed, mutilated, poorly lit, bad shadow, draft, cropped, out of frame, cut off, censored, jpeg artifacts, out of focus, glitch, duplicate, (airbrushed, cartoon, anime, semi-realistic, cgi, render, blender, digital art, manga, amateur:1.3), (3D ,3D Game, 3D Game Scene, 3D Character:1.1), (bad hands, bad anat

@siwalikm
siwalikm / makebranch.sh
Created May 3, 2023 14:19
bash script to create branches according to convention
#!/bin/bash
# example branch name - TEAM-1234-FEAT-btn-revamp
# Select branch type
branch_type_options=("FEAT" "FIX" "CHORE" "HOTFIX")
echo "Select branch type:"
select branch_type in "${branch_type_options[@]}"
do
if [[ -n $branch_type ]]; then
break
{
"editor.defaultFormatter": "esbenp.prettier-vscode",
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"editor.formatOnSave": true,
"workbench.colorTheme": "GitHub Dark Dimmed",
"editor.fontLigatures": true,
"editor.fontFamily": "'JetBrains Mono', Menlo, Monaco, 'Courier New', monospace",
"editor.wordWrap": "on",
@siwalikm
siwalikm / .Frontend Technical Interview Prep.md
Created April 3, 2021 18:57 — forked from augbog/.Frontend Technical Interview Prep.md
Frontend Technical Interview Prep: A study guide of things I constantly re-review when interviewing for frontend.

Frontend Technical Interview Prep

EDIT: Well this has been linked now so just an FYI this is still TBD. Feel free to comment if you have suggestions for improvements. Also here is an unrolled Twitter thread of a lot of the tips I talk about on here.

I've been doing frontend for a while now and one thing that really gripes me is the interview. I think the breadth of knowledge of a "Frontend Engineer" has been so poorly defined that people really just expected you to know everything. Many companies have made this a hybrid role. The Web is massive and there are many MANY things to know. Some of these things are just facts that you learn and others are things you really have to understand.

Every time I interview, I go over the same stuff. I wanted to create a gist of the TL;DR things that would jog my memory and hopefully yours too.

Lots of these things are real things I've been asked that caught me off guard. It's nice to have something you ca

@siwalikm
siwalikm / tri-nary-tree.js
Last active March 21, 2021 08:39
Trinary tree in js
// Implementing insert and delete methods in a tri-nary tree. Much like a
// binary-tree but with 3 child nodes for each parent instead of two -- with the
// left node being values < parent, the right node values > parent, and the middle node
// values == parent.
function Node(val) {
this.value = val;
this.center = null;
this.left = null;
this.right = null;
@siwalikm
siwalikm / unsupported_emojis_high_sierra.json
Created December 4, 2020 12:39
Exhaustive list of emojis not supported in MacOS High Sierra
[
{
"id": "large_brown_square",
"name": "Large Brown Square",
"short_names": [
"large_brown_square"
],
"colons": ":large_brown_square:",
"emoticons": [],
"unified": "1f7eb",
@siwalikm
siwalikm / ember-cli-build.js
Created March 30, 2020 05:40 — forked from vasind/ember-cli-build.js
Ember CLI performance improvements and tips
// Credits to the following posts that helps me to reduce build times drastically
// https://discuss.emberjs.com/t/tips-for-improving-build-time-of-large-apps/15008/12
// https://www.gokatz.me/blog/how-we-cut-down-our-ember-build-time/
//ember-cli-build.js
let EmberApp = require('ember-cli/lib/broccoli/ember-app');
let env = EmberApp.env(),
@siwalikm
siwalikm / component.js
Last active March 18, 2019 06:23
Reset dirty attributes in Emberjs
const { get, String, inject: { service } } = Ember;
export default Component.extend({
store: inject.service(),
// Note: As we are using pushPayload to modify data directy in store, rollback won't be possible.
// Use https://github.com/offirgolan/ember-data-copyable to clone your model and restore if needed.
actions: {
// some action which get's triggered on some change which makes our model dirty.
someAction() {