Skip to content

Instantly share code, notes, and snippets.

Working at home

Sejong Yang kingsj0405

Working at home
Block or report user

Report or block kingsj0405

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
This program is wrapper of face_recognition on the following link
You need to install followings
- Python3.3+ or Python2.7
- dlib
- face_recognition
For more information visit ageithey/face_recognition
kingsj0405 / check_cnt_of_pep.js
Last active Apr 9, 2019
연세대학교 관련 스크립트
View check_cnt_of_pep.js
// 신청인원 보고서
// 신청내역 나오는 화면에서 콘솔(F12) 열어서
var data_my_mil;
var finished1 = false;
var finished2 = false;
function call_data(){
finished1 = false;
View Download Google Drive files with WGET
function gdrive_download () {
CONFIRM=$(wget --quiet --save-cookies /tmp/cookies.txt --keep-session-cookies --no-check-certificate "$1" -O- | sed -rn 's/.*confirm=([0-9A-Za-z_]+).*/\1\n/p')
wget --load-cookies /tmp/cookies.txt "$CONFIRM&id=$1" -O $2
rm -rf /tmp/cookies.txt
Pseudo-random django secret key generator.
- Does print SECRET key to terminal which can be seen as unsafe.
import string
import random
# Get ascii Characters numbers and punctuation (minus quote characters as they could terminate string).
chars = ''.join([string.ascii_letters, string.digits, string.punctuation]).replace('\'', '').replace('"', '').replace('\\', '')
kingsj0405 /
Last active Aug 24, 2017
dining code crawler
from urllib import request
from bs4 import BeautifulSoup
with open('output.txt', 'w') as outfile:
for i in range(1, 11):
#url = '' + str(i) + '&chunk=10&query=%EB%8F%99%ED%83%84'
url = '' + str(i) + '&chunk=10&query=%EC%96%91%EC%9E%AC'
content = request.urlopen(url).read()
soup = BeautifulSoup(content)
for name in soup.findAll('div', { 'class' : 'dc-restaurant-name' }):
You can’t perform that action at this time.