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 | |
amuleexit=$(ps aux| grep amule | head -n1 | awk '{print $11}') | |
echo "$amuleexit" | |
if [ "$amuleexit" == "grep" ] | |
then | |
amule | |
else | |
echo "fine" | |
fi |
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/local/bin/python3.2 | |
# _*_ coding:utf8 _*_ | |
def durian(): | |
"""docstring for durian""" | |
infile=open("test","r").read() | |
list=infile.split(",") | |
print(list) | |
dlist=[] | |
for i in range(len(list)): |
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/local/bin/python3.2 | |
# _*_ coding:utf8 _*_ | |
def durian(): | |
"""docstring for durian""" | |
infile=open("test1","r").read() | |
list=infile.split(",") | |
# print(list) | |
dlist=[] | |
for i in range(len(list)): |
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
__author__ = 'wudaown' | |
# -*- coding: utf-8 -*- | |
import urllib.request | |
import http.cookiejar | |
import pickle | |
class opener: | |
def userAgent(self): | |
self.head = { |
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
<? | |
print("<table>"); | |
print("<tr>"); | |
print("<td>"); | |
//print("<div id='searchable-form' >"); // | |
print("<div id='searchable'>Search: <input type='text' id='searchFILE' size='33' autocomplete='off' /></div>"); | |
print("<select name='lktyp' id='lktypSearch' size='10' >"); | |
//Create new SQL object | |
$db = new NSC_SQL($db2config); | |
$db->from($bllcust1,"BCUST#,BNAME"); |
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(){ | |
/*div居中*/ | |
function landCenter(){ | |
var land= $('.land_content'); | |
land.css({ | |
"left": ($(window).width() - land.outerWidth())/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
package org.gp3.moblima.view.moviegoer; | |
import java.util.ArrayList; | |
import org.gp3.moblima.model.Movie; | |
import org.gp3.moblima.view.BaseMenu; | |
import org.gp3.moblima.view.Quit; | |
import static org.gp3.moblima.view.IOUtil.printMenuItems; | |
import static org.gp3.moblima.view.IOUtil.printTitle; |
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
package org.gp3.moblima.view.moviegoer; | |
import java.util.ArrayList; | |
import org.gp3.moblima.model.Movie; | |
import org.gp3.moblima.view.BaseMenu; | |
import org.gp3.moblima.view.Quit; | |
import static org.gp3.moblima.view.IOUtil.printMenuItems; | |
import static org.gp3.moblima.view.IOUtil.printTitle; |
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
/*===============================================================* | |
* File: SWP.java * | |
* * | |
* This class implements the sliding window protocol * | |
* Used by VMach class * | |
* Uses the following classes: SWE, Packet, PFrame, PEvent, * | |
* * | |
* Author: Professor SUN Chengzheng * | |
* School of Computer Engineering * | |
* Nanyang Technological University * |
OlderNewer