I hereby claim:
- I am joelwallis on github.
- I am joelwallis (https://keybase.io/joelwallis) on keybase.
- I have a public key ASDEG3poIdSCikhq4hNqxFUAFI-iK30SPf5Dhy8g8BrVnwo
To claim this, I am signing this object:
| def counter(count_to) | |
| Array(1..count_to) | |
| .each { |n| | |
| return 'Counting: ' + n.to_s | |
| } | |
| end | 
| const TEMPLATE = [ | |
| '<div class="MyComponent @classes" @attributes>', | |
| ' <p>', | |
| ' @message', | |
| ' </p>', | |
| '</div>' | |
| ].join('\n').concat('\n') | |
| const defaultParams = { | |
| classes: '', | 
| const FAKE_CHALLENGES = (function () { | |
| const fakeMeAFile = file => ({name: file, content: `<${file}-content>`}) | |
| const fakeMeAChallenge = challengeKey => ({ | |
| title: challengeKey, | |
| files: ['index.js', 'readme.md', 'test.js'].map(fakeMeAFile) | |
| }) | |
| return () => ['hello-world', 'fizz-buzz', 'foo-bar'].map(fakeMeAChallenge) | |
| })() | 
| var report = ` | |
| Indu 120 | |
| Joel 18 | |
| Rama 56 | |
| -- | |
| Joel 52 | |
| Indu 14 | |
| Rama 46 | |
| -- | |
| Ido 72 | 
| const aws = require('aws-sdk') | |
| const s3 = new aws.S3({ | |
| accessKeyId: '<access-id>', | |
| secretAccessKey: '<access-secret>' | |
| }) | |
| s3.getObject({ | |
| Bucket: 'joelwallis', | |
| Key: 'joel.json' | |
| }, (err, payload) => { | 
I hereby claim:
To claim this, I am signing this object:
This is a discussion issue. Tasks will be defined after this discussion issue is closed.
Currently, our Entity library is pretty simple and primitive. It only supports a single database per program, and there's no distinction between a database and a row. Ideally, we would have a clear distinction between representations of a database, a row, and a collection of rows (eg.: a table), so we could use object-oriented programming to properly represent every single aspect of a database (for now, we'll be focused in databases, collections/tables, and rows/documents).
Below are examples of how I imagine it could be:
| FROM elixir:1.7.4-alpine | |
| LABEL maintainer="Joel Wallis Jucá <[email protected]>" | |
| ENV MIX_ENV prod | |
| WORKDIR /app | |
| COPY . $WORKDIR | |
| RUN mix local.hex --force | 
| const passport = require("passport"); | |
| const { LocalStrategy } = require("passport-local"); | |
| const User = require("./models/user"); | |
| const Employee = require("./models/employee"); | |
| const session = require('express-session'); | |
| passport.use(new LocalStrategy(username, password, done) => { | |
| User.findOne({ username }) | |
| .then(user => done(null, user && User.isPasswordValid(user, password) ? user : false)) | |
| .then(err => done(err)) | 
| class DataFetcher extends React.Component { | |
| componentWillMount() { | |
| this.setState(this.props.initialState) | |
| this.props.fetcher().then(newState => this.setState(newState)) | |
| } | |
| render() { | |
| <TablePage {...this.state} /> | |
| } | |
| } |