This file contains hidden or 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
| CREATE TABLE t_random AS SELECT s, md5(random()::text) FROM generate_Series(1,5) s; | |
| INSERT INTO t_random VALUES (generate_series(1,1000000000), md5(random()::text)); | |
| SELECT pg_size_pretty(pg_relation_size('t_random')); |
This file contains hidden or 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
| function random_hex(size) { | |
| return Array.apply(null, Array(size)).map(function() { | |
| return (Math.random()*16|0).toString(16); | |
| }).join(""); | |
| } | |
| console.log(random_hex(128)); |
This file contains hidden or 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
| Wetsuit, size M/MT (height 182cm, weight 77kg), thickness 3/2mm, colors black/red/yellow | |
| Climbing shoes (size 44.5) | |
| Manly surfing school | |
| Longboard, mini cruiser skateboard (not a penny board), something with a kicktail, ~27" long, something like this one http://i.ebayimg.com/00/s/NTA0WDUwNA==/z/QD0AAMXQ1d1TGjaH/$_12.JPG | |
| Cheezburger |
This file contains hidden or 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
| atom-text-editor.is-focused::shadow .cursors { | |
| .cursor { | |
| transition: opacity .2s ease-out; | |
| opacity: 0.7; | |
| background: gray; | |
| border: none; | |
| border-radius: 1px; | |
| } | |
| &.blink-off .cursor { |
This file contains hidden or 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
| - TC electronics ditto looper (mini) | |
| - TC electronics hall of fame mini | |
| - Ibanes tube screamer mini | |
| - addict a ball http://www.addictaball.com.au | |
| - fitbit hr large black |
This file contains hidden or 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
| const connect = (mapStateToProps, mapDispatchToProps) => magic ... | |
| const MegaLopolos = (props) => | |
| <div> | |
| Stuff.... | |
| </div> | |
| export defaults connect(mapStateToProps, mapDispatchToProps)(cssModules(styles)(MegaLopolos)); |
This file contains hidden or 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
| <form action="/signin"> | |
| <input type="text" name="username" /> | |
| <input type="password" name="password" /> | |
| <button type="submit">Sign In</button> | |
| </form> |
This file contains hidden or 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 { Form, TextInput, PasswordInput } from 'a-plus-forms'; | |
| const signIn = ({ username, password }) => | |
| axios.post('/users', { username, password }); | |
| <Form onSubmit={signIn}> | |
| <TextInput name="username" label="Username" /> | |
| <PasswordInput name="password" label="Password" /> | |
| <button type="submit">Sign In</button> | |
| </Form> |
This file contains hidden or 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 { field, TextInput } from 'a-plus-forms'; | |
| @field() | |
| class PhoneInput extends React.Component { | |
| onChange = (text) => { | |
| const phoneNumber = format(text); // to phone number | |
| this.props.onChange(phoneNumber); | |
| } | |
| render() { |
This file contains hidden or 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 { mount } from 'enzyme'; | |
| import { TextInput, PasswordInput } from 'a-plus-forms'; | |
| import SignInForm from 'src/features/auth/signin_form'; | |
| describe('<SignInForm /', () => { | |
| it('works beautifully', () => { | |
| const onSubmit = sinon.spy(); | |
| const wrapper = mount(<SignInForm onSubmit={onSubmit} />); | |
| wrapper.find(TextInput).instance().value = 'nikolay'; |