Skip to content

Instantly share code, notes, and snippets.

View walkeratmind's full-sized avatar
🌱
Growing / going on with learning

rakeshniraula walkeratmind

🌱
Growing / going on with learning
View GitHub Profile
[
{
"key": "shift+cmd+k v",
"command": "markdown.showPreviewToSide",
"when": "!notebookEditorFocused && editorLangId == 'markdown'"
},
{
"key": "cmd+k v",
"command": "-markdown.showPreviewToSide",
"when": "!notebookEditorFocused && editorLangId == 'markdown'"
@walkeratmind
walkeratmind / .gitmessage
Created March 5, 2022 04:29 — forked from median-man/.gitmessage
This commit message template helps you write **useful** commit messages.
# <type>: <subject> (Max 50 char, Why is this change necessary?)
# |<---- Using a Maximum Of 50 Characters ---->|
# |<---- Try To Limit Each Line to a Maximum Of 72 Characters ---->|
# Explain how the commit addresses the issue
# IMPORTANT!! Describe any side effects of the change.
# Provide links or keys to any relevant tickets, articles or other resources
# Examples: "Jira issue [ABC-123]" or "Closes Github issue #123"
1. hiltvm (applicable in top-level)
@dagger.hilt.android.lifecycle.HiltViewModel
class $NAME$ @javax.inject.Inject constructor(
$PARAM$
) : androidx.lifecycle.ViewModel() {
$END$
}
2. vmstatefunc (applicable in class)
private val _$NAME$ = androidx.compose.runtime.mutableStateOf<$TYPE$>($INITIAL_VALUE$)
@walkeratmind
walkeratmind / obsidian-web-clipper.js
Created August 14, 2021 06:26 — forked from kepano/obsidian-web-clipper.js
Obsidian Bookmarklet to clip pages
javascript: Promise.all([import('https://unpkg.com/[email protected]?module'), import('https://unpkg.com/@tehshrike/[email protected]'), ]).then(async ([{
default: Turndown
}, {
default: Readability
}]) => {
/* Optional vault name */
const vault = "";
/* Optional folder name such as "Clippings/" */
@walkeratmind
walkeratmind / pyrename.py
Last active August 10, 2021 12:52
Batch rename files in the directory using names from file
import argparse
import os
import sys
"""
AUTHOR:
____ _ _
| _ \ __ _| | _____ ___| |__
| |_) / _` | |/ / _ \/ __| '_ \
@walkeratmind
walkeratmind / clean_code.md
Created August 2, 2021 02:04 — forked from wojteklu/clean_code.md
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules

@walkeratmind
walkeratmind / vscode settings.md
Last active June 12, 2022 16:01
settings and configs for vscode / vscode insiders

vscode settings

Objective

To keep things easier and simple from extensions and get the most out of it, I have been using both separating their uses.

  • using vscode for more like a frontend and flutter stuffs only.
@walkeratmind
walkeratmind / cloudSettings
Last active June 28, 2021 15:44
vscode insiders settings gist
{"lastUpload":"2021-06-28T15:44:28.169Z","extensionVersion":"v3.4.3"}
@walkeratmind
walkeratmind / windows-terminal-settings.json
Created June 15, 2021 02:46
This is my windows terminal settings with custom shortcuts and preferences which are being managed since the terminal release
// This file was initially generated by Windows Terminal 1.4.3243.0
// It should still be usable in newer versions, but newer versions might have additional
// settings, help text, or changes that you will not see unless you clear this file
// and let us generate a new one for you.
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
@walkeratmind
walkeratmind / 0. Install choco packages.md
Last active November 13, 2021 07:15
A Chocolatey script for PowerShell 🤖. See: http://chocolatey.org

Setup Chocolatey 🍫

Install 🌱

Install Powershell 7

iex "& { $(irm https://aka.ms/install-powershell.ps1) } -UseMSI"