Skip to content

Instantly share code, notes, and snippets.

View joeysk2012's full-sized avatar

joeysk2012

View GitHub Profile
@joeysk2012
joeysk2012 / .yaml
Last active October 10, 2018 02:42
- name: Start a new AWS with ansible enabled
hosts: workers
become: true
become_method: sudo
vars:
root_password: ******
tasks:
- name: create sudo user
password: "{{ root_password }}"
- name: create ansadmin
import React, {Component} from 'react';
import helper from '../common/helper.js';
import {login, logout} from '../actions';
import {connect} from 'react-redux';
import { Route, Router, Switch, Link, Redirect} from 'react-router-dom';
import Manager from "./Manager.js"
import {Recover} from '../components/Recover.js'
import styled from 'styled-components';
class Login extends React.Component{
constructor(props){
super(props);
this.state ={
'username' : '',
'password' : ''
}
}
handleChange = (e) => {
@joeysk2012
joeysk2012 / nest
Created August 9, 2018 21:19
react
import React, {Component} from 'react';
import styled from 'styled-components/native';
import {func, object, bool, string} from 'prop-types';
import {TouchableOpacity, View, ScrollView} from 'react-native';
import PropTypes from 'prop-types';
import Swipeout from 'react-native-swipeout';
// local
import {Text, IconUri, DatePicker, Icon, ScrollWrapper, Image, Button} from '~/components/shared';
import {getNavigatorContext} from '~/enhancers';
import React from 'react';
import { REST_URL } from './constants';
import Select from './Select.js';
class Dropdowns extends React.Component{
constructor(props){
super(props);
this.state = {
price : [],
import React from 'react';
class Select extends React.Component{
constructor(props){
super(props);
this.state = {
price : this.props.price,
block : this.props.block,
options : this.props.options,
id : this.props.id,
import React from 'react';
class Search extends React.Component {
constructor(props) {
super(props);
this.state = {city: 'Los Angeles'};
this.handleSubmit = this.handleSubmit.bind(this);
this.handleChange = this.handleChange.bind(this);
import React from 'react';
var ReactBsTable =require('react-bootstrap-table');
var BootstrapTable = ReactBsTable.BootstrapTable;
var TableHeaderColumn = ReactBsTable.TableHeaderColumn;
import '../public/css/react-bootstrap-table.css';
import ReactModal from 'react-modal';
import Client from './Client'
import Search from './Search'
import React from 'react';
import Client from './Client'
class Search extends React.Component {
constructor(props) {
super(props);
this.state = {
city: "Los Angeles"
}
import React from 'react';
var ReactBsTable =require('react-bootstrap-table');
var BootstrapTable = ReactBsTable.BootstrapTable;
var TableHeaderColumn = ReactBsTable.TableHeaderColumn;
import '../public/css/react-bootstrap-table.css';
import wwtpdata from '../data/wwtp_ca.json';
import ReactModal from 'react-modal';
import Client from './Client';
import axios from 'axios'