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
View node-and-npm-in-30-seconds.sh
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1
./configure --prefix=~/local
make install # ok, fine, this step probably takes more than 30 seconds...
curl https://www.npmjs.org/install.sh | sh
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);
@SOSANA
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
@SOSANA
SOSANA / vscodeCommands.txt
Last active Feb 22, 2017
VS Code Commands
View vscodeCommands.txt
List of common commands used for VS Code
- good reference
http://www.dofactory.com/reference/visual-studio-shortcuts
- Open Terminal
Ctrl + `
- Command Pallette
Ctrl + Shift + P
@SOSANA
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
SOSANA / .eslintrc.js
Created Feb 22, 2017 — forked from nkbt/.eslintrc.js
Strict ESLint config for React, ES6 (based on Airbnb Code style)
View .eslintrc.js
{
"env": {
"browser": true,
"node": true,
"es6": true
},
"plugins": ["react"],
"ecmaFeatures": {
View nodemon.json
{
"restartable": "rs",
"ignore": [
".git",
"node_modules/**/node_modules"
],
"verbose": true,
"events": {
"restart": "osascript -e 'display notification \"App restarted due to:\n'$FILENAME'\" with title \"nodemon\"'"
},
@SOSANA
SOSANA / .editorconfig
Last active Feb 23, 2017
Editor Config
View .editorconfig
# EditorConfig is awesome: http://EditorConfig.org
root = true
# Unix-style newlines with a newline ending every file
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
@SOSANA
SOSANA / .babelrc
Last active Mar 25, 2017
Babel Config
View .babelrc
{
"presets": [
[
"env",
{
"targets": {
"browsers": ["IE 8"]
}
}
],
@SOSANA
SOSANA / .gitignore
Created Mar 1, 2017
.gitignore to ignore all those un-need pesky files!
View .gitignore
# See http://help.github.com/ignore-files/ for more about ignoring files.
# dependencies
node_modules
npm-debug.log
# testing
coverage
# production
You can’t perform that action at this time.