ls
ls
: 列出目前資料夾下檔案ls -l
: 列出目前資料夾下檔案(詳細資訊)ls -a
: 列出目前資料夾下所有檔案(包含隱藏檔,.
開頭)ls -al
(參數可以組合)ls --color
(將結果上色顯示)
dir/file
mkdir
: 新增資料夾rmdir
: 移除資料夾 (底下要是空的)
import socketserver | |
from threading import Thread | |
class service(socketserver.BaseRequestHandler): | |
def handle(self): | |
while True: | |
self.data = self.request.recv(1024).strip() | |
if not self.data: |
import socket | |
import sys | |
HOST, PORT = "localhost", 5566 | |
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
try: | |
sock.connect((HOST, PORT)) | |
for data in sys.stdin: |
data = { | |
"0000": ["跨系學士班", "跨系學士班"], | |
"0008": ["跨系博士班", "跨系博士班"], | |
"0015": ["先進光源科技學位學程物理組碩士班", "先進光源科技學位學程"], | |
"0016": ["先進光源科技學位學程工科組碩士班", "先進光源科技學位學程"], | |
"0018": ["先進光源科技學位學程博士班", "先進光源科技學位學程"], | |
"0025": ["學習科學研究所碩士班", "學習科學研究所"], | |
"0100": ["原科院學士班", "原科院學士班"], | |
"0111": ["工程與系統科學系清班", "工程與系統科學系"], | |
"0112": ["工程與系統科學系華班", "工程與系統科學系"], |
import os | |
import sys | |
import httplib2 | |
from apiclient.discovery import build | |
from oauth2client.client import flow_from_clientsecrets | |
from oauth2client.file import Storage | |
from oauth2client.tools import argparser, run_flow | |
# The CLIENT_SECRETS_FILE variable specifies the name of a file that contains |
ls
ls
: 列出目前資料夾下檔案ls -l
: 列出目前資料夾下檔案(詳細資訊)ls -a
: 列出目前資料夾下所有檔案(包含隱藏檔, .
開頭)ls -al
(參數可以組合)ls --color
(將結果上色顯示)dir/file
mkdir
: 新增資料夾rmdir
: 移除資料夾 (底下要是空的)KeeFox-FAMS-NotifyBar-A-Donate-Button.key= D | |
KeeFox-FAMS-NotifyBar-A-Donate-Button.label= Donate now | |
KeeFox-FAMS-NotifyBar-A-LearnMore-Button.key= L | |
KeeFox-FAMS-NotifyBar-A-LearnMore-Button.label= Learn more | |
KeeFox-FAMS-NotifyBar-A-Rate-Button.key= R | |
KeeFox-FAMS-NotifyBar-A-Rate-Button.label= Rate KeeFox now | |
KeeFox-FAMS-NotifyBar-A-VisitSite-Button.key= G | |
KeeFox-FAMS-NotifyBar-A-VisitSite-Button.label= Go to site | |
KeeFox-FAMS-NotifyBar-DoNotShowAgain-Button.key= N | |
KeeFox-FAMS-NotifyBar-DoNotShowAgain-Button.label= Don't show message again |
CFLAGS = -std=c11 -O3 | |
CPPFLAGS = -O3 | |
LOGFLAGS = -D_DEBUG -D_INFO -D_FILE_DEBUG | |
OUTPUT = debug_job.* judge_out_* *.o *.result | |
all: clean advanced submit | |
basic: | |
mpicc -o basic.o basic.c $(CFLAGS) $(LOGFLAGS) |
#! /usr/bin/python | |
""" | |
Run this script with below command! (y) | |
$> nohup ./src/jobs.py > jobs_py.stdout 2> jobs_py.stderr < /dev/null & | |
""" | |
import re | |
import time | |
import subprocess | |
job_format = """ |
optns = statset('MaxIter', iters); | |
pixels = reshape(img(:), [], 3); | |
[idxs, centroids] = kmeans(pixels, k, 'options', optns); | |
img_map = centroids(idxs, :); | |
img_new = reshape(img_map(:), size(img)); | |
imshow(img_new); |