Skip to content

Instantly share code, notes, and snippets.

View bricksroo's full-sized avatar

Mason Hahn bricksroo

View GitHub Profile
@bricksroo
bricksroo / App.vue
Last active February 7, 2024 13:03
Reveal.js in Vue
<template>
<div id="app">
<!-- <img src="./assets/logo.png">
<HelloWorld msg="Welcome to Your Vue.js App"/> -->
<div class="reveal">
<div class="slides">
<section>Single Horizontal Slide</section>
<section>
<section>Vertical Slide 1</section>
<section>Vertical Slide 2</section>
@bricksroo
bricksroo / weekDayEndOccurance.js
Last active August 17, 2021 23:49
Checking day for weekday or weekend ordinal (ie. first weekend day or third weekday).
// imports from date-fns https://github.com/date-fns/date-fns
const isWeekend = require('date-fns/is_weekend');
const endOfMonth = require('date-fns/end_of_month');
const startOfDay = require('date-fns/start_of_day');
const startOfMonth = require('date-fns/start_of_month');
const addDays = require('date-fns/add_days');
const subDays = require('date-fns/sub_days');
// test day
const now = new Date(2018,1,28);