Skip to content

Instantly share code, notes, and snippets.

@vidaaudrey
vidaaudrey / # Sublime Emmet JSX Reactjs.md
Created January 3, 2016 04:27 — forked from max-mykhailenko/# Sublime Emmet JSX Reactjs.md
Sublime text 3. Enable Emmet in JSX files with Sublime React plugin

Problem

  • Using emmet in jsx files
  • Emmet expands text when js autocomplete needed
  • Using className instead of class

How it works

  • Install plugin RegReplace
  • Install plugin Chain Of Command
@vidaaudrey
vidaaudrey / webpack.config.js
Created January 2, 2016 01:32
ES6 webpack setup
var path = require('path');
module.exports = {
entry: [
'./src/index.js',
'./src/index.html'
],
output: {
path: path.join(__dirname, 'dist'),
filename: 'bundle.js',
@vidaaudrey
vidaaudrey / package.json
Last active December 31, 2015 04:07
ES6 Package setup
{
"name": "todo-redux-30-steps",
"version": "1.0.0",
"description": "A simple todo app",
"main": "index.js",
"scripts": {
"test": "mocha --compilers js:babel-core/register --require ./test/test_helpers.js --recursive",
"test:watch": "npm run test -- --watch",
"lintt": "eslint -c .eslintrc src test",
"lint": " node_modules/.bin/eslint test src --fix"
@vidaaudrey
vidaaudrey / sublime-shortcuts.txt
Created December 31, 2015 03:24
Sublime Shortcuts
#selecting
ctrl+shift+m: select everything inside brackets
@vidaaudrey
vidaaudrey / git.txt
Last active December 30, 2015 18:27
Git commands
git branch -m old_branch new_branch # Rename branch locally
git push origin :old_branch # Delete the old branch
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote
git diff --cached #--cached means show the changes in the cache/index (i.e. staged changes) against the current HEAD. --staged is a synonym for --cached
@vidaaudrey
vidaaudrey / React .gitignore
Created December 30, 2015 07:11
React Gitignore
node_modules
ncp-debug.log
npm-debug.log
bower_component
src/config/configSec.js
.DS_STORE
node_modules
*~
*.pyc
@vidaaudrey
vidaaudrey / .eslintignore
Last active January 2, 2016 01:11
.eslintignore
webpack/*
karma.conf.js
tests.webpack.js
@vidaaudrey
vidaaudrey / .eslintrc
Last active January 2, 2016 01:10
.eslintrc
{
"parser": "babel-eslint",
"plugins": [
"babel",
"react"
],
"ecmaFeatures": {
"jsx": true,
@vidaaudrey
vidaaudrey / reset.css
Created November 10, 2015 17:40
reset.css meyerweb
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,