Skip to content

Instantly share code, notes, and snippets.

View jasonlucas907's full-sized avatar

Jason Lucas jasonlucas907

  • Denver, CO
View GitHub Profile

Core Team onboarding suggestions

Immutable.js

classNames

  • npm classNames docs
  • Include a Mars code example

Create a feature flag for Mars app on Mac

Install DBeaver and setup connection to the TP Dev database

Building the feature flag script

  • Create a branch on the TPCore repository
  • In TPCore go to TPCore/Database/UpdateScripts/Ultrafit
  • Open the release date folder that your new feature flag scripts will be released on. If the folder does not exist then create it.(example: 2018-01-04)
  • Inside the release date folder you should see two folders:
    • 1PreScripts

SQL - Sequel

SQL is alnguage to get and manipulate date from a database like PostgreSQL.

Data Types:(not all)


-text
-numeric
-date

Queries

AXIOS GET FUNCTION

npm docs

$(document).ready(function() {
  axios.get('https')
    .then(response => {
      allImages(response.data.data)
    })

.catch(error => {

REACT COMPONENT STRUCTURES

React Component with state

import React, { Component } from 'react'; import './App.css';

class App extends Component {

Proptypes

Install PropTypes

-npm install prop-types —save

Import to project

NPM - Node Modules docs.npmjs.com

List all commands

npm

Global Install

http-server

npm docs

npm install http-sever -g

This will serve as an easy to use get around for ajax calls on a file.

In terminal

CREATE REACT APP

npm docs

Install Create React App Globally

npm install -g create-react-app