启动新会话:
tmux [new -s 会话名 -n 窗口名]
恢复会话:
tmux at [-t 会话名]
| <html> | |
| <!-- created by https://liqiang.io --> | |
| <head> | |
| <script type="text/javascript">function loadXMLDoc() { | |
| // code for IE7+, Firefox, Chrome, Opera, Safari | |
| var xmlhttp = new XMLHttpRequest(); | |
| xmlhttp.onreadystatechange = function() { | |
| if (xmlhttp.readyState == 4 && xmlhttp.status == 200) { | |
| console.log(xmlhttp.responseText); | |
| } |
| <html> | |
| <!-- created by https://liqiang.io --> | |
| <head> | |
| <script type="text/javascript">function loadXMLDoc() { | |
| // code for IE7+, Firefox, Chrome, Opera, Safari | |
| var xmlhttp = new XMLHttpRequest(); | |
| xmlhttp.onreadystatechange = function() { | |
| if (xmlhttp.readyState == 4 && xmlhttp.status == 200) { | |
| console.log(xmlhttp.responseText); | |
| } |
| package main | |
| import "fmt" | |
| func main() { | |
| defer func() { | |
| fmt.Println("stack a") | |
| }() | |
| defer func() { | |
| fmt.Println("stack b") |
Free O'Reilly books and convenient script to just download them.
Thanks /u/FallenAege/ and /u/ShPavel/ from this Reddit post
How to use:
download.sh file and put it into a directory where you want the files to be saved.cd into the directory and make sure that it has executable permissions (chmod +x download.sh should do it)./download.sh and wee there it goes. Also if you do not want all the files, just simply comment the ones you do not want.| #!/usr/bin/env python | |
| # encoding: utf-8 | |
| from worker import add | |
| # add.apply_async((1, ), priority=1) | |
| # add.apply_async((1, ), priority=1) | |
| add.apply_async((7, ), priority=7) | |
| add.apply_async((6, ), priority=6) | |
| add.apply_async((5, ), priority=5) | |
| add.apply_async((8, ), priority=8) |
| # ##################################################### | |
| # Python Library for 4x4 matrix keypad using | |
| # 7 of the avialable GPIO pins on the Raspberry Pi. | |
| # | |
| # This could easily be expanded to handle a 4x4 but I | |
| # don't have one for testing. The KEYPAD constant | |
| # would need to be updated. Also the setting/checking | |
| # of the colVal part would need to be expanded to | |
| # handle the extra column. | |
| # |
| import json | |
| import toml | |
| result = toml.loads(""" | |
| [array] | |
| hello=['a', 'b', 'c'] | |
| arrya_with_array=[ | |
| ['1', '2', '3'], | |
| ['4', '5', '6'] | |
| ] |
| #!/usr/bin/env python | |
| # encoding: utf-8 | |
| import os.path as op | |
| from flask import Flask, request, render_template | |
| import sys | |
| reload(sys) | |
| sys.setdefaultencoding('utf-8') |