This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
12306 Auto Query => A javascript snippet to help you book tickets online. | |
Copyright (C) 2011 Jingqin Lynn | |
Includes jQuery | |
Copyright 2011, John Resig | |
Dual licensed under the MIT or GPL Version 2 licenses. | |
http://jquery.org/license | |
Includes Sizzle.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
王 | |
江 | |
周 | |
胡 | |
刘 | |
李 | |
吴 | |
毛 | |
温 | |
习 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def frange2(start, end=None, inc=1.0): | |
"A faster range-like function that does accept float increments..." | |
if end == None: | |
end = start + 0.0 | |
start = 0.0 | |
else: start += 0.0 # force it to be a float | |
count = int((end - start) / inc) | |
if start + count * inc != end: | |
# Need to adjust the count. AFAICT, it always comes up one short. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def distance_of_time_in_words(from_time, to_time = 0, include_seconds_or_options = {}, options = {}) | |
if include_seconds_or_options.is_a?(Hash) | |
options = include_seconds_or_options | |
else | |
ActiveSupport::Deprecation.warn "distance_of_time_in_words and time_ago_in_words now accept :include_seconds " + | |
"as a part of options hash, not a boolean argument" | |
options[:include_seconds] ||= !!include_seconds_or_options | |
end | |
options = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$tel_no = $_GET['hm']; | |
$c = $_GET['c']?$_GET['c']:0; | |
$c++; | |
?> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>迷你轰炸台 - 短信炸弹 - BETA!</title> | |
<?php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant::Config.run do |config| | |
config.vm.box = "lucid32" | |
# config.vm.box_url = "http://files.vagrantup.com/lucid32.box" | |
config.vm.forward_port 80, 8080 | |
config.vm.network :hostonly, "192.168.10.10" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: utf-8 | |
# 加入上面一句才能使用中文注释 | |
from pyglet.gl import * # OpenGL,GLU接口 | |
from pyglet.window import key # 键盘常量,事件 | |
from ctypes import c_float # 导入c类型的float | |
import math | |
import random | |
import time | |
SECTOR_SIZE = 16 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (localStorage.userstyle){ | |
var style = document.createElement('style'); | |
style.textContent = localStorage.userstyle; | |
style.inject(document.body); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
==> make install | |
Making install in po | |
if test "aria2" = "gettext-tools"; then \ | |
.././install-sh -c -d /usr/local/Cellar/aria2/1.18.1/share/gettext/po; \ | |
for file in Makefile.in.in remove-potcdate.sin quot.sed boldquot.sed [email protected] [email protected] insert-header.sin Rules-quot Makevars.template; do \ | |
/usr/bin/install -c -m 644 ./$file \ | |
/usr/local/Cellar/aria2/1.18.1/share/gettext/po/$file; \ | |
done; \ | |
for file in Makevars; do \ | |
rm -f /usr/local/Cellar/aria2/1.18.1/share/gettext/po/$file; \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
Sentry | |
====== | |
Sentry is a realtime event logging and aggregation platform. It specializes | |
in monitoring errors and extracting all the information needed to do a proper | |
post-mortem without any of the hassle of the standard user feedback loop. | |
Sentry is a Server |
OlderNewer