Skip to content

Instantly share code, notes, and snippets.

View dane-stevens's full-sized avatar

Dane Stevens dane-stevens

View GitHub Profile
// Name: Format Addresses - Fulfillment Files
import "@johnlindquist/kit";
import { parse } from "csv-parse";
import { stringify } from "csv-stringify";
import fs from "fs";
import path from "path";
import { transform } from "stream-transform";
// const files = await drop();
@dane-stevens
dane-stevens / Dockerfile
Created April 4, 2019 11:30
Sample dockerfile
FROM mhart/alpine-node:10
WORKDIR /app
EXPOSE 5000
# Install http server
RUN yarn global add serve
# Bundle app source
COPY build /app/build
@dane-stevens
dane-stevens / bitbucket-pipelines.yml
Last active November 4, 2019 11:00
Sample Bitbucket Pipelines Config
options:
# Enable docker for the Pipeline
docker: true
pipelines:
branches:
master:
- step:
name: Build app for Production (create-react-app)
image: mhart/alpine-node:10
import React from 'react'
import PropTypes from 'prop-types'
import { TueriContext } from './Provider'
import kebabCase from 'lodash.kebabcase'
class Img extends React.Component {
constructor(props) {
super(props)
this.state = {
class Img extends React.Component {
constructor(props) {
...
this.state = {
...
fullsizeLoaded: false
}
...
class Img extends React.Component {
constructor(props) {
...
this.state = {
...
isInViewport: false
lqipLoaded: false
}
...
class Img extends React.Component {
constructor(props) {
...
this.window = typeof window !== 'undefined' && window
this.isWebpSupported = this.isWebpSupported.bind(this)
}
...
class Img extends React.Component {
constructor(props) {
super(props)
this.state = {
width: 0
}
this.imgRef = React.createRef()
}
@dane-stevens
dane-stevens / TueriImg.js
Last active March 19, 2019 15:14
Tueri - Image Component Simple
import React from 'react'
import PropTypes from 'prop-types'
import { TueriContext } from './Provider'
import kebabCase from 'lodash.kebabcase'
class Img extends React.Component {
constructor(props) {
super(props)
this.state = {
export const monroeShocktober = {
type: 'MAX_REWARD',
// Monroe buy 4 for the price of 3
filters: [
{
qualifier: {
match: "ALL",
conditions: [