This file contains hidden or 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 bash | |
set -e | |
here="$(cd "${0%/*}"; pwd)" | |
for file in "$here"/*; do | |
name="$(basename "$file" .md)" | |
[[ $name = bin ]] && dotname="$name" || dotname=".${name}" | |
if ! [[ "install readme" =~ $name || $name =~ ".plist" || -e ~/$dotname || -d $file/.git ]]; then |
This file contains hidden or 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
import os | |
import sys | |
from distutils.core import setup | |
from distutils.sysconfig import get_python_lib | |
# Warn if we are installing over top of an existing installation. This can | |
# cause issues where files that were deleted from a more recent Django are | |
# still present in site-packages. See #18115. | |
overlay_warning = False |
This file contains hidden or 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 |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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. |