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
function parseIntComma(x){ | |
// 쉼표가 섞인 수 문자열을 정수로 변환한다. | |
return parseInt(x.replaceAll(",","")); | |
} | |
async function getJson1(){ | |
// 최근 14일 동안의 게시물, 댓글 수를 받아온다. | |
let response1=await fetch("https://gall.dcinside.com/ajax/lottery_ajax/get_statistics", { | |
"headers": { | |
"accept": "application/json, text/javascript, */*; q=0.01", | |
"accept-language": "en-US,en;q=0.9,ko;q=0.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
Windows Registry Editor Version 5.00 | |
[HKEY_CLASSES_ROOT\*\shell\notepad] | |
@="*/shell/notepad/Edit with notepad" | |
"Icon"="C:\\Windows\\System32\\notepad.exe" | |
[HKEY_CLASSES_ROOT\*\shell\notepad\command] | |
@="C:\\Windows\\System32\\notepad.exe %1" | |
[HKEY_CLASSES_ROOT\Directory\shell\cmdhere] |
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
API_KEY = 'INPUT YOUR API KEY' | |
import requests | |
def convertUUID(UUID): | |
igns = requests.get(f'https://api.mojang.com/user/profiles/{UUID}/names').json() | |
return igns[-1]['name'] | |
data = requests.get(f'https://api.hypixel.net/guild?key={API_KEY}&name=zest').json() | |
guildExp = {} | |
guildMembers = data['guild']['members'] |
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 win32gui, win32con, time | |
server = win32gui.FindWindow(None, 'C:\\WINDOWS\\system32\\cmd.exe') | |
def command(x): | |
for y in x: | |
win32gui.PostMessage(server, win32con.WM_CHAR, ord(y), 0) | |
win32gui.PostMessage(server, win32con.WM_CHAR, 13, 0) | |
while True: |
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
# original code: https://developers.google.com/youtube/v3/docs/videos/update | |
import datetime | |
import sys | |
import httplib2 | |
from apiclient.discovery import build | |
from apiclient.errors import HttpError | |
from oauth2client.client import flow_from_clientsecrets | |
from oauth2client.file import Storage | |
from oauth2client.tools import argparser, run_flow |
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 requests | |
wish_id = 1276665214 | |
url2 = 'https://padlet.com/0x5067b10/0' | |
def main(x): | |
url = 'https://padlet.com/api/5/reactions' | |
payload = { | |
'wish_id': wish_id, | |
'value': 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
import sys, time | |
from PyQt5.QtWidgets import * | |
from threading import Thread | |
class MyWindow(QWidget): | |
def __init__(self): | |
super().__init__() | |
self.tableWidget = QTableWidget(self) | |
self.tableWidget.setColumnCount(2) | |
self.tableWidget.setRowCount(2) |
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, zlib, re | |
def decrypt(filename): | |
with open(filename, 'rb') as rbf: | |
dat = rbf.read() | |
a = [x^11 for x in dat] | |
b = bytearray(a).decode() | |
c = b.replace('-','+').replace('_','/') |