abaixo segue a lista de comandos basicos e suas funções
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node --harmony-async-await | |
require('babel-register') | |
const program = require('commander') | |
const { version } = require('../package.json') | |
const { Model } = require('../src/models/Model') | |
// manage startup of application | |
program | |
.command('start') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function () { | |
const win = window.open('http://google.com.br', '_blank') | |
setInterval(() => win.close(), 3000) | |
}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// colors | |
$storm-grey: #797D84; | |
$alice-blue: #FCFEFF; | |
$hawkes-blue: #D9DEE4; | |
$pattens-blue: #DBE7EC; | |
$link-water: #D1D6DB; | |
$charlotte: #9FDBE5; |
ECMAScript 6 git.io/es6features
ECMAScript 6, also known as ECMAScript 2015, is the latest version of the ECMAScript standard. ES6 is a significant update to the language, and the first update to the language since ES5 was standardized in 2009. Implementation of these features in major JavaScript engines is underway now.
See the ES6 standard for full specification of the ECMAScript 6 language.
ES6 includes the following new features:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Copyright 2018-present Bruno Carvalho de Araujo. | |
* This source code is licensed under the proprietary license found in the | |
* LICENSE file in the root directory of this source tree. | |
*/ | |
import React, { Component, ReactNode, Fragment } from 'react' | |
import PropTypes from 'prop-types' | |
type Props = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export class Collection { | |
constructor(items = { }) { | |
this.data = { } | |
this.replace(items) | |
} | |
set(key, value) { | |
this.data[ key ] = value | |
} |
$ curl -sS https://getcomposer.org/installer | php
adicionar no .bashrc
alias composer="/usr/bin/php -d \"disable_functions=\" ~/composer.phar"