Skip to content

Instantly share code, notes, and snippets.

View nmquebb's full-sized avatar

Nick Quebbeman nmquebb

  • Chicago, IL
View GitHub Profile
@nmquebb
nmquebb / site.js
Last active January 20, 2020 19:25
Simple Components
import { Slider } from "./components/Slider";
import { Modal } from "./components/Modal";
// Store all of the components in an object we can reference.
const REGISTERED_COMPONENTS = {
Slider,
Modal,
}
function init() {
let LISTENERS = {},
LISTENER_IDS = new Set(),
id = 0,
index = 0,
ids = [],
len = 0;
/**
* @name handleOnScroll
* Bind this function to scroll. Iterates over all the listeners
defmodule Animals do
alias Animals.{Cat, Dog, Bear}
def get_module("cat"), do: Cat
def get_module("dog"), do: Dog
def get_module("bear"), do: Bear
def do_this(model),
do: apply(get_module(model.type), :validate_structure, [model])
defmodule Providers.Gmail do
@moduledoc """
API access to Gmail services.
https://developers.google.com/gmail/api/guides/
"""
# """
# Base API endpoint for our requests
# """
@base_url "https://www.googleapis.com/gmail/v1"
@nmquebb
nmquebb / rakefile.rb
Last active June 30, 2016 23:05
Install preferred plugins at the beginning of a Craft project.
# OCTO CRAFT
# Set plugins to install using craft-cli
# by toggling true or false per plugin.
#
# Instructions:
# brew tap rsanchez/homebrew-craft-cli
# brew install craft-cli
# rake octo:install
plugins = [