Direct copy of pre-encoded file:
$ ffmpeg -i filename.mp4 -codec: copy -start_number 0 -hls_time 10 -hls_list_size 0 -f hls filename.m3u8
| pip install --index-url http://pypi.python.org/simple --trusted-host pypi.python.org pymongo |
| Disable vim automatic visual mode on mouse select | |
| issue: :set mouse-=a | |
| add to ~/.vimrc: set mouse-=a | |
| my ~/.vimrc for preserving global defaults and only changing one option: | |
| source $VIMRUNTIME/defaults.vim | |
| set mouse-=a |
Direct copy of pre-encoded file:
$ ffmpeg -i filename.mp4 -codec: copy -start_number 0 -hls_time 10 -hls_list_size 0 -f hls filename.m3u8
Surprisingly complicated. Figma supports SVG → PDF but not the other way around. Sketch supports PDF → SVG with some bugs (often vector shape overlaps are incorrect.)
dawbarton/pdf2svg looks like an interesting project
that could be compiled as WASM but it is itself poinsoned by GNU GPL license.
Plus, it depends on a huge amount of (also GPL-licensed) code in the form of Poppler and Cairo.
| curl "http://47.93.83.15:8983/solr/qa/update?commit=true" -H "Content-Type: text/xml" --data-binary '<delete><query>*:*</query></delete>' |
| curl -X POST -H 'Content-Type: application/json' 'http://host:8983/solr/collection/update/json/docs' --data-binary ' | |
| {"question": "\u524d\u4e00\u6bb5\u505a\u4e86\u809b\u7618\u624b\u672f\u3001\u4f24\u53e3\u5df2\u957f\u597d\uff01\u6700\u8fd1\u524d\u4e00\u6bb5\u505a\u4e86\u809b\u7618\u624b\u672f\u3001\u4f24\u53e3\u5df2\u957f\u597d\uff01\u6700\u8fd1\u809a\u5b50\u7ecf\u5e38\u75bc\uff0c\u62c9\u809a\u5b50\u3001\u662f\u624b\u672f\u4e4b\u540e\u5403\u836f\u80a0\u9053\u654f\u611f\u7684\u539f\u56e0\u5417\uff1f\u5403\u4ec0\u4e48\u836f\u7f13\u89e3\uff1f\u800c\u4e14\u7528\u9ad8\u9530\u9178\u94be\u6e05\u6d17\u4e4b\u540e\u4f1a\u809b\u95e8\u9644\u8fd1\u4f1a\u75bc\u3001\u662f\u75d4\u75ae\u7684\u539f\u56e0\u5417\uff1f", "answer": "\u60a8\u597d\uff01\u770b\u60a8\u7684\u60c5\u51b5\uff0c\u73b0\u5728\u4e0d\u9700\u8981\u9ad8\u9530\u9178\u94be\u6d17\u4e86\uff0c\u6d17\u591a\u4e86\u4e5f\u4e0d\u597d\u3002\u770b\u60a8\u7684\u809a\u5b50\u75bc\uff0c\u4f30\u8ba1\u662f\u4e0e\u5403\u836f\u6709\u5173\uff0c\u4e5f\u95ee\u9898\u4e0d\u5927\u3002\u3 |
| # -*- coding=utf-8 -*- | |
| tag1 = ["麻枝准","P.A.WORKS","2015年7月","原创","key","TV","Charlotte","夏洛特","2015","校园","大魔王","原创动画","业界良心","2015年","PA","佐仓绫音","超能力","浅井義之","奇幻","动画","内山昂辉","治愈","搞笑","内田真礼","佐倉綾音","浅井义之","烂尾","剧情","季番","関口可奈味"] | |
| tag2 = ["key","J.C.STAFF","2012年10月","GAL改","key社","催泪","Busters!","TV","校园","Little","等得花儿都谢了","緑川光","神作","京阿尼","2012","游戏改","治愈","麻枝准","万分给力","堀江由衣","花泽香菜","友情","搞笑","2012年","山川吉树","LB","LittleBusters!","Little_Busters!","2012十月番"] | |
| #tag1 = ["起亚", "实拍", "汽车", "新闻", "广州车展", "东风", "资讯"] | |
| #tag2 = ["广州", "现场", "汽车", "国际车展", "新闻", "首发", "资讯", "现代", "概念", "北京"] | |
| /** | |
| * @param {String} msg 错误信息 | |
| * @param {String} url 出错的文件 | |
| * @param {Long} line 出错代码的行号 | |
| * @param {Long} col 出错代码的列号 | |
| * @param {Object} error 错误的详细信息,Anything | |
| */ | |
| window.onerror = function(msg,url,line,col,error){ | |
| //没有URL不上报!上报也不知道错误 | |
| if (msg != "Script error." && !url){ |
| import nltk | |
| import ssl | |
| try: | |
| _create_unverified_https_context = ssl._create_unverified_context | |
| except AttributeError: | |
| pass | |
| else: | |
| ssl._create_default_https_context = _create_unverified_https_context |