I hereby claim:
- I am josser on github.
- I am josser (https://keybase.io/josser) on keybase.
- I have a public key ASBnqM8fMlxKvEMi1UvJfqsUHnrz7XGGo-LCDfOGdJLNuQo
To claim this, I am signing this object:
| with tbl2_view as ( | |
| with tbl3_view as ( | |
| with tbl4_view as ( | |
| select * from tbl4 | |
| ) | |
| select tbl3.*, json_agg(tbl4_view) as tbl4 from tbl3 | |
| inner join tbl4_view on tbl4_view.tbl3_id = tbl3.id | |
| group by tbl3.id | |
| ) |
| var iterations = 100000000; | |
| var stats = { | |
| win: 0, | |
| loose: 0 | |
| } | |
| function generatePrises() { | |
| var initial = [0, 0, 0]; | |
| initial[Math.floor(Math.random() * 3)] = 1; |
| // Is it ok to use initialState as stub for reducer tests importing it from reducer itself? | |
| import { initialState, fooReducer } from './reducers/foo'; | |
| var reducedState = { ... initialState } | |
| reducedState.name = 'bar'; | |
| expect(fooReducer(initialState)).to.eql(reducedState); | |
| import { ADD_TODO } from 'constants/ActionTypes' | |
| export const initialState = [ | |
| { | |
| text: 'Use Redux', | |
| completed: false, | |
| id: 0 | |
| } | |
| ] |
| 'use strict'; | |
| var keys = []; | |
| var controlAlt = [ 'ctrl', 'alt' ]; | |
| var margin = 0; | |
| var increment = 0.1 | |
| function log() { | |
| Phoenix.log(JSON.stringify(arguments[0], true, 2)); | |
| } |
| var ldap = require('ldapjs'); | |
| var client = ldap.createClient({ | |
| url: 'ldap://10.10.0.10' | |
| }); | |
| client.bind('user@donaim', 'pw', function(error) { | |
| if (error) { |
| var ldap = require('ldapjs'); | |
| var client = ldap.createClient({ | |
| url: 'ldap://10.10.0.10' | |
| }); | |
| client.bind('user@donaim', 'pw', function(error) { | |
| if (error) { |
I hereby claim:
To claim this, I am signing this object:
| 'use strict'; | |
| var keys = []; | |
| var controlAlt = [ 'ctrl', 'alt' ]; | |
| var margin = 0; | |
| var increment = 0.1 | |
| function log() { | |
| Phoenix.log(JSON.stringify(arguments[0], true, 2)); | |
| } |
| import fs from 'fs' | |
| import path from 'path' | |
| import Sequelize from 'sequelize' | |
| import config from '../config' | |
| const sequelize = new Sequelize( | |
| config.db.database, config.db.username, config.db.password, config.db.options | |
| ) | |
| const db = {} |