MD5: 59bab8f71f8c096cd3f72cd73851515d
Rename it to: Sublime Text
Make it executable with: chmod u+x Sublime\ Text
| // | |
| // KSDIdlingWindow.h | |
| // | |
| // Created by Brian King on 4/13/10. | |
| // Copyright 2010 King Software Designs. All rights reserved. | |
| // | |
| // Based off: | |
| // http://stackoverflow.com/questions/273450/iphone-detecting-user-inactivity-idle-time-since-last-screen-touch | |
| // |
| #!/usr/bin/env python | |
| import getpass, mechanize, optparse, os.path, sys | |
| parser = optparse.OptionParser() | |
| parser.add_option('--login') | |
| parser.add_option('--password') | |
| parser.add_option('--filename') | |
| parser.add_option('--description') | |
| parser.add_option('--private', action='store_true', default=False) |
| #!/usr/bin/python | |
| # | |
| # git-slim | |
| # | |
| # Remove big files from git repo history. | |
| # | |
| # Requires GitPython (https://github.com/gitpython-developers/GitPython) | |
| # | |
| # References: | |
| # - http://help.github.com/remove-sensitive-data/ |
| @interface NSString (Extension) | |
| - (BOOL) isAnEmail; | |
| - (BOOL) isNumeric; | |
| @end | |
| @implementation NSString (Extension) | |
| /** |
| // Capture author info & user status | |
| NSDictionary *articleParams = [NSDictionary dictionaryWithObjectsAndKeys: | |
| @"John Q", @"Author", | |
| @"Registered", @"User_Status", | |
| nil]; | |
| [Flurry logEvent:@"Article_Read" withParameters:articleParams]; |
| # -*- coding: utf-8 -*- | |
| import sys | |
| reload(sys) | |
| sys.setdefaultencoding('utf-8') | |
| # unsplash 全站下载脚本 | |
| # 请先安装 requests ,BeautifulSoup | |
| # pip install requests beautifulsoup4 | |
| # 运行 python unsplash.py | |
| # 输入最小页数和最大页数 |
| server { | |
| listen 80; | |
| server_name bitcall.org; | |
| root /usr/share/nginx/html; | |
| #charset koi8-r; | |
| # access_log /var/log/nginx/log/host.access.log main; | |
| if (!-e $request_filename) { | |
| rewrite ^([_0-9a-zA-Z-]+)?(/wp-.*) $2 last; | |
| rewrite ^([_0-9a-zA-Z-]+)?(/.*.php)$ $2 last; | |
| rewrite ^ /index.php last; |
| """ | |
| Turn a piano MIDI file into a basic 3D animated piano video. | |
| See the result here: | |
| I am leaving it as a script because it is not tested on enough MIDI files yet. | |
| Zulko 2014 | |
| This script is released under a Public Domain (Creative Commons 0) licence. |