Skip to content

Instantly share code, notes, and snippets.

View ryancoughlin's full-sized avatar

Ryan Coughlin ryancoughlin

View GitHub Profile
@ryancoughlin
ryancoughlin / cloudSettings
Last active February 20, 2020 00:02
VSCode Settings
{"lastUpload":"2020-02-20T00:02:06.489Z","extensionVersion":"v3.4.3"}
import React, { Component } from 'react';
import {
VictoryLine,
VictoryChart,
VictoryContainer,
VictoryClipContainer,
VictoryZoomContainer,
VictoryAxis,
VictoryScatter,
} from 'victory';
import fs from 'fs'
import cheerio from 'cheerio'
import fetch from 'node-fetch'
import _ from 'lodash'
const scrapeRoute = {
method: 'GET',
path: '/api/scrape',
handler: function(request, h) {
const url =
import LRU from 'lru-cache'
const options = {
max: 40000,
maxAge: 8000 * 60 * 60
}
const cache = LRU(options)
export function checkCache(key) {
import React, { Component } from 'react'
import _ from 'lodash'
import moment from 'moment'
import glamorous from 'glamorous'
import Styles from '../../assets/styles'
export default class NextTideRow extends Component {
formatTideTime(time) {
return moment
.utc(time)
window.addEventListener('load', function() {
var REFERRER_COOKIE = '_rbn_referral',
noop = function() {};
var $freeTrialForm = document.querySelector('.hbspt-form > form');
if ($freeTrialForm) {
console.log(`We have the free trial form`);
$freeTrialForm.addEventListener('hsvalidatedsubmit', function(event) {
if [ -f $(brew --prefix)/etc/bash_completion ]; then
. $(brew --prefix)/etc/bash_completion
fi
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
export PS1="\W\[\033[32m\]\$(parse_git_branch)\[\033[00m\] $ "
import React, { Component } from "react"
import PropTypes from "prop-types"
import Link from "gatsby-link"
class Home extends Component {
render() {
const data = this.props.data
console.log(data)