Skip to content

Instantly share code, notes, and snippets.

View junho85's full-sized avatar
💭
Working

JunHo Kim (김준호) junho85

💭
Working
View GitHub Profile
# -*- coding: utf-8 -*-
from datetime import datetime
import urllib2
def kb_balance(account, password, resident, username):
"""
국민은행 계좌 잔액 빠른조회. 빠른조회 서비스에 등록이 되어있어야 사용 가능.
빠른조회 서비스: https://obank.kbstar.com/quics?page=C018920
@junho85
junho85 / korail.py
Created January 22, 2014 00:50 — forked from devxoul/korail.py
# -*- coding: utf-8 -*-
import requests
from bs4 import BeautifulSoup
from datetime import datetime
session = requests.session()
class Train(object):
var page= require('webpage').create(),
system = require('system');
var url = 'http://www.ingress.com/intel';
var date = (new Date()).toISOString();
var output = '{{PATH}}' + date + '.png';
phantom.addCookie({
name: 'ACSID',
value: '{{ACSID}}',
@junho85
junho85 / .vimrc
Last active April 21, 2016 01:45
my .vimrc
set tags=./tags,tags
set tags+=~/src2/tags
filetype plugin on
filetype indent on
set tabstop=4
set et "expandtab. tab 을 space 로 처리
set sw=4 "shift width
@junho85
junho85 / jackson.java
Last active August 29, 2015 14:15
Jackson json parse from URL
JsonFactory jsonFactory = new JsonFactory();
ObjectMapper objectMapper = new ObjectMapper();
try {
JsonParser jp = jsonFactory.createParser(new URL("http://somewhere/test.json"));
JsonNode root = objectMapper.readTree(jp);
System.out.println(root.get("status"));
System.out.println(root.get("data"));
System.out.println(root.toString());
// json array to list
@junho85
junho85 / gist:79fd7077e2fb55deed11
Last active August 29, 2015 14:21
IntelliJ Useful Plugins

IntelliJ Useful Plugins

  • lombok
  • FindBugs-IDEA
@junho85
junho85 / .tmux.conf
Last active November 22, 2017 09:44
tmux.conf
setw -g mode-mouse on
set -g mouse-select-pane on
set -g mouse-resize-pane on
set -g mouse-select-window on
setw -g mode-keys vi
# Use Alt-arrow keys without prefix key to switch panes
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
@junho85
junho85 / my.ahk
Created July 3, 2015 01:46
my autohotkey
; CapsLock to ESC
classname = ""
keystate = ""
*CapsLock::
WinGetClass, classname, A
if (classname = "PuTTY" or classname = "Vim" or classname="mintty" or "TMobaXtermForm") {
SetCapsLockState, Off
send,{ESC}
}
@junho85
junho85 / tmux.md
Last active May 11, 2017 06:30
tmux shortcuts, cheatsheet

tmux shortcuts, cheatsheet

new session with name

tmux new -s <name>

show session list

tmux ls
@junho85
junho85 / hello.c
Created July 14, 2015 12:01
hello.c
#include <stdio.h>
int main() {
printf("hello world!");
return 0;
}