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
date=`echo "$(curl -sD - google.com | grep ^Date: | cut -d' ' -f3-6)Z" | tr ":" " "` | |
read day month year hour minute second <<< $date | |
months="Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec" | |
string="${months%$month*}" | |
month_num="$((${#string}/4 + 1))" | |
if [ ${#month_num} == 1 ]; then | |
month_num=0$month_num |
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> | |
<html> | |
<head> | |
<title>info</title> | |
<LINK REL=StyleSheet HREF="style.css" TYPE="text/css"> | |
<script type="text/javascript" src="jquery.js"></script> | |
<script type="text/javascript"> | |
$(document).ready(function(){ | |
function replaceImage(callback) |
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
svn status --ignore-externals | grep ? | cut -d" " -f8 | xargs -d"\n" svn add |
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 yield_or_eval &block | |
return unless block | |
if block.arity > 0 | |
yield self | |
else | |
self.instance_eval(&block) | |
end | |
end |