git checkout master # you can avoid this line if you are in master...
git subtree split --prefix dist -b gh-pages # create a local gh-pages branch containing the splitted output folder
git push -f origin gh-pages:gh-pages # force the push of the gh-pages branch to the remote gh-pages branch at origin
git branch -D gh-pages # delete the local gh-pages because you will need it: ref
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
| """ | |
| Playing with python's single dispatch. | |
| See: https://hynek.me/articles/serialization/ | |
| See also PEP 443: https://www.python.org/dev/peps/pep-0443/ | |
| """ | |
| from datetime import datetime | |
| from functools import singledispatch |
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
| get_latest_release() { | |
| curl --silent "https://api.github.com/repos/$1/releases/latest" | # Get latest release from GitHub api | |
| grep '"tag_name":' | # Get tag line | |
| sed -E 's/.*"([^"]+)".*/\1/' # Pluck JSON value | |
| } | |
| # Usage | |
| # $ get_latest_release "creationix/nvm" | |
| # v0.31.4 |
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
| Result: 1 | |
| Items { | |
| TemplateId: "BADGE_BATTLE_ATTACK_WON" | |
| Badge { | |
| BadgeType: BADGE_BATTLE_ATTACK_WON | |
| BadgeRanks: 4 | |
| Targets: "\nd\350\007" | |
| } | |
| } | |
| Items { |
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 4.
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
| "Name","URL","Blurb","Limitations","Data subject","Formats","Ready to use data formats?","Bulk download?","National","Terms","Terms URL","Notes" | |
| "Dados.gov.pt","http://dados.gov.pt","The official portal for public datasets. Many kinds of national- and local-level data can be found.","Many datasets are high-quality, whereas a few have limited time scopes. ","Many types","CSV, JSON","Yes","Yes","National and local","Open (Creative Commons-Attribution 3.0)","http://www.dados.gov.pt/PT/Info/AvisosLegais.aspx", | |
| "Lisboa Aberta","http://dadosabertos.cm-lisboa.pt/","Official open data portal for Lisbon. Contains more than 200 GeoJSON datasets about various fields of activity, business and leisure.",,"Geo","GeoJSON","Yes","Yes","Local","Open (Creative Commons-Attribution 3.0)","http://dados.cm-lisboa.pt/carta.html", | |
| "One Stop Transport","http://ost.pt","Data provider with real-time transport data in some cities. Makes available a well-documented API for their datasets.","Lisbon is not included in this portal. Needs re |
List of desktop Nvidia GPUS ordered by CUDA core count
I created it for those who use Neural Style
Guys, please add your hardware setups, neural-style configs and results in comments!
| GPU | CUDA cores | Memory | Processor frequency |
|---|---|---|---|
| GeForce GTX TITAN Z | 5760 | 12 GB | 705 / 876 |
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
| 编号 代码 命令分解 命令 | |
| //switchtabpos switch tab pos 更改底部功能按钮位置的命令 | |
| //multiwebview multi web view 微信多窗口显示命令 | |
| //opentrace open trace 打开跟踪 | |
| //getfpkey get fp key 得到手机基本信息 | |
| //pickpoi pick poi 定位当前位置 | |
| //fullexit full exit 完全退出微信 | |
| //testwaitsms test wait sms 测试验证手机号码 | |
| //sightinfo sight info 打开查看小视频参数 | |
| //testsetpageowner test set page owner 检测你是否拥有页面的所有权 |
Here are instructions to set up TensorFlow dev environment on Docker if you are running Windows, and configure it so that you can access Jupyter Notebook from within the VM + edit files in your text editor of choice on your Windows machine.
First, install https://www.docker.com/docker-toolbox
Since this is Windows, creating the Docker group "docker" is not necessary.
最近勾搭上了 MarsPolar 的创始人什么的,打听了一下情况。我总结在这里。
MarsPolar 干什么?
MarsPolar 跟 MarsOne 不同,这是一个更加开放,更加国际化的组织。他们第一阶段的目标是联合世界各地对火星探索感兴趣的人,然后把这些人组织起来,去实现火星上的一个居住点。
下面是几个关于 MarsPolar 的几个人物介绍: