Skip to content

Instantly share code, notes, and snippets.

View pnchinmay's full-sized avatar
:shipit:

Chinmay Manas pnchinmay

:shipit:
View GitHub Profile
@pnchinmay
pnchinmay / recommended-routine.md
Created December 11, 2023 16:53 — forked from sgup/recommended-routine.md
Recommended Routine - Reddit BodyweightFitness
@pnchinmay
pnchinmay / !LaTeX.MD
Created November 27, 2023 16:12 — forked from CaesarOG/!LaTeX.MD
LaTeX w/ VimTex, UltiSnips and Zathura
@pnchinmay
pnchinmay / Calculate Exam Date
Created June 27, 2023 10:33 — forked from AnKingMed/Calculate Exam Date
This is code that can be placed on Anki Cards to help
<div style="font-size:20px;color:#F2E48E;font-family:Times;
font-style:italic;letter-spacing:-2px;position:fixed;bottom:50px;
left:5px;opacity:.9;">
<div class="editcloze">
Ease: {{info-Factor:}}
</div>
<span id="countdown2"></span>
<script>
// ###### CUSTOMIZE DATE HERE ######
var dateText= 'June 18 2022';
@pnchinmay
pnchinmay / README.md
Created June 7, 2023 05:09 — forked from OliverBalfour/README.md
Obsidian custom checkbox snippet

Custom checkboxes for Obsidian! It's like deathau's snippet except updated to work really well in Live Preview mode in Obsidian 1.0.

Simply edit the x inside checkboxes to >, ?, etc. to see styling like below!

Editing Live Preview Viewing
image image image

Installation:

  • Download the checkbox.css file on this page
@pnchinmay
pnchinmay / i3wm_media_lock.md
Created January 15, 2023 10:58 — forked from elsholz/i3wm_media_lock.md
How to create a transparent lock screen in i3wm. Locks screen, but shows no lock screen. Unlocks as usual, if correct password is entered.

i3wm Transparent Lock screen.

Warning: If executed multiple times, unlock isn't possible anymore, use with caution!

Description

Block computer for input, but remain graphical output as usual. Can be used for example to watch a movie on your laptop but forbid any input during that.

Downside

Not tested thouroughly yet, and only tested on Debian 9

@pnchinmay
pnchinmay / smart-caps-lock.md
Created December 30, 2022 07:27 — forked from tanyuan/smart-caps-lock.md
Smart Caps Lock: Remap Caps Lock to Control AND Escape

Smart Caps Lock: Remap to Control AND Escape (Linux, Mac, Windows)

Caps Lock 變成智慧的 Control 以及 Escape

  • 單獨輕按一下就是 Escape
  • 若按下時同時按著其他鍵,就會是 Control

這應該是 Vim 和 Emacs 的最佳解了!(Emacs? Bash 的快捷鍵就是 Emacs 系列的)

  • Send Escape if you tap Caps Lock alone.
@pnchinmay
pnchinmay / obsidian-git-android-sync.md
Created December 29, 2022 06:01 — forked from Makeshift/tutorial.md
Tutorial for automatically syncing an Obsidian vault with Git on an Android device

How to sync Obsidian with Git on Android

Limitations

  • If Termux is closed in the background by Android, the cron service will stop updating your repository and you must open Termux again. Refer to instructions for your device model to disable the killing of certain background applications.
  • This may negatively affect your devices battery life. I'm not entirely sure yet.

Setup

@pnchinmay
pnchinmay / convertES6toES5.js
Created November 6, 2022 15:21 — forked from tushartiwari7/convertES6toES5.js
ES6+ Assignment questions ft. @RohitDhatrak
//ES6 syntax:
const packIt = (...args) => console.log(args)
packIt(1,2,3,5,5);
// ES5 syntax
var packIt = function(n1,n2,n3,n4,n5) {
return console.log(n1,n2,n3,n4,n5);
}
@pnchinmay
pnchinmay / better-gist-styles.css
Created March 8, 2022 03:57 — forked from jnrbsn/better-gist-styles.css
Better styles for embedding GitHub Gists
/* Better styles for embedding GitHub Gists */
.gist{font-size:13px;line-height:18px;margin-bottom:20px;width:100%}
.gist pre{font-family:Menlo,Monaco,'Bitstream Vera Sans Mono','Courier New',monospace !important}
.gist-meta{font-family:Helvetica,Arial,sans-serif;font-size:13px !important}
.gist-meta a{color:#26a !important;text-decoration:none}
.gist-meta a:hover{color:#0e4071 !important}

Commit Message Guidelines

Short (72 chars or less) summary

More detailed explanatory text. Wrap it to 72 characters. The blank
line separating the summary from the body is critical (unless you omit
the body entirely).

Write your commit message in the imperative: "Fix bug" and not "Fixed
bug" or "Fixes bug." This convention matches up with commit messages