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 / 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 / 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 / .babelrc
Last active Mar 25, 2017
Babel Config
View .babelrc
{
"presets": [
[
"env",
{
"targets": {
"browsers": ["IE 8"]
}
}
],
@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 / .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 / .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 / 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 / .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
You can’t perform that action at this time.