Skip to content

Instantly share code, notes, and snippets.

View NoCtrlZkun's full-sized avatar
💭
I may be slow to respond.

NoCtrlZkun

💭
I may be slow to respond.
View GitHub Profile
@ahmed4end
ahmed4end / pandas.py
Created July 7, 2021 11:39
extract column value based on another column pandas dataframe
import pandas as pd
file1 = pd.read_csv('./n/oregonhie_descriptive_vars.csv')
file2 = pd.read_csv('./n/oregonhie_inperson_vars.csv')
file2['treatment'] = file2['person_id']
def proccess(key):
a = file1.loc[file1['person_id'] == key, 'treatment'].iloc[0]
@ngshiheng
ngshiheng / f-string-0.py
Last active February 7, 2022 05:48
3 Useful Python F-string Tricks You Probably Don’t Know https://jerrynsh.com/3-useful-python-f-string-tricks-you-probably-dont-know/
viewer = "🐊"
owner = "🐼"
editor = "🐓"
print(viewer)
print(owner)
print(editor)
@kien5436
kien5436 / README.md
Last active June 20, 2021 02:15
Context menu tricks for Windows

How to use:

  1. Download file you want to use
  2. If you don't want to remove some context menu, open file with notepad and simply delete unneccesary lines or add ';' before them
  3. Double click on file
  4. Select 'Yes' -> 'OK' if the system ask
  5. Done
@Petalousa
Petalousa / add_to_playlist.js
Created March 9, 2020 01:47
TamperMonkey add to playlist
// ==UserScript==
// @name YouTube add to playlist
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @include https://www.youtube.com/*
// @grant none
// ==/UserScript==
@MuhammadSaim
MuhammadSaim / rarreg.key
Last active April 27, 2025 07:28
Step 1: Create a file called rarreg.key Step 2: Paste into the file the raw content of this gist Step 3: Go to Winrar install directory (by default => c:\ProgramFiles\WinRAR\ ) Step 4: Paste the rarreg.key into WinRAR directory Step 5: Enjoy
RAR registration data
WinRAR
Unlimited Company License
UID=4b914fb772c8376bf571
6412212250f5711ad072cf351cfa39e2851192daf8a362681bbb1d
cd48da1d14d995f0bbf960fce6cb5ffde62890079861be57638717
7131ced835ed65cc743d9777f2ea71a8e32c7e593cf66794343565
b41bcf56929486b8bcdac33d50ecf773996052598f1f556defffbd
982fbe71e93df6b6346c37a3890f3c7edc65d7f5455470d13d1190
6e6fb824bcf25f155547b5fc41901ad58c0992f570be1cf5608ba9
@JerryLokjianming
JerryLokjianming / Crack Sublime Text Windows and Linux.md
Last active April 26, 2025 13:46
Crack Sublime Text 3.2.2 Build 3211 and Sublime Text 4 Alpha 4098 with Hex

How to Crack Sublime Text 3.2.2 Build 3211 with Hex Editor (Windows | Without License) ↓

  1. Download & Install Sublime Text 3.2.2 Build 3211
  2. Visit https://hexed.it/
  3. Open file select sublime_text.exe
  4. Offset 0x8545: Original 84 -> 85
  5. Offset 0x08FF19: Original 75 -> EB
  6. Offset 0x1932C7: Original 75 -> 74 (remove UNREGISTERED in title bar, so no need to use a license)
@umidjons
umidjons / youtube-dl-download-audio-only-on-best-quality.md
Last active November 14, 2024 21:20
Download Audio from YouTube with youtube-dl

Download Audio from YouTube

-i - ignore errors

-c - continue

-t - use video title as file name

--extract-audio - extract audio track