These patches provide basic support for the Bootstrap grid system in Internet Explorer 6. The JavaScript code requires jQuery.
Feel free to fork & improve.
class A1 # A1 声波牙刷 | |
FEATURES = [ | |
"五档位调节, 20000 ~ 36000 次/分钟;", | |
"2分钟自动关闭, 档位记忆, 下次使用自动进入上一次选择档位;", | |
"感应式充电,一次充电可稳定使用30次以上;", | |
"标配4个可更换刷头" | |
] | |
@@questions = ["使用方法", "清洁方法", "保修电话"] |
#!/bin/zsh | |
# This script deletes the least-recently used (LRU) files from Polipo's cache | |
# once the partition it is on has less than $min_disk_free Bytes of free space | |
# left. | |
# | |
# It's meant to be used as a cron job, and it's a little more complicated than | |
# it needs to be, because I wrote it mostly to learn zsh. | |
local cache_dir="/var/cache/polipo/" |
<? | |
// Twitter self-hosted image service/url shortener by Ryan Petrich | |
// Installation: | |
// 1. Paste this script into the top of your HTTP root's index.php (rename index.html to index.php if it doesn't exist) | |
// 2. Add the following to your HTTP root's .htaccess file (create .htaccess if it doesn't exist): | |
// ErrorDocument 404 /index.php | |
// 3. Create a "s" subfolder and give it 777 permissions | |
// 4. Add the following as the custom URL for URL shortening in Twitter for iPhone's settings: | |
// http://yourdomain.com/?d=%@&p=password | |
// 5. Add the following as the custom URL for Image service: |
/* ~/Library/KeyBindings/DefaultKeyBinding.dict */ | |
{ | |
/* Additional Emacs bindings */ | |
"~f" = "moveWordForward:"; /* M-f */ | |
"~b" = "moveWordBackward:"; /* M-b */ | |
"~<" = "moveToBeginningOfDocument:"; /* M-< */ | |
"~>" = "moveToEndOfDocument:"; /* M-> */ | |
"~v" = "pageUp:"; /* M-v */ | |
"^v" = "pageDown:"; /* C-v */ |
These patches provide basic support for the Bootstrap grid system in Internet Explorer 6. The JavaScript code requires jQuery.
Feel free to fork & improve.
#!/usr/bin/env ruby | |
# | |
# Generate css for the pro glyphicons. | |
# Run this script in the glyphicons_pro/glyphicons/png folder | |
# from the purchased zip file. | |
# | |
# see http://glyphicons.com/ for purchase/license information. | |
# | |
render = (ARGV.include? "--html") ? :html : :css |
#!/usr/bin/env bash | |
# ciphertest.sh | |
# Hereward Cooper <coops@fawk.eu> - 6th Sept 2012 | |
# Report what ciphers are support by a given host | |
# Modifed from code found here: http://superuser.com/questions/109213/ | |
# Do we want to pause between each cipher? | |
DELAY=0 |
/** | |
* Server Side | |
*/ | |
var players = []; | |
var count = 0; | |
sails.io.on('connection', function (socket) { | |
var player = {}; | |
socket.on('register', function (uuid) { |
/** | |
* Photoshop layer comp cleanup script | |
* | |
* This script will run through all the layer comps, find layers that are hidden in every comp | |
* as well as any groups that are empty and delete them. Save before doing this just in case ;) | |
* | |
* @author Glen Cheney (http://glencheney) | |
* @version 1.1 | |
* @date 7.10.12 | |
*/ |
#! /usr/bin/env ruby | |
str = $stdin.read | |
if RUBY_VERSION < '1.9' | |
print str | |
exit | |
end | |
str.force_encoding 'utf-8' | |
str.gsub! /(\p{Han})([a-zA-Z0-9\(\)\[\]\{\}])/u do | |
"#$1 #$2" |