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 | |
echo 'hello world'; |
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
#!/bin/bash | |
max_file_count=15 | |
file_count=$(ls mysql-* | wc -l) | |
if [ $file_count -gt $max_file_count ] | |
then | |
rm mysql-* | |
fi |
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
@namespace url(http://www.w3.org/1999/xhtml); | |
@-moz-document regexp("https?://www.google.com/reader/.*") { | |
#top-bar { | |
height: 40px !important; | |
} | |
#logo { | |
height: 27px !important; | |
margin: -13px 0 0 11px !important; |
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 | |
namespace OOXX\Entity; | |
/** | |
* @Entity(repositoryClass="OOXX\Entity\Repository\TopicRepository") @Table(name="topic") | |
*/ | |
class Topic | |
{ | |
/** |
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/php | |
<?php | |
if (!isset($_SERVER['argv'][1])) { | |
exit('参数错误'); | |
} | |
$search = $_SERVER['argv'][1]; | |
$output = shell_exec('git fsck --lost-found | grep commit'); | |
$lines = explode("\n", $output); |
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
#!/bin/bash | |
echo -n "File name:" | |
read file_name | |
echo -n "Title:" | |
read title | |
echo -n "Category:" | |
read category |
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
button.classy,button.classy:disabled,button.classy.disabled,a.button.classy:disabled,a.button.classy.disabled,button.classy:disabled:hover,button.classy.disabled:disabled:hover,a.button.classy.disabled:hover:disabled,a.button.classy.disabled:hover,a.button.classy,button.classy:disabled:hover,button.classy.disabled:disabled:hover,a.button.classy:disabled:hover,a.button.classy.disabled:disabled:hover,a.button.classy.disabled:hover{position:relative;top:1px;margin-left:10px;height:34px;padding:0;overflow:visible;font-family:Helvetica,arial,freesans,clean,sans-serif;font-weight:bold;font-size:12px;color:#333;text-shadow:1px 1px 0 #fff;white-space:nowrap;background:white;filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='white',endColorstr='#e1e1e1');background:-webkit-gradient(linear,left top,left bottom,from(white),to(#e1e1e1));background:-moz-linear-gradient(top,white,#e1e1e1);background:-o-linear-gradient(top,white,#e1e1e1);border:none;border-bottom:1px solid #ebebeb;border-radius: |
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
#!/bin/sh | |
# | |
# A git hook script to find and fix trailing whitespace | |
# in your commits. Bypass it with the --no-verify option | |
# to git-commit | |
# | |
# Find files with trailing whitespace | |
for file in `git diff --check --cached | grep '^[^+-]' | grep -o '^.*[0-9]\+:'` ; do |
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
// ==UserScript== | |
// @name No Image In Douban Group | |
// @namespace douban.com | |
// @description No image in douban group | |
// @include http://www.douban.com/group/topic/* | |
// ==/UserScript== | |
var oContent = document.getElementById('content'); | |
var aImgs = oContent.getElementsByTagName('img'); | |
var iImgCount = aImgs.length; |
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
// ==UserScript== | |
// @name My Douban | |
// @namespace yesmeck.com | |
// @description 自用豆瓣脚本 | |
// @include http://www.douban.com | |
// @include http://www.douban.com/* | |
// ==/UserScript== | |
var baseUrl = 'http://www.douban.com/'; |
OlderNewer