Skip to content

Instantly share code, notes, and snippets.

View aureliosaraiva's full-sized avatar

Aurélio Saraiva aureliosaraiva

View GitHub Profile

NX-SM400

Essa é a versão em português

For the English (en-US) version check THIS LINK

A algum tempo, alguns modelos de smart plug com o padrão de tomada brasileiro começaram a aprecer no AliExpress.

substitutions:
hostname: "Washing-Machine"
ssid_ap: "HA_POW_01"
versao: "1.0"
esphome:
name: washing_machine
platform: ESP8266
board: esp01_1m
board_flash_mode: dout
[docker-ce-stable]
name=Docker CE Stable - $basearch
baseurl=https://download.docker.com/linux/fedora/28/$basearch/stable
enabled=1
gpgcheck=1
gpgkey=https://download.docker.com/linux/fedora/gpg
[docker-ce-stable-debuginfo]
name=Docker CE Stable - Debuginfo $basearch
baseurl=https://download.docker.com/linux/fedora/28/debug-$basearch/stable
@aureliosaraiva
aureliosaraiva / gist:2ae0ac0d27607792b49c4e9dafaf2a79
Created January 3, 2018 18:21 — forked from while0pass/listchars.vim
show/hide hidden characters in Vim
" show hidden characters in Vim
:set list
" settings for hidden chars
" what particular chars they are displayed with
:set lcs=tab:▒░,trail:▓
" or
:set listchars=tab:▒░,trail:▓
" used \u2592\u2591 for tab and \u2593 for trailing spaces in line.
" In Vim help they suggest using ">-" for tab and "-" for trail.
import Ember from 'ember';
const { get } from 'ember-metal/object';
export default Ember.Component.extend({
model: null,
init(...args) {
this._super(...args);
console.log(get(this, 'model.username'));
}
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<title>E-mail convite</title>
<style>
table{
border: none;
background: #EAEAEA;
import Ember from 'ember';
import config from './config/environment';
var Router = Ember.Router.extend({
location: config.locationType
});
Router.map(function() {
this.route('todos', { path: '/' });
});
const myFunction = function () { /* My code */ };
const a = test.bind(this);
const b = test.bind(this);
console.log(a === b); // result is false
console.log(a === a); // result is true
import Ember from 'ember';
const { $, Component } = Ember;
export default Component.extend({
clickHandler() { /* -- */ },
didInsertElement(...args) {
this._super(...args);
$('li.link').on('click', this.clickHandler.bind(this));