This file contains hidden or 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
| mkdir /var/local/tmp | |
| cd /var/local/tmp | |
| wget https://gist.githubusercontent.com/mani95lisa/6520782/raw/493ff109988bde965dc2d37a653886ebd57bc529/install_nodejsV0.10.9.sh | |
| sudo sh install_nodejsV0.10.9.sh | |
| wget https://gist.githubusercontent.com/mani95lisa/6607004/raw/e0338f9861936c2a346ed68b7e6509884a77a923/redis.conf | |
| mkdir /etc/redis | |
| mv redis.conf /etc/redis | |
| wget -O /etc/init.d/redis https://gist.githubusercontent.com/mani95lisa/7766989/raw/4d328f653a4196ceb1179b429f5180f23f82ff57/redis | |
| chmod +x /etc/init.d/redis | |
| cp /etc/rc.local /etc/rc.local.tmp |
This file contains hidden or 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 ng-app="mgcrea.ngStrapDocs"> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <title>AngularJS Plunker</title> | |
| <script> | |
| document.write('<base href="' + document.location + '" />'); | |
| </script> | |
| <link rel="stylesheet" href="style.css" /> |
This file contains hidden or 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
| ################################################### | |
| # mongosback configuration file | |
| ################################################## | |
| ################################################### | |
| # general settings | |
| ################################################### | |
| PID_FILE="/var/run/mongosback.pid" |
This file contains hidden or 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
| //变量、常量、字符串、println | |
| var 变量 = "变量" //可以用Unicode编码声明变量或常量了,但不推荐 | |
| var variable : String | |
| var variableWithoutType = "无类型必初始化,自动继承值的类型" | |
| let const = "常量必须初始化" | |
| var interpolation = "字符串插入\(const)" | |
| println("输出结果到控制台:\(interpolation)");println("分号仅用于分隔一行里的多语句,不建议这样使用") | |
| //数 | |
| println(UInt8.min, UInt8.max) //(0, 255) |
This file contains hidden or 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
| sudo apt-get -y install openjdk-7-jdk | |
| mkdir /usr/java | |
| ln -s /usr/lib/jvm/java-7-openjdk-amd64 /usr/java/default | |
| sudo apt-get -y install solr-tomcat |
This file contains hidden or 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
| XLSX = require('xlsx') | |
| sheet_from_array_of_arrays = (data, opts) -> | |
| ws = {} | |
| range = | |
| s: | |
| c: 10000000 | |
| r: 10000000 | |
| e: |
This file contains hidden or 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
| // Generated by CoffeeScript 1.7.1 | |
| (function() { | |
| var XLSX, sheet_from_array_of_arrays, ws_name; | |
| XLSX = require('xlsx'); | |
| sheet_from_array_of_arrays = function(data, opts) { | |
| var C, R, cell, cell_ref, range, ws; | |
| ws = {}; | |
| range = { |
This file contains hidden or 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
| { | |
| "name": "research", | |
| "version": "0.1.0", | |
| "description": "User research platform", | |
| "author": "Mani", | |
| "main": "index.js", | |
| "scripts": { | |
| "test": "grunt test", | |
| "start": "node index.js" | |
| }, |
This file contains hidden or 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
| { | |
| "log":{ | |
| "user":"gz7EgT4sfNInjv75Pe6MhGzd", | |
| "passwd":"pGH1vBSeycEH9ZWCj9QkOt0pTYCEUpfP" | |
| }, | |
| "mongo": "mongodb://bae:xt6e5Qrx93m1ebGHUpxHh7qB4CjnlKti@svridf3zd2q93fi.mongodb.duapp.com:10204/svridf3zd2q93fi", | |
| "express": { | |
| "view cache": false, | |
| "view engine": "js", | |
| "views": "path:./.build/templates", |
This file contains hidden or 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
| #!/bin/sh | |
| yum repolist | |
| rpm -Uvh http://download-i2.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm | |
| sudo yum install nodejs npm --enablerepo=epel |