- version 3.6
Check those constraints:
$this->anything()
<?php | |
/** | |
* Dowload image file from tumblr. | |
* | |
* @author sotarok | |
* @copyright 2009 sotarok | |
* @lisence The MIT License | |
*/ | |
define("BASE_DIR", dirname(__FILE__) . "/"); |
<?php | |
/* | |
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | |
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | |
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | |
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | |
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | |
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | |
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
#! /usr/bin/env python | |
# -*- encoding: utf-8 -*- | |
# | |
# Generate an HTML Snippet for WordPress Blogs from reStructuredText. | |
# | |
# This is a modification of the standard HTML writer that leaves out | |
# the header, the body tag, and several CSS classes that have no use | |
# in wordpress. What is left is an incomplete HTML document suitable | |
# for pasting into the WordPress online editor. | |
# |
# Usage: | |
# [sudo] gem install mechanize | |
# ruby tumblr-photo-ripper.rb | |
require 'rubygems' | |
require 'mechanize' | |
# Your Tumblr subdomain, e.g. "jamiew" for "jamiew.tumblr.com" | |
site = "doctorwho" |
#!/bin/bash | |
# ecryptFS mount script | |
# taken and slightly modified version | |
# original at http://superuser.com/questions/227713/ecryptfs-how-to-mount-a-backup-of-an-encrypted-home-dir | |
# ROOT should be the parent of the .ecryptfs and .Private folders | |
if [ ! -d "$1" -o "$2" == "" ]; then | |
echo "usage: $0 /home/.ecryptfs/USER /mnt/USER" | |
exit 1 |
# Install Bash 4 using homebrew | |
brew install bash | |
# Or build it from source... | |
curl -O http://ftp.gnu.org/gnu/bash/bash-4.2.tar.gz | |
tar xzf bash-4.2.tar.gz | |
cd bash-4.2 | |
./configure --prefix=/usr/local/bin && make && sudo make install | |
# Add the new shell to the list of legit shells |
# default.custom.yaml | |
# save it to: | |
# ~/.config/ibus/rime (linux) | |
# ~/Library/Rime (macos) | |
# %APPDATA%\Rime (windows) | |
patch: | |
schema_list: | |
- schema: luna_pinyin # 朙月拼音 | |
- schema: luna_pinyin_simp # 朙月拼音 简化字模式 |
一,安裝簡體->繁體映射碼表:(該項目由opencc維護:http://code.google.com/p/opencc) | |
文件1:http://code.google.com/p/rimeime/source/browse/trunk/misc/opencc/data/simp_to_trad_characters.ocd | |
文件2:http://code.google.com/p/rimeime/source/browse/trunk/misc/opencc/data/simp_to_trad_phrases.ocd | |
安裝位置:共享資料目錄 | |
如:/Library/Input Methods/Squirrel.app/Contents/SharedSupport/opencc | |
二,添加opencc簡繁配置文件: | |
詳見:zhs2zht.ini | |
安裝位置:共享資料目錄 | |
如:/Library/Input Methods/Squirrel.app/Contents/SharedSupport/opencc |