In React's terminology, there are five core types that are important to distinguish:
React Elements
// Includes functions for exporting active sheet or all sheets as JSON object (also Python object syntax compatible). | |
// Tweak the makePrettyJSON_ function to customize what kind of JSON to export. | |
var FORMAT_ONELINE = 'One-line'; | |
var FORMAT_MULTILINE = 'Multi-line'; | |
var FORMAT_PRETTY = 'Pretty'; | |
var LANGUAGE_JS = 'JavaScript'; | |
var LANGUAGE_PYTHON = 'Python'; |
Meteor.startup(function () { | |
// create a wrapper around native canvas element (with id="c") | |
window.canvas = new fabric.Canvas('c'); | |
window.canvas.selection = false; | |
window.canvas.setBackgroundImage('tempimg/space.jpg', | |
window.canvas.renderAll.bind(canvas)); | |
window.canvas.on('object:modified', function (e) { | |
var data; |
// === Arrays | |
var [a, b] = [1, 2]; | |
console.log(a, b); | |
//=> 1 2 | |
// Use from functions, only select from pattern | |
var foo = () => [1, 2, 3]; |
# --------------------------------------------------------------------------- | |
# | |
# Description: This file holds all my BASH configurations and aliases | |
# | |
# Sections: | |
# 1. Environment Configuration | |
# 2. Make Terminal Better (remapping defaults and adding functionality) | |
# 3. File and Folder Management | |
# 4. Searching | |
# 5. Process Management |
# SYNTAX: | |
var pattern = new RegExp(pattern, attributes); # attributes: g (global); i (case-sensitive); m (multiline matches) | |
var pattern = /pattern/attributes; # same as above | |
# BRACKETS: | |
[...]: Any one character between the brackets. | |
[^...]: Any one character not between the brackets. |
In React's terminology, there are five core types that are important to distinguish:
React Elements
<aura:event type="APPLICATION" description="Add to cart event."> | |
<aura:attribute name="product" type="Product__c"/> | |
</aura:event> |
go get -u golang.org/x/crypto/bcrypt | |
go get -u golang.org/x/crypto/blowfish | |
go get -u golang.org/x/crypto/bn256 | |
go get -u golang.org/x/crypto/cast5 | |
go get -u golang.org/x/crypto/curve25519 | |
go get -u golang.org/x/crypto/hkdf | |
go get -u golang.org/x/crypto/md4 | |
go get -u golang.org/x/crypto/nacl/box | |
go get -u golang.org/x/crypto/nacl/secretbox | |
go get -u golang.org/x/crypto/ocsp |
/* Meteor's ES6 Javascript linting configuration | |
* | |
* Documentation on rules can be found at: | |
* http://eslint.org/docs/rules/ <- Optionally append the rulename | |
* | |
*/ | |
{ | |
"parser": "babel-eslint", | |
"env": { | |
"browser": true, |
# If you worked with React and JSX you probably noticed that you can't use JS comments when inside JSX sections | |
# Add this to your Atom init script | |
# Then add 'ctrl-cmd-/': 'comment-jsx' to your keymap.cson | |
# Then when you are on a JS/JSX file, just press cmd+ctrl+/ to use JSX-style comments that work with JSX elements | |
# Is not the most efficient way, but it's the cleanest and reliable one | |
atom.commands.add 'atom-workspace', 'comment-jsx', -> | |
atom.config.set('editor.commentStart', '{/*', {scopeSelector: '.source.js.jsx'}) | |
atom.config.set('editor.commentEnd', '*/}', {scopeSelector: '.source.js.jsx'}) | |
for selection in atom.workspace.getActiveTextEditor().selections |