Getting started:
Related tutorials:
- MySQL-CLI: https://www.youtube.com/playlist?list=PLfdtiltiRHWEw4-kRrh1ZZy_3OcQxTn7P
- Analyzing Business Metrics: https://www.codecademy.com/learn/sql-analyzing-business-metrics
Getting started:
Related tutorials:
//HelloDog - http://wsgzao.github.io/post/duoshuo/ | |
//More info: http://moxfive.xyz/2015/09/29/duosuo-style | |
//移动客户端判断开始 | |
function checkMobile() { | |
var isiPad = navigator.userAgent.match(/iPad/i) != null; | |
if (isiPad) { | |
return false; | |
} | |
var isMobile = navigator.userAgent.match(/iphone|android|phone|mobile|wap|netfront|java|opera mobi|opera mini|ucweb|windows ce|symbian|symbianos|series|webos|sony|blackberry|dopod|nokia|samsung|palmsource|xda|pieplus|meizu|midp|cldc|motorola|foma|docomo|up.browser|up.link|blazer|helio|hosin|huawei|novarra|coolpad|webos|techfaith|palmsource|alcatel|amoi|ktouch|nexian|ericsson|philips|sagem|wellcom|bunjalloo|maui|smartphone|iemobile|spice|bird|zte-|longcos|pantech|gionee|portalmmm|jig browser|hiptop|benq|haier|^lct|320x320|240x320|176x220/i) != null; | |
if (isMobile) { |
.twitter-typeahead .tt-query, | |
.twitter-typeahead .tt-hint { | |
margin-bottom: 0; | |
} | |
.tt-hint { | |
display: block; | |
width: 100%; | |
height: 38px; | |
padding: 8px 12px; | |
font-size: 14px; |
step1——找到本地镜像的ID:docker images | |
step2——登陆Hub:docker login --username=username --password=password --email=email | |
step3——tag:docker tag <imageID> <namespace>/<image name>:<version tag eg latest> | |
step4——push镜像:docker push <namespace>/<image name> |
#coding=utf-8 | |
import urllib2 | |
import re | |
import os | |
savePath = os.path.join(os.getcwd(), 'xImages') | |
def start(url): | |
page = urllib2.urlopen(url) | |
html = page.read() | |
reg = r'<a class="movie-box" href=".*">' |
//add function to run after windown.onload | |
function addLoadEvent(func) { | |
var oldonload = window.onload; | |
if (typeof window.onload != 'function') { | |
window.onload = func; | |
} else { | |
window.onload = function() { | |
oldonload(); | |
func(); | |
} |