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
SOSANA / updateNpm.bat
Last active May 20, 2018
Update npm on windows using nvm-windows. Script runs latest, npm version just replace "latest" with version desired. Place script in nvm root folder C:\Users\<user>\AppData\Roaming\nvm or run %appdata% to locate nvm folder
View updateNpm.bat
@echo off
SETLOCAL EnableDelayedExpansion
if [%1] == ["latest"] (
echo Pass in the version you would like to install, or "latest" to install the latest npm version.
) else (
set wanted_version="latest"
if "!wanted_version!" == "latest" (
for /f %%i in ('npm show npm version') do set wanted_version=%%i
View VSCODE_USER_SETTINGS.json
{
"editor.renderIndentGuides": false,
"editor.tabSize": 2,
"editor.fontSize": 15.5,
"workbench.colorTheme": "NeonGlow",
"editor.snippetSuggestions": "top",
"editor.formatOnSave": true,
"window.zoomLevel": 0,
"workbench.iconTheme": "vscode-icons",
"emmet.triggerExpansionOnTab": true,
@SOSANA
SOSANA / package.json
Last active Aug 31, 2018
Google Chrome Live Server browser-sync setup for Linux or Windows OS
View package.json
{
"name": "future-project",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"start": "run-script-os",
"start:win32":
"browser-sync start --server --files '**/*.css, **/*.html, **/*.js, !node_modules/**/*' --directory --port 7777 --browser \"C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe\"",
"start:darwin:linux":
@SOSANA
SOSANA / package.json
Last active Aug 31, 2018
Firefox Developer Edition Live Server browser-sync setup for Linux or Windows OS
View package.json
{
"name": "test-project",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"start": "run-script-os",
"start:win32": "browser-sync start --server --files '**/*.css, **/*.html, **/*.js, !node_modules/**/*' --directory --port 7777 --browser \"C:\\Program Files\\Firefox Developer Edition\\firefox.exe\"",
"//": "Hello! If you are having trouble running this command. Try changing Firefox Developer Edition to FirefoxDeveloperEdition",
"start:darwin:linux": "browser-sync start --server --files '**/*.css, **/*.html, **/*.js, !node_modules/**/*' --directory --port 7777 --browser 'Firefox Developer Edition'"
@SOSANA
SOSANA / .babelrc
Created Mar 25, 2017
from the book survivejs webpack
View .babelrc
{
"plugins": [
"syntax-dynamic-import"
],
"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
@SOSANA
SOSANA / .babelrc
Last active Mar 25, 2017
Babel Config
View .babelrc
{
"presets": [
[
"env",
{
"targets": {
"browsers": ["IE 8"]
}
}
],
@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
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 / .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": {
You can’t perform that action at this time.