Skip to content

Instantly share code, notes, and snippets.

View pcast01's full-sized avatar

Paul pcast01

View GitHub Profile
@pcast01
pcast01 / bandsetlist.md
Last active October 21, 2021 21:39
BTS BBQ Party

🎸 BTS Band Songs - October 23rd, 2021

band

Place: Canyon Lake

Time: 1:00 pm

BTS Band Set List

Song Title - Artist - Tuning - Singer

@pcast01
pcast01 / ffCAC.md
Created February 10, 2020 20:22 — forked from fpigeonjr/ffCAC.md
Firefox CAC Setup

Firefox CAC Setup

This guide assumes you are using a 64 bit edition of Firefox.

Steps

  1. Click on the hamburger menu and select Options imgur
  2. Select Privacy & Security in the left navigation
  3. Select Security Devices button at the bottom of the page
@pcast01
pcast01 / Gatsby-bootstrap-lifecycle.md
Created November 27, 2019 01:35 — forked from swyxio/Gatsby-bootstrap-lifecycle.md
Gatsby bootstrap lifecycle

Sequence of Gatsby's bootstrap lifecycle with links to source code as of v2.0.0

  1. open and validate gatsby-config (get-config-file.js) 1.5 load themes (swyx added this note July 2019)
  2. load plugins (load-plugins/index.js) from the list given in gatsby-config.js
  3. onPreBootstrap: runs onPreBootstrap if it is implemented in any plugins, for example gatsby-plugin-typography. Receives handy [apiCallArgs](https://github.com/gatsbyjs/gatsby/blob/ffd8b2d691c9
$magick = 'C:\Program Files\ImageMagick-7.0.3-Q16\magick.exe'
# Create the folder to store Next Gen images
$currentPath = Get-Location
New-Item -ItemType Directory -Force -Path "$($currentPath)\Images\JP2Files\"
New-Item -ItemType Directory -Force -Path "$($currentPath)\Images\WebPFiles\"
New-Item -ItemType Directory -Force -Path "$($currentPath)\Images\JXRFiles\"
New-Item -ItemType Directory -Force -Path "$($currentPath)\Images\JPXFiles\"
#jp2
@pcast01
pcast01 / setlist.md
Last active August 28, 2019 02:36
BTS Band

🎸 BTS Band Songs - Practice sessions - All Songs - Set List proposals

bass

Songs practiced for Session on 8/23/2019

  1. Plush - Paul sings - first song choice
  2. Cumbersome - Fidel helps sing chorus/ harmonize with Paul on Second chorus/ maybe on 2nd part "too black or too white"
  3. If you could only see - Paul
  4. Interstate Love song - Paul
var dwightSalary = (function() {
var salary = 60000;
function changeBy(amount) {
salary += amount;
}
return {
raise: function() {
changeBy(5000);
},
lower: function() {
@pcast01
pcast01 / closureFunctionFactoryExample.js
Created August 11, 2019 13:12
function factory using closures.
function dwightJob(title) {
return function(prefix) {
return prefix + ' ' + title;
};
}
var sales = dwightJob('Salesman');
var manager = dwightJob('Manager');
alert(sales('Top')); // Top Salesman
@pcast01
pcast01 / bandpracticenotes.md
Last active July 23, 2019 13:07
BTS Lollapalooza Practice session on 7/20/2019

BTS Lollapalooza Practice session on 7/20/2019

  1. Big Me
  2. Plush
  3. Interstate Love Song
  4. My Own Worst Enemy - need to practice harmony for ending outro.
  5. My Hero - Break on Bridge and wait for 2 count on drumsticks to begin again.
  6. Summer of '69 - Fidel sings this song.
  7. Santa Monica - Focus on 2 chorus vocal at the end and then watch for cue from drums on how to end the song.
  8. Possum Kingdom - Repeat "Do you wanna die?" line -> Chorus -> End in E on guitars
@pcast01
pcast01 / useSearch.js
Created March 2, 2019 18:43 — forked from chrisdhanaraj/useSearch.js
A network request thing
// useSearch file
import React, { useEffect } from "react";
import axios from "axios";
import { useImmerReducer } from "./useImmerState";
import { baseSelectedItems } from "../constants";
export function useSearch(selectedItems) {
function reducer(draft, action) {
switch (action.type) {
@pcast01
pcast01 / js-oneliner.js
Last active April 28, 2019 15:10 — forked from hk-skit/js-oneliner.js
Useful Array One-liners and other js tips
// Remove Duplicates from an array
const removeDuplicates =
arr => arr.filter((item, index) => index === arr.indexOf(item));
const removeDuplicates1 = array => [...new Set(array)];
const removeDuplicates2 = array => Array.from(new Set(array));
// Flattens an array(doesn't flatten deeply).