This file contains 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
class SequelizeUsersRepository { | |
constructor({ userModel }) { | |
this.userModel = userModel; | |
} | |
add(user) { | |
const { valid, errors } = user.validate(); | |
if(!valid) { | |
const error = new Error('ValidationError'); |
This file contains 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
import React, { Component } from 'react'; | |
import logo from './logo.svg'; | |
import './App.css'; | |
import Espelho from './Espelho'; | |
class App extends Component { | |
constructor(props) { | |
super(props); | |
this.state = { |
This file contains 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
<div ng-app="MyApp"> | |
<h1>Zero padding filter</h1> | |
<div> | |
<input type="text" ng-model="ztext" placeholder="Type some text ..." /> | |
</div> | |
<div> | |
<h2>Result:</h2> | |
<p>{{ztext | zpad:4}}</p> | |
</div | |
</div> |
This file contains 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
.note { | |
-ms-border-radius: 3px; | |
border: 1px solid #eee; | |
border-left-width: 5px; | |
border-radius: 3px; | |
margin: 20px 0; | |
padding: 20px; | |
} | |
.note:first-child { |