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/perl -w | |
use WWW::Mechanize; | |
my $file = "test.txt"; | |
my $ofile = ">output.txt"; | |
my $checkURL = "http://www.ebi.ac.uk/pdbsum/"; | |
open FILE, $file or die "File open error!!"; | |
open FILE2, $ofile or die "File open error!!"; |
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
#include<stdio.h> | |
#include<stdlib.h> | |
int check(int); | |
int main(){ | |
int i,j,k; | |
int c=0; | |
while(scanf("%d %d",&i,&j)==2){ | |
if(j>=i){ |
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
#include<stdio.h> | |
#include<stdlib.h> | |
long long int a; | |
long long int set(int); | |
int main(){ | |
int k,n; | |
int i; | |
int *ptr; | |
while(scanf("%d %d",&k,&n)==2){ | |
ptr = (int*)malloc(sizeof(int)*n); |
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
$(document).ready(function() { | |
var w = new Array(); | |
var preload = new Array(); | |
mylength=$(".popshow img").size(); | |
$(".popshow img").each(function(e){ | |
temp=$(this).clone(); | |
w[e]=temp; | |
preload[e] = new Image(); | |
preload[e].src = $(w[e]).attr('rel'); | |
}); |
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
#include<stdio.h> | |
#include<string.h> | |
#define MAX 205 | |
void mirror(char*); | |
int main(){ | |
char input[MAX][MAX]={0}; | |
char result[MAX]; | |
int i,j,count; | |
int maxlength = 0; | |
int add; |
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
ps -A | grep 'Dock' |
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
killall Dock (ProcessName) |
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
%q(Don't worry about escaping ' characters!) | |
%Q|"How are you?", he said| | |
%-This string literal ends with a newline\n- # Q omitted in this one |
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
document = <<THERE # 下面的end tag: THERE 前面不能有空白 | |
This is a string literal. | |
It has two lines and abruptly ends... | |
THERE | |
document = <<-HERE # 下面的close tag: HERE 前面"可以"有空白 | |
This is a string literal. | |
It has two lines and abruptly ends... | |
HERE |
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
document = <<-"# # #" # 下面這個是不是有種「樣版引擎」的感覺??可以很直覺的把HTML抽出來 | |
<html><head><title>#{title}</title></head> | |
<body> | |
<h1>#{title}</h1> | |
#{body} | |
</body> | |
</html> | |
# # # |
OlderNewer