This file contains 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
console.log('Hello world for no reason') |
This file contains 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
{ | |
"info": { | |
"_postman_id": "240bf058-ff96-4ed4-a5a5-3d99c291ae30", | |
"name": "Compass: API", | |
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" | |
}, | |
"item": [ | |
{ | |
"name": "APIV3", | |
"item": [ |
This file contains 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
// Something fun to try: | |
- in App.vue, and `sections` to data | |
- an array of the 5 component names | |
- in NavBar.vue, accept a `sections` prop, instead of hardcoding the sections in NavBar | |
- in App.vue, instead of listing the 5 components in your template: | |
- you can do: | |
<component v-for="section in sections" :key="section" :is="section" /> | |
methods: { |
This file contains 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
console.log( | |
'why `if (someVar != null)` will prevent type errors when we want to follow up with a check for a property \n', | |
`truthy value: ${'a string'.hasOwnProperty('test')}\n`, // executes | |
`empty string: ${''.hasOwnProperty('test')}\n`, // executes | |
`0: ${0['hasOwnProperty']('test')}\n`, // executes | |
`false: ${false.hasOwnProperty('test')}\n`, // executes | |
`NaN: ${NaN.hasOwnProperty('test')}\n` // executes | |
) | |
setTimeout(() => console.log(`null: ${null.hasOwnProperty('test')}\n` /* Type Error */ ), 500) | |
setTimeout(() => console.log(`undefined: ${undefined.hasOwnProperty('test')}\n` /* Type Error */ ), 1000) |
This file contains 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
/* | |
* | |
* Temporary fix for https://github.com/angular/angular/issues/21636 | |
* | |
* Include in your project; run after the `ng build --prod` step by running `node location/of/this/script/fix-sw` | |
* | |
* Warning: removes any instances of setting EXISTING_CLIENTS_ONLY state, which will likely have adverse effects in some situations | |
* | |
*/ |
This file contains 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
{ | |
"theaters": [ | |
{ | |
"id": 3598, | |
"tribuneTheaterId": 4848, | |
"providerTheaterId": "", | |
"name": "Century 16 Greenback Lane", | |
"address": "6233 Garfield Ave.- At former site of Cinedome 9", | |
"city": "Sacramento", | |
"state": "CA", |
This file contains 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
Sub PeaksTripPrep() | |
' | |
' PeaksTripPrep Macro | |
' | |
' Keyboard Shortcut: Ctrl+p | |
' | |
Dim rngName As Range | |
Dim rngDate As Range | |
Dim rngHowMany As Range | |
Dim rngPayment As Range |
This file contains 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
// ==UserScript== | |
// @name Open EventSpot Events by Keyword | |
// @namespace http://jackkoppa.com | |
// @version 0.1.1 | |
// @description From the main page of EventSpot, open all events that match a user-given keyword (in this case, Professor's last name) | |
// @author jackkoppa | |
// @match https://ui.constantcontact.com/rnavmap/evp/manage | |
// @grant none | |
// ==/UserScript== | |
/* jshint -W097 */ |
This file contains 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
// ==UserScript== | |
// @name Auto-Download Participant Report from EventSpot | |
// @namespace http://jackkoppa.com/ | |
// @version 0.1.1 | |
// @description On any Event page, opens the reporting tab, runs a full report, waits for it to export, and downloads the report. | |
// @author jackkoppa | |
// @match https://ui.constantcontact.com/rnavmap/evp/hub/* | |
// @grant none | |
// ==/UserScript== | |
/* jshint -W097 */ |