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
//gdfgfdg<a href="/excel/dsfsf-).xls">/excel/dsfsf-).xls</a>dsfdsfdsf.... | |
internal class Program | |
{ | |
public static string source = @"C:\Users\JBian\Documents\visual studio 2010\Projects\ConsoleApplication23\ConsoleApplication23\Files\source.txt"; | |
public static string result = @"C:\Users\JBian\Documents\visual studio 2010\Projects\ConsoleApplication23\ConsoleApplication23\Files\result.txt"; | |
private static void Main(string[] args) | |
{ | |
StreamReader sd = new StreamReader(source); | |
string pattern1 = "(<a href=\"\\/excel\\/[\\w|\\-|\\(|\\)]+\\.(xls|html)\">[\\w|\\-|\\(|\\)]+\\.(xls|html)</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
internal class Program | |
{ | |
private static void Main(string[] args) | |
{ | |
int[] num = { 69, 56, 77, 44, 8, 0, 111, 566 }; | |
for (int i = 1; i < num.Length; i++) | |
{ | |
int key = num[i]; | |
int j = i - 1; | |
while (j >= 0 && num[j] > key) |
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 | |
#function: send a email when error occurs | |
send_email_and_exit(){ | |
recipient=$1 | |
msg=$2 | |
#send email | |
/bin/mail -s "blog generation failure" "${recipient}" << EOF | |
${msg} |
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
internal class Program | |
{ | |
private static void Main(string[] args) | |
{ | |
WorkflowInvoker.Invoke(CreateWorkflow()); | |
Console.ReadKey(); | |
} | |
private static Activity CreateWorkflow() |
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
<?xml version="1.0" encoding="utf-8"?> | |
<channel> | |
<title></title> | |
<link></link> | |
<description></description> | |
<language></language> | |
<copyright></copyright> | |
<managingEditor></managingEditor> | |
<webMaster></webMaster> | |
<pubDate></pubDate> |
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
<?xml version="1.0" encoding="utf-8"?> | |
<feed xmlns="http://www.w3.org/2005/Atom"> | |
<title></title> | |
<link href="" rel="self"/> | |
<link href=""/> | |
<updated></updated> | |
<id></id> | |
<author> | |
<name></name> |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> | |
<url> | |
<loc></loc> | |
<lastmod></lastmod> | |
<changefreq></changefreq> | |
<priority></priority> | |
</url> | |
</urlset> |
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> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Welcome...</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<link href="../../Content/bootstrap.min.css" rel="stylesheet" type="text/css" /> | |
<link href="../../Content/bootstrap-responsive.min.css" rel="stylesheet" type="text/css" /> | |
</head> | |
<body> |
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 PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> | |
<title></title> | |
<script language="JavaScript"> | |
var sWeek = new Array("星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"); | |
var dNow = new Date(); | |
var CalendarData = new Array(100); | |
var madd = new Array(12); |
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
<Window x:Class="WpfApplication1.MainWindow" | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
Title="MainWindow" Height="350" Width="525"> | |
<Grid> | |
<StackPanel> | |
<ComboBox x:Name="ComboBox1" ItemsSource="{Binding SourceCollection1}" DisplayMemberPath="Name" SelectedItem="{Binding Selected1}"/> | |
<ComboBox x:Name="ComboBox2" ItemsSource="{Binding SourceCollection2}" DisplayMemberPath="Name" SelectedItem="{Binding Selected2}"/> | |
<ComboBox x:Name="ComboBox3" ItemsSource="{Binding SourceCollection3}" DisplayMemberPath="Name" SelectedItem="{Binding Selected3}"/> | |
<ComboBox x:Name="ComboBox4" ItemsSource="{Binding SourceCollection4}" DisplayMemberPath="Name" SelectedItem="{Binding Selected4}"/> |
OlderNewer