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
| # We'll be installing Homebrew in the /opt directory. | |
| cd /opt | |
| # Create a directory for Homebrew. This requires root permissions. | |
| sudo mkdir homebrew | |
| # Make us the owner of the directory so that we no longer require root permissions. | |
| sudo chown -R $(whoami) /opt/homebrew | |
| # Download and unzip Homebrew. This command can be found at https://docs.brew.sh/Installation. |
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 * as React from 'react'; | |
| import { mount } from 'enzyme'; | |
| import { serialize, deserialize } from './react-seritalize'; | |
| class CustomComponent extends React.Component<any, any> { | |
| render () { | |
| return <div className="CustomComponent" >{this.props.children}</div> | |
| } | |
| } |
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
| // sequelize config | |
| var sequelize = new sequelize('database', 'user', 'pass', { | |
| host: '127.0.0.1', | |
| dialect: 'mysql', | |
| port: 3306, | |
| pool: { | |
| max: 10, | |
| min: 0, | |
| idle: 20000 |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <title> </title> | |
| <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/min/1.5/min.min.css"> | |
| <style> | |
| body,textarea,input,select { | |
| background:0; | |
| border-radius:0; | |
| font:16px sans-serif; |