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
https://i.imgur.com/ZVs4XZe.png | |
https://i.imgur.com/kb8usFU.png |
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 styled from 'styled-components'; | |
interface wrapperProps { | |
top?: string; | |
bottom?: string; | |
left?: string; | |
right?: string; | |
as?: string; | |
children: React.ReactElement; | |
} | |
const defaultProps: wrapperProps = { |
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 React from "react"; | |
import TableGenerator from './TableGenerator'; | |
function Container(props){ | |
const testData = [ | |
{ | |
"Goal Name":"sitewide", | |
"Device":"Android", | |
"IP Address":"176.65.85.xx", |
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
call pathogen#infect() | |
syntax on | |
colorscheme seattle | |
filetype indent plugin on |
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 React, { Component } from 'react'; | |
import { SelectBox, CheckBox, TextBox, DateBox, Button, ValidationSummary } from 'devextreme-react'; | |
import { | |
Validator, | |
RequiredRule, | |
CompareRule, | |
EmailRule, | |
PatternRule, | |
StringLengthRule, | |
RangeRule, |
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 React from 'react'; | |
import { shallow } from 'enzyme'; | |
import EditUserForm from './EditUserForm'; | |
import '../../jest.setup' | |
const editUserForm = shallow(<EditUserForm />); | |
describe('EditUserForm', ()=>{ |
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 React from 'react'; | |
import { shallow } from 'enzyme'; | |
import CreateUserForm from './CreateUserForm'; | |
import '../../jest.setup' | |
const createUserForm = shallow(<CreateUserForm />); | |
describe('CreateUserForm', ()=>{ | |
it("renders correctly", () => { |
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 React, { Component } from 'react'; | |
import { SelectBox, CheckBox, TextBox, DateBox, Button, ValidationSummary } from 'devextreme-react'; | |
import { | |
Validator, | |
RequiredRule, | |
CompareRule, | |
EmailRule, | |
PatternRule, | |
StringLengthRule, | |
RangeRule, |
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 mysql = require('mysql'); | |
const config = { | |
host: "blahblah.amazonaws.com", | |
user: "default", | |
password: "default", | |
database: "whoknows", | |
port:"3306" | |
} | |
const db = mysql.createConnection(config); | |
app.post('/users', async function (req, res) { |
NewerOlder