This file contains 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
#vim:set ft=dockerfile: | |
FROM centos:latest | |
MAINTAINER oBlank <[email protected]> | |
# Add the ngix and PHP dependent repository | |
ADD ./files/nginx.repo /etc/yum.repos.d/nginx.repo | |
# Installing nginx | |
RUN yum -y install nginx perl |
This file contains 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
/* | |
* Copyright (c) 2014-2015, Facebook, Inc. | |
* All rights reserved. | |
* | |
* This source code is licensed under the BSD-style license found in the | |
* LICENSE file in the root directory of this source tree. An additional grant | |
* of patent rights can be found in the PATENTS file in the same directory. | |
* | |
* TodoConstants | |
*/ |
This file contains 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
#main ::-webkit-scrollbar { | |
height: 5px; | |
width: 5px; | |
-webkit-border-radius: 5px; | |
} | |
#main ::-webkit-scrollbar-thumb { | |
background: #c1c1c1; | |
-webkit-border-radius: 5px; | |
} | |
#main ::-webkit-scrollbar-track { |
This file contains 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
<style type="text/css"> | |
.scrollable-x,.scrollable-y { | |
outline-offset:-2px; | |
/*padding-right: 6px;*/ | |
overflow-x:hidden; | |
overflow-y:hidden; | |
} | |
.scrollable-y.scrollable-show,.scrollable-y:focus,.scrollable-y:hover,.scrollable-show-all .scrollable-y { | |
overflow-y:auto; |
This file contains 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>test ajax and push state</title> | |
<script src="http://libs.baidu.com/jquery/1.9.0/jquery.js"></script> | |
</head> | |
<body> | |
<ul> | |
<li><a data-id="1" href="javascript:;">访问1</a></li> |
This file contains 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
/** | |
* Created by oBlank on 10/12/15. | |
*/ | |
var cluster = require('cluster'); | |
var http = require('http'); | |
var numCPUs = require('os').cpus().length; | |
var timeouts = []; | |
function errorMsg() { |
This file contains 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
/* | |
Package goevent is event dispatcher. | |
Listen for event: | |
e := goevent.New() | |
e.On(func(i int, s string){ | |
fmt.Printf("%d: %s\n", i, s) | |
}) | |
Trigger: | |
e.Trigger(1, "foo") | |
Use event table: |
This file contains 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains 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
/** | |
* Created by oBlank on 10/12/15. | |
*/ | |
var cluster = require('cluster'); | |
var http = require('http'); | |
var numCPUs = require('os').cpus().length; | |
var timeouts = []; | |
function errorMsg() { |
This file contains 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
[General] | |
loglevel = notify | |
all-tcp-mode = false | |
[Proxy] | |
Proxy = custom | |
[Rule] | |
// iOS | |
DOMAIN-SUFFIX,lcdn-registration.apple.com,DIRECT |