A Pen by Joey Hayes on CodePen.
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
function arraysMatch(arrayOne, arrayTwo) { | |
let match = false; | |
if (arrayOne.length !== arrayTwo.length) { | |
return false; | |
} | |
for (let indexOne = 0; indexOne < arrayOne.length; indexOne += 1) { | |
// For checking for a match to the current ArrayOne value | |
let valueMatch = false; | |
for (let indexTwo = 0; indexTwo < arrayTwo.length; indexTwo += 1) { |
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
type Tweet { | |
id: ID! | |
# The tweet text. No more than 140 characters! | |
body: String | |
# When the tweet was published | |
date: Date | |
# Who published the tweet | |
Author: User | |
# Views, retweets, likes, etc | |
Stats: Stat |
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
/* eslint-disable no-console */ | |
import * as Sentry from '@sentry/browser'; | |
let production = false; | |
/** | |
* Initialize reporter. This should be done as soon as possible. | |
* @method initReporter | |
* @param {Boolean} isProduction - If the app is currently running in | |
* production or not. |
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
/** | |
* Copyright (c) 2019-present, Brian J. Hayes. | |
* | |
* https://github.com/joeyred | |
* | |
* This source code is licensed under the MIT license found in the | |
* LICENSE file in the root directory of this source tree. | |
*/ | |
export function fixedDecimalPlaces(number, places) { |
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
function arraysMatch(arrayOne, arrayTwo) { | |
let match = false; | |
if (arrayOne.length !== arrayTwo.length) { | |
return false; | |
} | |
for (let indexOne = 0; indexOne < arrayOne.length; indexOne += 1) { | |
// For checking for a match to the current ArrayOne value | |
let valueMatch = false; | |
for (let indexTwo = 0; indexTwo < arrayTwo.length; indexTwo += 1) { |
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
var gulp = require('gulp'); | |
var yargs = require('yargs'); | |
var DEPLOY = Boolean(yargs.argv.production); | |
/** | |
* Jekyll Task | |
* | |
* Make Jekyll run stuff when told to by gulp. | |
* |
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
/** | |
* Controls whether debug functions have any output to console. | |
* @type {Boolean} | |
*/ | |
var DEBUG_IS_ENABLED = true; | |
/** | |
* Debug constructor | |
* @method Debug | |
* @param {string} objectName The name of the parent object of all logged data |
NewerOlder