https://github.com/jsor/jcarousel
Mobile touch slider and framework with hardware accelerated transitions https://github.com/nolimits4web/Swiper
# For more information on configuration, see: | |
# * Official English Documentation: http://nginx.org/en/docs/ | |
# * Official Russian Documentation: http://nginx.org/ru/docs/ | |
user nginx; | |
worker_processes auto; | |
error_log /var/log/nginx/error.log; | |
pid /run/nginx.pid; | |
events { |
import os | |
import random | |
from scrapy.conf import settings | |
class RandomUserAgentMiddleware(object): | |
def process_request(self, request, spider): | |
ua = random.choice(settings.get('USER_AGENT_LIST')) | |
if ua: | |
request.headers.setdefault('User-Agent', ua) | |
class ProxyMiddleware(object): |
# Scrapyd local proxy for basic authentication. | |
# Don't forget iptables rule. | |
# iptables -A INPUT -p tcp --destination-port 6800 -s ! 127.0.0.1 -j DROP | |
server { | |
listen 6801; | |
location ~ /\.ht { | |
deny all; | |
} |
https://github.com/jsor/jcarousel
Mobile touch slider and framework with hardware accelerated transitions https://github.com/nolimits4web/Swiper
可以用 --bare 选项运行 git init 来建立一个裸仓库,这会初始化一个不包含工作目录的仓库。
$ cd /opt/git
$ mkdir project.git
$ cd project.git
$ git --bare init
http://www.zhangxinxu.com/jq/stylus/selectors.php
http://learnboost.github.io/stylus/docs/executable.html
stylus/app.styl => styles/app.css
#header { | |
width: 100%; | |
height: 764px; | |
font-family: 'proxima_nova_rgregular', 'Proxima Nova', 'Helvetica Neue', Helvetica, sans-serif; | |
color: #fff; | |
text-rendering: optimizeLegibility; | |
-webkit-font-smoothing: antialiased; | |
background: #000 url(../images/bg-new.jpg); | |
background-size: 100%; | |
margin: 0 auto; |
原因:需要为坐标建立索引, 坐标值要为 double 型。
db.places.ensureIndex({ "location": "2d" } )
'location' => ['lng'=>42.241,'lat'=>55.5],
wget http://rpms.famillecollet.com/enterprise/6/remi/x86_64/remi-release-6.5-1.el6.remi.noarch.rpm
rpm -Uvh remi-release-6.5-1.el6.remi.noarch.rpm
yum --enablerepo=remi-php54,remi update php
refer: http://snippets.khromov.se/update-php-5-5-from-remi-repo-on-centos-6/