Skip to content

Instantly share code, notes, and snippets.

View sphingu's full-sized avatar
:dependabot:
Focusing

Sumit Hingu sphingu

:dependabot:
Focusing
View GitHub Profile
@sphingu
sphingu / shortcuts.md
Last active December 28, 2021 07:18
WINDOW TERMINAL
ctrl + shift + = => new pan on side
ctrl + shift + - => new pan on bottom
ctrl + shift + w => close pan

alt + arrow => move focus pan
alt + shift + arrow => resize pan

ctrl + , => open settings
ctrl + shift + p => command pattele
@sphingu
sphingu / VIM-Notes.md
Last active December 27, 2021 15:19
Mastering the vi and Vim Editors on the Linux, Unix, Mac, and Windows Operating Systems

Essential Navigation Commands

:q - quit :q! - force quit

:wq - write & quit

:23 - go to line No. 23

:$ - go to last line

@sphingu
sphingu / info.md
Last active October 29, 2021 18:41
About OpenID Connect and OAuth
@sphingu
sphingu / sublime
Last active March 11, 2018 18:25
Sublime Things
SELECTION
---------
Ctrl + D : select a Word
Ctrl + L : select Line
Ctrl + M : Select whole bracket code
Ctrl + Shift + P : Command Patelle
Ctrl + P : list all files
1) SideBarEnhancements
@sphingu
sphingu / shortcuts
Last active March 11, 2018 05:42
Elementary OS Shortcuts
⌘+Space App Launcher
Alt+Tab Window Switcher
⇧+Alt+Tab Switch Windows Backwards
⌘+W Window Overview
⌘+A Window Overview (Across All Workspaces)
⌘+Left/Right Switch Workspace
⌘+S Workspace Overview
⌘+0 New Workspace
⇧+⌘+Left/Right Move Window with Workspace
Ctrl+⌘+Left/Right Snap Window to Half of Workspace
@sphingu
sphingu / EnumExtensions.cs
Last active February 16, 2016 11:31
Enum Extension
[Flags]
public enum Status
{
Success = 1<<0, //1
Fail = 1<<1, //2
Unknown = 1<<2, //4
isNotFail = Success | Unknown
}
public static bool HasFlag(this int status, int flag)

Node.js - npm Cheat Sheet

(Full description and list of commands at - https://npmjs.org/doc/index.html)

##List of less common (however useful) NPM commands

######Prepand ./bin to your $PATH Make sure to export your local $PATH and prepand relative ./node_modules/.bin/:

// Node.js CheatSheet.
// Download the Node.js source code or a pre-built installer for your platform, and start developing today.
// Download: http://nodejs.org/download/
// More: http://nodejs.org/api/all.html
// 0. Synopsis.
// http://nodejs.org/api/synopsis.html
@sphingu
sphingu / Index.html
Created April 16, 2014 13:01
Knockout Custom Pagination
<div id="body">
<section class="content-wrapper main-content clear-fix" data-bind="with: personList" style="margin-top: 30px;">
<table>
<thead>
<tr>
<td>First Name</td>
<td>Last Name</td>
<td>Age</td>
</tr>
</thead>
@sphingu
sphingu / KoCheetSheet.yaml
Last active September 13, 2015 10:50
Knockout CheetSheet.
Controlling Text and appearance
Visible visible: hasError
Text text: message
Html html: markup
CSS css: { error: hasError, required: isRequired }
Style style: { color: messageColor, backgroundColor: backColor }
Attr attr: { title: itemDescription, id: itemId }
Form Field Binding