@(日常笔记)
script_name
script_description
script_author
script_version
// Squish bindings for python | |
// http://stackoverflow.com/questions/10972595/dxt-compression-for-python | |
// modify Stardrad | |
#include <squish.h> | |
#include "pysquish.h" | |
extern "C" { | |
void CompressMasked(u8 const* rgba, int mask, void* block, int flags) { |
# Python27/Lib/mimetypes.py | |
# Line 248 | |
# Original Line, comment the following lines | |
def enum_types(mimedb): | |
i = 0 | |
while True: | |
try: |
date.today().strftime(u'%Y年%m月%d日'.encode('utf-8')).decode('utf-8') | |
#输出:2012年11月27日 |
\documentclass[$if(fontsize)$$fontsize$,$endif$$if(lang)$$lang$,$endif$]{$documentclass$} | |
\usepackage[T1]{fontenc} | |
\usepackage{lmodern} | |
\usepackage{amssymb,amsmath} | |
\usepackage{ifxetex,ifluatex} | |
\usepackage{fixltx2e} % provides \textsubscript | |
% use microtype if available | |
\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex | |
\IfFileExists{microtype.sty}{\usepackage{microtype}}{} | |
\usepackage[utf8]{inputenc} |
# -*- coding: utf-8 -*- | |
""" | |
Created on Wed Jan 23 11:19:33 2013 | |
@author: Stardrad | |
""" | |
import sys, os, codecs | |
if len(sys.argv) < 2: | |
print u'参数不够' |
# -*- coding: utf-8 -*- | |
""" | |
Created on Mon May 20 16:15:32 2013 | |
@author: Yinxy | |
""" | |
import os, fnmatch | |
for pathName, dirNames, fileNames in os.walk('.'): | |
print pathName |
# -*- coding: utf-8 -*- | |
""" | |
Created on Fri May 24 10:29:36 2013 | |
@author: Stardrad Yin | |
""" | |
# http://fourier.eng.hmc.edu/e161/lectures/wht/node3.html | |
import numpy | |
from Tkinter import Tk |
# -*- coding: utf-8 -*- | |
""" | |
Created on Thu Jul 11 09:50:16 2013 | |
@author: Stardrad Yin | |
""" | |
import os, fnmatch, struct | |
timeDic = {'mv00':89, 'mv04':67, 'mv05':102, 'mv06':29, 'mv07':27,\ | |
'mv08':34, 'mv10':21, 'mv12':21} | |
#!/bin/sh | |
# chkconfig: 2345 55 45 | |
# description: start or stop gunicorn | |
# chkconfig –add gunicorn in centos and redhat | |
# update-rc.d gunicorn defaults in debian and ubuntu | |
### BEGIN INIT INFO | |
# Provides: gunicorn | |
# Required-Start: $all |