Skip to content

Instantly share code, notes, and snippets.

View EragonJ's full-sized avatar
🇯🇵
Learning Japanese

Ryu | Chia-Lung Chen EragonJ

🇯🇵
Learning Japanese
View GitHub Profile
#!/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!!";
#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){
#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);
$(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');
});
#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;
ps -A | grep 'Dock'
killall Dock (ProcessName)
%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
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
document = <<-"# # #" # 下面這個是不是有種「樣版引擎」的感覺??可以很直覺的把HTML抽出來
<html><head><title>#{title}</title></head>
<body>
<h1>#{title}</h1>
#{body}
</body>
</html>
# # #