Skip to content

Instantly share code, notes, and snippets.

Zach Sosana SOSANA

Block or report user

Report or block SOSANA

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
SOSANA / .eslintrc
Last active Mar 22, 2017
Eslint config file with airbnb/base and over ride rules config
View .eslintrc
"extends": "airbnb",
"env": {
"browser": true,
"node": true,
"mocha": true,
"es6": true
"parser": "babel-eslint",
"parserOptions": {
SOSANA / vscodeCommands.txt
Last active Feb 22, 2017
VS Code Commands
View vscodeCommands.txt
List of common commands used for VS Code
- good reference
- Open Terminal
Ctrl + `
- Command Pallette
Ctrl + Shift + P
SOSANA / vscode.txt
Last active Feb 27, 2017
Collection of installed VS Code Extensions
View vscode.txt
Installed VS Code Extensions
- Auto Rename Tag by Jun
- Babel ES6/ES7 by dzannotti
- Code Runner by Jun
- Color Picker by anseki
- Debugger for Chrome by Microsoft
View aggregate.js
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
//Database connection
var uristring = 'mongodb://localhost/test';
var mongoOptions = { };
mongoose.connect(uristring, mongoOptions, function (err, res) {
if (err) {
console.log('Error when connecting to: ' + uristring + '. ' + err);
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl | tar xz --strip-components=1
./configure --prefix=~/local
make install # ok, fine, this step probably takes more than 30 seconds...
curl | sh
You can’t perform that action at this time.