代号 | 位置 | 地址 | 账户 |
---|---|---|---|
A | 位于公网 | a.site | usera |
B | 位于 NAT 之后 | localhost | userb |
C | 位于 NAT 之后 | localhost | userc |
This file contains hidden or 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
# -*- coding: utf-8 -*- | N Function Runtime | |
| ----------------------------------------- | |
import time | 1e+00 createGenerator 0.00000000 s | |
| 1e+00 createGeneratorExp 0.00000000 s | |
def createGenerator(N): | 1e+00 createList 0.00000000 s | |
for i in range(N): | ----------------------------------------- | |
yield i * i | 1e+01 createGenerator 0.00000000 s | |
| 1e+01 createGeneratorExp 0.00000000 s | |
def createGeneratorExp(N): | 1e+01 createList |
This file contains hidden or 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
Here is a list of scopes to use in Sublime Text 2 snippets - | |
ActionScript: source.actionscript.2 | |
AppleScript: source.applescript | |
ASP: source.asp | |
Batch FIle: source.dosbatch | |
C#: source.cs | |
C++: source.c++ | |
Clojure: source.clojure | |
CoffeeScript: source.coffee |
This file contains hidden or 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
import shlex | |
import subprocess | |
import sys | |
def run_cmd(cmd, callback=None, watch=False): | |
"""Runs the given command and gathers the output. | |
If a callback is provided, then the output is sent to it, otherwise it | |
is just returned. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
This file contains hidden or 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/sh | |
# | |
# msys2-sshd-setup.sh — configure sshd on MSYS2 and run it as a Windows service | |
# | |
# Please report issues and/or improvements to Sam Hocevar <[email protected]> | |
# | |
# Prerequisites: | |
# — MSYS2 itself: http://sourceforge.net/projects/msys2/ | |
# — admin tools: pacman -S openssh cygrunsrv mingw-w64-x86_64-editrights | |
# |
This file contains hidden or 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
Sub captical() | |
Selection.WholeStory | |
Selection.Find.ClearFormatting | |
Selection.Find.Replacement.ClearFormatting | |
With Selection.Find.Replacement.Font | |
.SmallCaps = False | |
.AllCaps = True | |
End With | |
With Selection.Find | |
.Text = "<([A-Za-z])" |
This file contains hidden or 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
{"lastUpload":"2018-10-27T00:54:27.927Z","extensionVersion":"v3.2.0"} |
This file contains hidden or 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
/** | |
* 2018 年刑侦科推理试题 | |
* | |
* 1. 这道题的答案是: | |
* A. A B. B C. C D. D | |
* | |
* 2. 第 5 题的答案是: | |
* A. C B. D C. A D. B | |
* | |
* 3. 以下选项中哪一题的答案与其它三项不同: |