Skip to content

Instantly share code, notes, and snippets.

Taylor Jones taylorqj

Block or report user

Report or block taylorqj

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View onboarding.js
import { Connection, getConnection, EntityRepository } from 'typeorm';
import { Company } from '../entities/Company';
import { Dispensary } from '../entities/Dispensary';
import { InviteCode } from '../entities/InviteCode';
import { InviteCodeRepository } from '../repositories/InviteCodeRepository';
import { UserOnboardingRepository } from '../repositories/UserOnboardingRepository';
import { HTTP404Error, HTTP400Error } from '../utils/httpErrors';
import { UserOnboarding } from '../entities/UserOnboarding';
export interface IUserOnboardingService {
View informed-textfield-wrap.js
/* eslint-disable */
import React from 'react';
import { asField } from 'informed';
import TextField from '@bit/yobi.ui-components.text-field';
const Text = asField(({ fieldState, fieldApi, ...props}) => {
const { value } = fieldState;
const { setValue, setTouched } = fieldApi;
const {
View docker-no-space-left.sh
/*
* No space left on device linux gitlab runner problem fix
* SSH into gitlab-runner ec2 using user ubuntu@public-ip and jeremy's PEM
* run the following docker commands
*/
docker rm $(docker ps -q -f 'status=exited')
docker rmi $(docker images -q -f "dangling=true")
View customer-history.js
/* GET /customer/v2
* Gets customers with their orders and update history.
* Aggregates all orders customer has made.
* Shows historical log based on first name, last name, email, phone, or is_enabled change.
* The top level customer record is the up-to-date record and the history shows the previous state of the record.
*/
[
{
"id": "1f5e1c91-6d8c-4a18-b793-104b0da933d6",
"number": "0000000000000009",
View proptypes.js
react-dom.development.js:506 Warning: Unknown event handler property `onQueryChange`. It will be ignored.
in div (created by DataTable)
in DataTable (created by Orders)
in div (created by Context.Consumer)
in StyledComponent (created by styled.div)
in styled.div (created by Loader)
in div (created by Loader)
in Loader (created by Orders)
in div (created by Context.Consumer)
in StyledComponent (created by styled.div)
@taylorqj
taylorqj / post-order-and-product-discounts.json
Last active May 21, 2019
Create order and product store discounts by company.
View post-order-and-product-discounts.json
// POST integrations_api_url/discount
// Description: Create order and product discounts for every store in a company.
// Payload:
[
// Below is the Order discount object.
{
"referenceId": "e4c9dbe8-2ace-48ba-9188-03c66ac21338",
"name": "$150 Off",
"type": "Order",
"amount": 150.00,
View Location.js
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Edit from 'material-ui/svg-icons/image/edit';
import SearchInput from 'components/SearchInput';
import Toggle from 'material-ui/Toggle';
import debounce from 'lodash/debounce';
import DataTable from '@bit/yobi.ui-components.data-table';
import DataTableColumn from '@bit/yobi.ui-components.data-table-column';
@taylorqj
taylorqj / movies.json
Created Nov 15, 2016
Copy & paste this data into your `movies.json` inside the `src` directory.
View movies.json
[
{
"id": 1,
"name": "The Hateful Eight",
"director": "Quentin Tarantino",
"released": "December 25, 2015",
"image": "http://resizing.flixster.com/TnduRpSjWsBCj88PlUV5Q2dZX0I=/320x474/v1.bTsxMTI4NTM1NDtqOzE3MjE0OzIwNDg7ODEwMDsxMjAwMA",
"description": "Set six or eight or twelve years after the Civil War, a stagecoach hurtles through the wintry Wyoming landscape. The passengers, bounty hunter John Ruth and his fugitive Daisy Domergue, race towards the town of Red Rock where Ruth, known in these parts as The Hangman, will bring Domergue to justice. Along the road, they encounter two strangers: Major Marquis Warren, a black former union soldier turned infamous bounty hunter, and Chris Mannix, a southern renegade who claims to be the town's new Sheriff. Losing their lead on the blizzard, Ruth, Domergue, Warren and Mannix seek refuge at Minnie's Haberdashery, a stagecoach stopover on a mountain pass. When they arrive at Minnie's, they are greeted not by the propr
@taylorqj
taylorqj / index.css
Created Nov 15, 2016
Copy & paste this into your flix application's `App.css` inside `src` to reap the benefits of some style.
View index.css
body {
margin: 0;
padding: 0;
font-family: sans-serif;
color: #212121;
}
.App-header {
background: #F44336;
}
View git-cleanup
// To delete local branches which have alread been merged into current branch
git branch --merged | grep -v "\*" | xargs -n 1 git branch -d
You can’t perform that action at this time.