start new:
tmux
start new with session name:
tmux new -s myname
List commands supported by Rake:
Install rbenv
rbenv => https://github.com/sstephenson/rbenv
set you ruby version
. . .
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| # Config Github Settings | |
| github_username = "fideloper" | |
| github_repo = "Vaprobash" | |
| github_branch = "1.0.1" | |
| github_url = "https://raw.githubusercontent.com/#{github_username}/#{github_repo}/#{github_branch}" | |
| # Server Configuration |
| ====== TCP Server ===== | |
| var net = require('net'); | |
| var HOST = '127.0.0.1'; | |
| var PORT = 6969; | |
| // Create a server instance, and chain the listen function to it | |
| // The function passed to net.createServer() becomes the event handler for the 'connection' event | |
| // The sock object the callback function receives UNIQUE for each connection |
| // | |
| // QSQLite3.swift | |
| // SQLiteWrapper | |
| // | |
| // Created by Danilo Altheman on 24/06/15. | |
| // Copyright © 2015 Quaddro - Danilo Altheman. All rights reserved. | |
| /* Usage: | |
| // Open or create a Database | |
| let database = QSQLite3(path: NSHomeDirectory() + "/Documents/database.sqlite") | |
| var http = require("http"); | |
| var fs = require("fs"); | |
| var index = fs.readFileSync("index.html"); | |
| var mongoose = require('mongoose'); | |
| mongoose.connect('mongodb://localhost/test'); | |
| var db = mongoose.connection; |
| /* | |
| DESCRIPTION | |
| ----------- | |
| Use NodeJS to read RFID ids through the USB serial stream. Code derived from this forum: | |
| http://groups.google.com/group/nodejs/browse_thread/thread/e2b071b6a70a6eb1/086ec7fcb5036699 | |
| CODE REPOSITORY | |
| --------------- | |
| https://gist.github.com/806605 |
| // Requires: http://cloud.github.com/downloads/harthur/brain/brain-0.6.0.js | |
| // Contrived example using string "0" as output. | |
| var net = new brain.NeuralNetwork(); | |
| net.train([{input: [0, 0], output: {"F":1}}, | |
| {input: [0, 1], output: {"1":1}}, | |
| {input: [1, 0], output: {"1":1}}, | |
| {input: [1, 1], output: {"0":1}}]); |