Skip to content

Instantly share code, notes, and snippets.

View cwparsons's full-sized avatar

cwparsons

View GitHub Profile
<div data-react-component="CustomReactComponent"
data-prop-api-url="/api/service"
data-prop-data="{ items: [ ... ] }"
data-prop-has-load-more-button="true"
data-prop-no-results-label="No results..."
data-prop-page-limit="10"
/>
@cwparsons
cwparsons / pca.d.ts
Last active February 12, 2024 21:17
A TypeScript definition file for Canada Post's AddressComplete.
declare namespace pca {
class Eventable {
constructor(source: any);
listen: (event: string, action: any) => void;
}
class Address extends Eventable {
constructor(fields?: Address.Binding[], options?: Address.Options);
}
@cwparsons
cwparsons / Checklist.md
Last active April 25, 2019 11:43
A personal website checklist from experience.

External website checklist

This checklist is a dump of random ideas from my past two website projects. It is a work-in-progress and not yet organized.

declare module 'delegated-events' {
type Event = {
bubbles: boolean;
cancelable: boolean;
currentTarget: Element;
deepPath?: () => EventTarget[];
defaultPrevented: boolean;
eventPhase: number;
isTrusted: boolean;
scoped: boolean;

TSSC Kickball Rules

Game Time

All matches of Kickball are 7 innings in length but have a 55-minute time limit. Please arrive early to ensure you get the full use of your allotted field time. Regardless of when your game begins your game will always end on time to allow the succeeding games to begin at their scheduled time.

Time Keeping

If you have an SSC Event Coordinator on site, they will be keeping track of time and will determine the end of your game. In this instance, you will receive a warning indicating the final five (5) minutes of your game and a final signal for the end of your game. Once the final signal occurs your game is over. If you do not have an Event Coordinator on- site, please designate one person from each team to keep track of the time. Games are 55 minutes in length, or 7 innings long (whichever comes first). If all 7 innings are not completed by the 55-minute curfew, the score will revert back to the last completed inning. No new inning can start within 5 minutes of the sc

Year Title Artist
2024 Romance Fontaines D.C.
2024 Manning Fireworks MJ Lenderman
2024 Brat Charli xcx
2024 3AM (LA LA LA) Confidence Man
2023 Desire, I Want to Turn Into You Caroline Polachek
2023 the record boygenius
2022 Dirt Femme Tove Lo
2022 How To Let Go Sigrid
2022 Wet Leg Wet Leg
<%@ Page Language="C#" AutoEventWireup="true" %>
<script runat="server">
// https://patrickdelancy.com/2015/01/compare-contrast-ways-programmatically-publish-sitecore-items/
protected string Result;
protected void Page_Load(object sender, System.EventArgs e)
{
Result = "";
-- https://mystery.knightlab.com/
select description from crime_scene_report
where type = "murder"
and city = "SQL City"
and date = "20180115"
-- Security footage shows that there were 2 witnesses.
-- The first witness lives at the last house on "Northwestern Dr".
-- The second witness, named Annabel, lives somewhere on "Franklin Ave".
@cwparsons
cwparsons / sample-web-part.tsx
Created February 28, 2020 17:01
Detect if an SharePoint Framework (SPFx) web part is in display mode or not, using TypeScript.
import { DisplayMode } from '@microsoft/sp-core-library';
import { BaseClientSideWebPart } from '@microsoft/sp-webpart-base';
import * as React from 'react';
import * as ReactDom from 'react-dom';
export default class SampleWebPart extends BaseClientSideWebPart<{}> {
public render() {
ReactDom.render(
<div>
{this.displayMode === DisplayMode.Edit ? <span>Edit mode</span> : null}

The 500 Greatest Albums of All Time

Rolling Stone's article

Last.fm profile

Before starting this listening journey, I am estimating I have listened to around 60 of the 500 albums. A raw CSV file is below.

Albums