This file contains hidden or 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
Windows Registry Editor Version 5.00 | |
; Open files | |
[HKEY_CLASSES_ROOT\*\shell\Open with VS Code] | |
@="Edit with VS Code" | |
"Icon"="C:\\Users\\User\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe,0" | |
[HKEY_CLASSES_ROOT\*\shell\Open with VS Code\command] | |
@="\"C:\\Users\\User\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe\" \"%1\"" |
This file contains hidden or 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
// Create a TrustedScriptURL using trustedTypes | |
let trustedScriptURL = trustedTypes.createPolicy('default', { | |
createScriptURL: (url) => url | |
}); | |
// Create a script element | |
let jspdf = document.createElement("script"); | |
// Set the script's src using the TrustedScriptURL | |
jspdf.src = trustedScriptURL.createScriptURL('https://cdnjs.cloudflare.com/ajax/libs/jspdf/1.5.3/jspdf.debug.js'); |
This file contains hidden or 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
// working html2pdf | |
async function download() { | |
let srcWidth = document.body.scrollWidth; | |
var margin = 18; // narrow margin - 1.27 cm (36); | |
// for mobile, use 0.5 cm (14.17) | |
// margin = 14.17; | |
var orientation = ''; | |
// if desktop, use landscape. if android or iphone, use portrait. use user agent to detect |
This file contains hidden or 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 base64 | |
class StringFogImpl: | |
CHARSET_NAME_UTF_8 = "UTF-8" | |
@staticmethod | |
def decrypt(string): | |
return StringFogImpl().decrypt(string, StringFogImpl.CHARSET_NAME_UTF_8) |
This file contains hidden or 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
@echo off | |
:: change the path below to match your installed version | |
SET AndroidStudioPath=C:\Program Files\Android\Android Studio\bin\studio64.exe | |
echo Adding file entries | |
@reg add "HKEY_CLASSES_ROOT\*\shell\AndroidStudio" /t REG_SZ /v "" /d "Open with AndroidStudio" /f | |
@reg add "HKEY_CLASSES_ROOT\*\shell\AndroidStudio" /t REG_EXPAND_SZ /v "Icon" /d "%AndroidStudioPath%,0" /f | |
@reg add "HKEY_CLASSES_ROOT\*\shell\AndroidStudio\command" /t REG_SZ /v "" /d "%AndroidStudioPath% \"%%1\"" /f | |
This file contains hidden or 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 os, sys | |
# os.system("pip3 install requests bs4 pygsheets") | |
import traceback | |
import requests | |
import time | |
from bs4 import BeautifulSoup | |
import pygsheets | |
from pygsheets.datarange import DataRange |
This file contains hidden or 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 os, sys | |
# os.system("pip3 install requests bs4 pygsheets") | |
import traceback | |
import requests | |
import time | |
from bs4 import BeautifulSoup | |
import pygsheets | |
from pygsheets.datarange import DataRange |
This file contains hidden or 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 pandas as pd | |
from pprint import pprint | |
file = '/home/<user>/Downloads/excel_file.xlsx' | |
df = pd.read_excel(file) | |
search_keyword = 'John' | |
def get_row(df, index): | |
result_dict = {} | |
for col in df: |
This file contains hidden or 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
// ==UserScript== | |
// @name Dark Theme for FB's Messenger | |
// @version 0.1 | |
// @description Dark theme for messenger.com | |
// @author Rafikus | |
// @match https://www.messenger.com/* | |
// @grant none | |
// @namespace https://greasyfork.org/users/737196 | |
// ==/UserScript== |
This file contains hidden or 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
pip3 freeze | cut -d"=" -f1 > requirements.txt |
NewerOlder