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
wget https://nodejs.org/dist/v4.3.1/node-v4.3.1-linux-x64.tar.xz | |
xz -d node-v4.3.1-linux-x64.tar.xz | |
tar -xf node-v4.3.1-linux-x64.tar | |
rm node-v4.3.1-linux-x64.tar | |
mv node-v4.3.1-linux-x64/ node-4.3.1 | |
ln -sf /opt/node-4.3.1/bin/node /usr/bin/node | |
ln -sf /opt/node-4.3.1/bin/npm /usr/bin/npm |
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
protocol HelloListener { | |
func hello(title: String) | |
} | |
var list :[HelloListener] = [HelloListener]() | |
var parentsHello: HelloListener = { | |
class AnonymousClass: HelloListener { | |
func hello(title: String) { | |
print("My parents has son name is \(title)") |
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
//https://github.com/jketterl/memcachejs/blob/master/lib/pool.js | |
var Memcache = require('./memcache'); | |
var exports = module.exports = function(options){ | |
// default settings | |
Memcache.apply(this, { | |
maxConnections:10, | |
host:'localhost', | |
port:11211, | |
pool:[] |
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 2011 Jeanfrancois Arcand | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); you may not | |
* use this file except in compliance with the License. You may obtain a copy of | |
* the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
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
" hoorace vimrc | |
set nocompatible | |
set fileencodings=usc-bom,utf-8,gbk | |
set mouse=a | |
set nobomb | |
set nowrap | |
set number |