youtube-dl -v --cookies /Users/ficapy/Downloads/oreilly/cookies.txt -o "Oreilly - %(playlist)s/%(playlist_index)s - %(title)s.%(ext)s" "https://learning.oreilly.com/videos/hands-on-systems-programming/9781838822132" --add-metadata --write-sub --convert-subs srt --sleep-interval 15 --max-sleep-interval 30 | tee $(date +%Y%m%d-%h:%M).log
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
| package main | |
| import ( | |
| "flag" | |
| "fmt" | |
| "github.com/gin-gonic/gin" | |
| "net/http/httputil" | |
| ) | |
| func CORS() gin.HandlerFunc { |
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
| package main | |
| import ( | |
| "encoding/csv" | |
| "github.com/mmcloughlin/geohash" | |
| "github.com/suifengtec/gocoord" | |
| "io" | |
| "os" | |
| ) |
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
| let a = [] | |
| function _add_empty(node, raw){ | |
| // 如果多个标签合并成一个,最低保证合并的时候左右存在空格 | |
| function inner(node){ | |
| let innertext = node.innerText | |
| if (!innertext){ | |
| return | |
| } | |
| let content = innertext.trim() |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset=utf-8 /> | |
| <title>Holy Grail</title> | |
| <style> | |
| /* some basic styles. nothing to do with flexbox */ | |
| header, footer, | |
| nav, article, aside { | |
| border: 1px solid black; |
gost -L="http2://username:pwd:8086?probe_resist=code:501" -F=http://127.0.0.1:7890
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
| class Nested: | |
| def __init__(self, data): | |
| self.data = data | |
| def __getitem__(self, item): | |
| if self.data is None: | |
| return Nested(None) | |
| if isinstance(item, int) and isinstance(self.data, list): | |
| if len(self.data) >= item: |
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
| Architecture: x86_64 | |
| CPU op-mode(s): 32-bit, 64-bit | |
| Byte Order: Little Endian | |
| CPU(s): 72 | |
| On-line CPU(s) list: 0-71 | |
| Thread(s) per core: 2 | |
| Core(s) per socket: 18 | |
| Socket(s): 2 | |
| NUMA node(s): 2 | |
| Vendor ID: GenuineIntel |
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
| fn apply<F>(mut f: F) | |
| where | |
| F: FnMut(), | |
| { | |
| f(); | |
| f(); | |
| } | |
| fn main() { | |
| let mut farewell = "goodbye".to_owned(); |
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
| from shapely.geometry import mapping, Polygon | |
| import fiona | |
| import csv | |
| # Carrefour GZ | |
| gz = Polygon([]) | |
| # chengdu 1 | |
| cd1 = Polygon([]) | |
| # chengdu 2 | |
| cd2 = Polygon([]) |