Skip to content

Instantly share code, notes, and snippets.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@youminkim
youminkim / Crawling Bills.ipynb
Last active March 9, 2020 02:15
국회 표결정보 긁어오기
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@youminkim
youminkim / birthday.ipynb
Created February 24, 2019 15:14
G Suite Directory's Birthday alarms to Slack
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@youminkim
youminkim / dengue.py
Created October 9, 2017 04:29
Dengue helper
#!/usr/bin/python
# -*- coding: utf-8 -*-
import urllib, urllib2, zipfile, StringIO, json, pprint, logging
import xml.etree.ElementTree as ET
from pykml import parser
import googlemaps
from math import radians, cos, sin, asin, sqrt
import sys
rl = lambda : raw_input()
problems = int(rl())
cnt = 0
B = []
N = 99
def p(n):
ret = range(N)
@youminkim
youminkim / auto.js
Last active June 24, 2016 08:25
Pinterest Hack
var seconds = 3600/100; // hour limit 300
var move = 150;
// selectors
var sel_like = 'button.LikeButton.rounded.PinLikeButton.Button:not(.unlike)';
var sel_board = 'Button.hasText.btn.rounded.Button.boardFollowUnfollowButton:not(.dim)';
var sel_follow = 'button.UserFollowButton.btn.rounded.Button:not(.dim)';
function click(sel, n){
e=document.createEvent('HTMLEvents');
import android.content.Context;
import android.graphics.Bitmap;
import android.renderscript.Allocation;
import android.renderscript.Element;
import android.renderscript.RenderScript;
import android.renderscript.ScriptIntrinsicBlur;
import com.squareup.picasso.Transformation;
public class BlurTransform implements Transformation {
@youminkim
youminkim / gas
Created March 24, 2014 02:38
google apps script general functions
function now_timestamp(){
return new Date().getTime();
}
function timestampToDate(sec) {
return new Date(sec*1000);
}
import sys
rl = lambda: raw_input()#sys.stdin.readline()
problems = int(rl())
def recur(check_a,check_b, length):
# print check_a, check_b, length
global A,B
if len(check_a) + len(check_b) == 0 :
@youminkim
youminkim / pi.py
Last active December 20, 2015 13:19
pi.py
d = [0]*10001
full_str = ""
full_len = 0
full_hash = {}
# diff = lambda x: int(full_str[x+1]) - int(full_str[x])
def f(first,end):
s = full_str[first:end]