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
""" | |
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 |
Result: 1 | |
Items { | |
TemplateId: "BADGE_BATTLE_ATTACK_WON" | |
Badge { | |
BadgeType: BADGE_BATTLE_ATTACK_WON | |
BadgeRanks: 4 | |
Targets: "\nd\350\007" | |
} | |
} | |
Items { |
编号 代码 命令分解 命令 | |
//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 检测你是否拥有页面的所有权 |
TensorFlow development environment on Windows using Docker
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.
Installation
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 的几个人物介绍:
''' | |
GATSFA - Gateway to Salesforce API | |
The CSV report this is pulling down is querying the Salesforce event log. | |
Each line in the CSV is a Salesforce event log entry that has the prefix | |
of the name of our API application. So the report is a log of the | |
activity between the gateway API and the Salesforce API | |
''' | |
Alternatives to the "Atlassian Stack"
Fuller stack alternatives (replaces at least two of the Atlassian stack)
Homebrew
How To
Homebrew is a package management system for OS X. You can read more about it here, or simply run
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
to install it.
Auto-deploying built products to gh-pages with Travis
This is a set up for projects which want to check in only their source files, but have their gh-pages branch automatically updated with some compiled output every time they push.
Create a compile script
You want a script that does a local compile to e.g. an out/
directory. Let's call this compile.sh
for our purposes, but for your project it might be npm build
or gulp make-docs
or anything similar.
The out/
directory should contain everything you want deployed to gh-pages
. That almost always includes an index.html
.