Skip to content

Instantly share code, notes, and snippets.

View WebD00D's full-sized avatar
💻
pushing pixels

Christian Bryant WebD00D

💻
pushing pixels
View GitHub Profile
@WebD00D
WebD00D / debounce.ts
Created October 9, 2019 00:17
Debounce React Hook
import React, { useState, useEffect } from 'react';
const debounce = (value, delay) => {
// State and setters for debounced value
const [debouncedValue, setDebouncedValue] = useState(value);
useEffect(
() => {
// Set debouncedValue to value (passed in) after the specified delay
@WebD00D
WebD00D / index.html
Last active July 31, 2018 23:22
Zygnal employee profile markup changes
<!--
1. Body tag for https://beta.zignyl.com/employees/xxxx should get a employee-profile class added.
2. Panel group markup structure has changed a tad. Please note the original below,
and see comments on what changed further towards the bottom with the new markup.
OLD MARKUP:
<div class="col-md-6">
<div class="panel-group" id="accordionNotes" role="tablist" aria-multiselectable="true">
@WebD00D
WebD00D / google-maps-geofence-complete-example.markdown
Created June 11, 2018 18:01
Google Maps Geofence Complete Example
@WebD00D
WebD00D / FEWD-Fundamentals.md
Created June 8, 2018 05:27
FEWD Fundamental Questions and Drills

@WebD00D
WebD00D / purchases.js
Created May 15, 2018 19:41
Gets all users board purchases
import React, { PureComponent } from "react";
import Link from "gatsby-link";
import cx from "classnames";
import fire from "../fire";
import { connect } from "react-redux";
import _ from "lodash";
import Moment from "react-moment";
import "moment-timezone";
import "../layouts/css/login.css";
@WebD00D
WebD00D / profile.js
Created May 15, 2018 19:37
Snippet to create a new care patient in a piece of medical software I've built
import React, { PureComponent } from "react";
import Link from "gatsby-link";
import fire from "../fire";
import { Route, Redirect } from "react-router-dom";
import MapGL, { Marker, Popup, NavigationControl } from "react-map-gl";
import FileUploader from "react-firebase-file-uploader";
import cx from "classnames";
import _ from "lodash";
import { connect } from "react-redux";
import "whatwg-fetch";
@WebD00D
WebD00D / app.js
Created May 15, 2018 19:33
paywall app
import React, { Component } from "react";
import "./App.css";
import fire from "./firebase";
import ReactGA from "react-ga";
import cx from "classnames";
import ReactJWPlayer from "react-jw-player";
import InitialView from "./components/InitialView";
import Signup from "./components/Signup";
import SignIn from "./components/SignIn";
@WebD00D
WebD00D / checkoutForm.js
Created May 15, 2018 19:32
Checkout form component for Embeddable paywall
import React, { Component } from "react";
import { injectStripe } from "react-stripe-elements";
import "../App.css";
// import "fetch-polyfill";
import CardSection from "./CardSection";
class CheckoutForm extends Component {
constructor(props) {
super(props);
@WebD00D
WebD00D / TravelDashboard.js
Created May 15, 2018 19:29
Dashboard to review our travel guide submissions
import React, { Component } from "react";
import logo from "./logo.svg";
import "./App.css";
import fire from "./database";
import cx from "classnames";
import Moment from "react-moment";
import "moment-timezone";
import _ from "lodash";
class App extends Component {
@WebD00D
WebD00D / index.js
Created May 15, 2018 19:26
Little React app to submit a travel guide form for Stabmag.com
import React, { Component } from "react";
import logo from "./logo.svg";
import "./App.css";
import fire from "./database";
import cx from "classnames";
import StepIndicator from "./components/StepIndicator";
import OptionList from "./components/OptionList";
import TextInput from "./components/TextInput";
import TravelButton from "./components/Button";