This file contains 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
#!/bin/bash | |
# Auto increment Version number when Archive | |
if [ $CONFIGURATION == Release ]; then | |
VERSIONNUM=$(/usr/libexec/PlistBuddy -c "Print CFBundleShortVersionString" "${PROJECT_DIR}/${INFOPLIST_FILE}") | |
NEWSUBVERSION=`echo $VERSIONNUM | awk -F "." '{print $3}'` | |
NEWSUBVERSION=$(($NEWSUBVERSION + 1)) | |
NEWVERSIONSTRING=`echo $VERSIONNUM | awk -F "." '{print $1 "." $2 ".'$NEWSUBVERSION'" }'` | |
/usr/libexec/PlistBuddy -c "Set :CFBundleShortVersionString $NEWVERSIONSTRING" "${PROJECT_DIR}/${INFOPLIST_FILE}" |
This file contains 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
/* | |
* jquery.loadasync.js | |
* | |
* DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
* Version 2, December 2004 | |
* | |
* Copyright (C) 2013 Su Yeol Jeon | |
* | |
* Everyone is permitted to copy and distribute verbatim or modified | |
* copies of this license document, and changing it is allowed as long |
This file contains 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 os | |
import re | |
BLUEPRINT = 'blueprint' | |
TARGET_DIR = 'myproject/templates' | |
RECURSIVE = True | |
EXTENSIONS = ['py', 'html', 'htm'] | |
pat = "url_for\('(?![a-z]+\.)(?!static)([a-z_]+)" | |
rep = "url_for('%s.\g<1>" % BLUEPRINT |
This file contains 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
class RequiredIf(object): | |
"""Validates field conditionally. | |
Usage:: | |
login_method = StringField('', [AnyOf(['email', 'facebook'])]) | |
email = StringField('', [RequiredIf(login_method='email')]) | |
password = StringField('', [RequiredIf(login_method='email')]) | |
facebook_token = StringField('', [RequiredIf(login_method='facebook')]) | |
""" |
This file contains 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
# -*- coding: utf-8 -*- | |
from datetime import datetime | |
import urllib2 | |
def kb_balance(account, password, resident, username): | |
""" | |
국민은행 계좌 잔액 빠른조회. 빠른조회 서비스에 등록이 되어있어야 사용 가능. | |
빠른조회 서비스: https://obank.kbstar.com/quics?page=C018920 |
This file contains 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
# -*- coding: utf-8 -*- | |
""" | |
This code won't be updated anymore. | |
Project has moved to repository: https://github.com/devxoul/korail | |
""" | |
import requests | |
from bs4 import BeautifulSoup | |
from datetime import datetime |
This file contains 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
set si | |
set nu | |
set expandtab | |
set shiftwidth=4 | |
set tabstop=4 | |
syntax enable | |
set background=light | |
colorscheme solarized |
This file contains 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
#!/bin/sh | |
ENCODING="utf-8" | |
for file in *.lproj/Localizable.strings; do | |
charset=`file -I "$file" | sed 's/.*charset=\(.*\)/\1/'` | |
if ! [[ "$charset" =~ "$ENCODING" ]] | |
then | |
output="$file.tmp" | |
iconv -f "$charset" -t "$ENCODING" "$file" > "$output" && |
This file contains 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
(?<!NSLocalizedString\()(?<!NSLog\()(?<!patternname:)(?<!imageNamed:)(?<!key:)(?<!@\{)(?<!\[)@".+" |
OlderNewer