This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ctypes | |
from ctypes import wintypes | |
import time | |
user32 = ctypes.WinDLL('user32', use_last_error=True) | |
INPUT_KEYBOARD = 1 | |
KEYEVENTF_EXTENDEDKEY = 0x0001 | |
KEYEVENTF_KEYUP = 0x0002 | |
KEYEVENTF_KEYDOWN = 0x0000 | |
KEYEVENTF_UNICODE = 0x0004 | |
MAPVK_VK_TO_VSC = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Installing the requried packages | |
# pip install pyobjc | |
# Code | |
import time | |
from Quartz.CoreGraphics import ( | |
kCGEventKeyDown, | |
kCGEventKeyUp, | |
CGEventCreateKeyboardEvent, | |
CGEventPost, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
vim_url=https://gist.githubusercontent.com/SarthakNarayan/ecc4aa39438cf86edbb3e65dbc597d3f/raw/59dcf7629872f554c1663da07762fbb94220d19c/.vimrc | |
curl -fsSL $vim_url > $HOME/.vimrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" ====================================================== | |
" Basic Settings | |
syntax on | |
set tabstop=2 | |
set number | |
set shiftwidth=2 | |
set autoindent | |
set smartindent | |
set bg=dark |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (document.querySelector(".control-bar--control-bar-container--16vzi").style.visibility === "hidden"){ | |
document.querySelector(".control-bar--control-bar-container--16vzi").style.visibility = "visible" | |
document.querySelector("div.user-activity--hide-when-user-inactive--pDPGx:nth-child(4)").style.visibility = "visible" | |
document.querySelector("div.next-and-previous--container--1bSoH:nth-child(2)").style.visibility = "visible" | |
document.querySelector("div.next-and-previous--container--1bSoH:nth-child(3)").style.visibility = "visible" | |
} | |
else { | |
document.querySelector(".control-bar--control-bar-container--16vzi").style.visibility = "hidden" | |
document.querySelector("div.user-activity--hide-when-user-inactive--pDPGx:nth-child(4)").style.visibility = "hidden" | |
document.querySelector("div.next-and-previous--container--1bSoH:nth-child(2)").style.visibility = "hidden" |