MD5: 59bab8f71f8c096cd3f72cd73851515d
Rename it to: Sublime Text
Make it executable with: chmod u+x Sublime\ Text
#!/bin/sh | |
# Simple script to start Shadowsocks + GFWList and configures | |
# OS X system preferences to use it | |
if [[ $(id -u) -ne 0 ]] | |
then | |
sudo sh $0 | |
exit | |
fi |
#coding=utf8 | |
##版本:1.0 | |
##环境:python2.7 | |
##作者:moxie | |
##日期:2013.08.23 | |
##说明:文件生成目录为:D:/ludatui | |
import urllib2,urllib | |
import re |
# Extension of http://www.yilmazhuseyin.com/blog/dev/create-thumbnails-imagefield-django/ | |
# Note: image_folder and thumbnail_folder are both a callable (ie. a lambda that does a '/'.join()) | |
class Image(Media): | |
image = models.ImageField( | |
upload_to=image_folder | |
) | |
thumbnail = models.ImageField( |