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
這個 CSS 樣式表最初由 howar31 製作, CrBoy 為了記錄改寫的過程所以放上 gist.github。 | |
This stylesheet is originally made by howar31. CrBoy put it on gist.github for modifying and improving. |
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
.DS_Store |
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
all: set_new_hand set_unexpected set_terminate | |
set_new_hand: set_new_hand.cpp | |
g++ -g -o set_new_hand set_new_hand.cpp | |
set_unexpected: set_unexpected.cpp | |
g++ -g -o set_unexpected set_unexpected.cpp | |
set_terminate: set_terminate.cpp | |
g++ -g -o set_terminate set_terminate.cpp |
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
#include <iostream> | |
#include <string> | |
#include <iomanip> | |
using namespace std; | |
template<size_t max> string inc_seq() | |
{ | |
string s; | |
for(int i=1; i<=max; i++) |
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
-------------------------------------------------------------------------------- | |
MB | |
9.096^ # | |
| @:@# | |
| @:::@:@# | |
| @:::@@@:: @:@# | |
| @:: @ @:: @:@# | |
| @@:: @ @:: @:@# |
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
#include <iostream> | |
#include <bitset> | |
using namespace std; | |
int main () | |
{ | |
int x; | |
cout<<"Please input one number: "; | |
cin>>x; | |
cout << bitset<32>(x) << endl; |
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
function _ps1_git(){ | |
local ref cnt branch clean | |
ref=$(git symbolic-ref HEAD 2> /dev/null) | |
cnt=$(git branch 2> /dev/null|grep -c -E '*') | |
branch=$(echo "${ref#refs/heads/}") | |
if [[ "${branch}" == "" ]] | |
then | |
return | |
fi |
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
#include <cstdio> | |
#include <cstdlib> | |
#include <cmath> | |
#include <ctime> | |
#include <cstdlib> | |
#include <vector> | |
#include <algorithm> | |
using namespace std; |
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
http://www.ithome.com.tw/itadm/article.php?c=66229 |
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
encoding_utf8: encoding_utf8.c | |
gcc -o encoding_utf8 encoding_utf8.c | |
# I forget how to use variables....orz | |
#enc-$.c: encoding_utf8 $.c | |
# ./encoding_utf8 <$.c >enc-$.c | |
# | |
#$: enc-$.c | |
# gcc -o $ enc-$.c |