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 | |
# 猜数字游戏Shell版程序 | |
function generateGoal() | |
{ # 生成被猜数字 | |
# 准备一个包含0-9的池 | |
local pool=($(seq 0 9)) | |
for i in $(seq 0 3) | |
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
#!/bin/sh | |
HIT="X" | |
BLANK="." | |
function printBanner() | |
{ | |
echo "****************************" | |
echo "* PLANE *" | |
echo "****************************" |
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 | |
MINE="@" | |
BOOM="X" | |
BLANK=" " | |
NEW="." | |
MARK="M" | |
OPEN_FLAG=1 | |
MARK_FLAG=2 |
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
<!DOCTYPE html> | |
<html lang="ja-JP"> | |
<head> | |
<title>From</title> | |
<meta charset="UTF-8"> | |
</head> | |
<body onload="document.getElementById('closed-flg').checked = true;"> | |
<input type="checkbox" id="closed-flg"/> | |
<a href="#" onclick="window.open('popup.html', 'popup'); document.getElementById('closed-flg').checked = false; ">popup</a> | |
<a href="#" id="link-to" onclick="window.location.href='to.html' + (document.getElementById('closed-flg') ? '' : '?popup');">To</a> |
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
# 其它内容.... | |
default_asides: [asides/recent_posts.html, asides/weibo.html, asides/github.html, asides/[Twitter][].html, asides/googleplus.html] | |
# 其它内容.... | |
# Please refer to http://weibo.com/tool/weiboshow to get your uid and verifier. | |
weibo_uid: 1098907490 | |
weibo_verifier: abd54ad9 |
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
set LANG=zh_CN.UTF-8 | |
set LC_ALL=zh_CN.UTF-8 |
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
# Please refer to http://weibo.com/tool/weiboshow to get your uid and verifier. | |
weibo_uid: 1098907490 | |
weibo_verifier: abd54ad9 | |
weibo_fansline: 0 # How many lines for the fan list | |
weibo_show: true # Whether you want your weibo content to be shown | |
weibo_pic: true # Whether you want the pictures in weibo to be shown | |
weibo_skin: 10 # Please refer to http://weibo.com/tool/weiboshow | |
weibo_share: true # Whether show the sharing button |
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
import java.util.Calendar; | |
/** | |
* This is a class to prove that merge strings by StringBuffer is quite quicker than String. | |
* | |
* @author Programus | |
* | |
*/ | |
public class StringMerger { | |
/** |
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
import java.lang.ref.WeakReference; | |
/** | |
* Class to research strings. | |
* constant string like "AAA" won't be reclaimed while instance created by new will. | |
* when you new a String by a constant string, there will be two memory field stored the same value. | |
* so initialize a String by constant String is recommended. | |
* @author Programus | |
*/ | |
public class NewOrNot { |
OlderNewer