Skip to content

Instantly share code, notes, and snippets.

View brunocarvalhodearaujo's full-sized avatar

Bruno Carvalho de Araujo brunocarvalhodearaujo

  • Rede D'Or São Luiz
  • Rio de Janeiro, Brazil
  • 12:09 (UTC -03:00)
  • X @Bruno_C_Araujo
View GitHub Profile
$ curl -sS https://getcomposer.org/installer | php

adicionar no .bashrc

alias composer="/usr/bin/php -d \"disable_functions=\" ~/composer.phar"
export class Collection {
constructor(items = { }) {
this.data = { }
this.replace(items)
}
set(key, value) {
this.data[ key ] = value
}
/**
* 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 = {
@brunocarvalhodearaujo
brunocarvalhodearaujo / node-and-npm-in-30-seconds.sh
Created January 11, 2017 17:22 — forked from isaacs/node-and-npm-in-30-seconds.sh
Use one of these techniques to install node and npm without having to sudo. Discussed in more detail at http://joyeur.com/2010/12/10/installing-node-and-npm/ Note: npm >=0.3 is *safer* when using sudo.
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

ECMAScript 6 git.io/es6features

Introduction

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:

// colors
$storm-grey: #797D84;
$alice-blue: #FCFEFF;
$hawkes-blue: #D9DEE4;
$pattens-blue: #DBE7EC;
$link-water: #D1D6DB;
$charlotte: #9FDBE5;

Docker

Comandos CLI

abaixo segue a lista de comandos basicos e suas funções

Criar tag de uma imagem

$(document).ready(function () {
const win = window.open('http://google.com.br', '_blank')
setInterval(() => win.close(), 3000)
})
#!/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')