Skip to content

Instantly share code, notes, and snippets.

View TiE23's full-sized avatar

Kyle Geib TiE23

View GitHub Profile
@TiE23
TiE23 / iCalendarUtils.test.ts
Last active August 23, 2022 17:10
Rearrange VALARM segment to be after RRULE and DURATION
import { rearrangeCalendarStringsForOutlook } from "../iCalendarUtils";
describe("rearrangeCalendarStringsForOutlook()", () => {
test("should handle a single resort", () => {
const singleBefore = dedent`
BEGIN:VCALENDAR
VERSION:2.0
CALSCALE:GREGORIAN
PRODID:TiE23/ical
START:VEVENT
@TiE23
TiE23 / init.js
Last active September 3, 2019 23:33
Atom File Name Tab Disambiguator
// This makes file names in the tabs a little bit easier to read, especially
// when you have TONS of identically prefixed and very long named files.
// It'll convert a row of tabs that looks like this (USELESS):
// [NewsFeedConfigurati…][NewsFeedConfigurati…][NewsFeedConfigurati…]
// And make it look a little more like this (BETTER):
// [NewsFee…ManagerSpec.js][NewsFee…eView.react.js][NewsFee…ainer.react.js]
// And optionally, if TRIM_EXTENSION is set to true, like this (BEST):