This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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 = [ |
NewerOlder