Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View nmsobri's full-sized avatar
🏠
Working from home

Sobri Che Puteh nmsobri

🏠
Working from home
View GitHub Profile
;Grouping for disable always on top
GroupAdd, uniqueOnTop, ahk_exe WindowsTerminal.exe
GroupAdd, uniqueOnTop, ahk_exe Code.exe
GroupAdd, uniqueOnTop, ahk_exe idea64.exe
GroupAdd, uniqueOnTop, ahk_exe mintty.exe
#Persistent ; Keeps script running persisitantly
SetTimer, HotCorners, 0 ; HotCorners is name of timer, will be reset every 0 seconds until process is killed
return
HotCorners: ; Timer content
#ifWinActive ahk_class Vim
^/::^_
#ifWinActive
#ifWinActive ahk_exe code.exe
^+j::
Send, ^i
return
#ifWinActive
{
"editor.tabCompletion": "on",
"terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe",
"terminal.integrated.fontFamily": "CaskaydiaCove NF",
"explorer.confirmDelete": false,
"workbench.colorTheme": "Gruvbox Dark Soft",
"editor.fontFamily": "jetbrains Mono",
"editor.fontLigatures": true,
"editor.suggestSelection": "first",
"workbench.statusBar.visible": true,
Language: Cpp
BasedOnStyle: LLVM
TabWidth: 4
UseTab: Never
IndentWidth: 4
SortIncludes: true
ReflowComments: true
IndentCaseLabels: true
IncludeBlocks: Merge
IncludeCategories:
@nmsobri
nmsobri / vscode
Last active November 25, 2020 09:31
Vscode KeyBinding
// Place your key bindings in this file to override the defaults
[
{
"key": "ctrl+j",
"command": "workbench.action.quickOpenSelectNext",
"when": "inQuickOpen"
},
{
"key": "ctrl+k",
"command": "workbench.action.quickOpenSelectPrevious",
{
"ErrorResponse": {
"Head": {
"ErrorCode": 500,
"ErrorMessage": "E500: Create product failed",
"ErrorType": "Platform",
"RequestAction": "CreateProduct",
"RequestId": "0bb606c715229158769507155e2fb2"
},
"Body": {
@nmsobri
nmsobri / gist:799910644e22ff0bed0d
Last active August 29, 2015 14:19
How Prototype Inheritance Work In Javascript
/** This 3 Point Is Really Important
1.Every Object in javascript have __proto__ property
2.Only Function in javascript have prototype property and this is where property of that instance of function will be stored
3.__proto__ always point to its ConstructorFunction.prototype
**/
var a = {};
console.log(a.__proto__ === Object.prototype); //true
console.log(a.prototype); //undefined