Skip to content

Instantly share code, notes, and snippets.

Avatar

Brandon Kalinowski brandonkal

View GitHub Profile
View st-joseph-novena.md

title:: St. Joseph Novena

This precious treasury of prayers in honor of St. Joseph is to be prayed for 30 days, commemorating the earthly thirty years which St. Joseph spent in the company of our Lord.

It takes approximately 20-25 minutes and "the extraordinary graces obtained by this prayer are innumerable".

It is said that any missed days may be caught up on the 30th day. So if one were to miss 2 days (not recommended), then the prayers in their totality would be recited 3 times on the final day.

PRAYER FOR ST. JOSEPH’S HOLY CLOAK NOVENA

@brandonkal
brandonkal / Sophia.ps1
Created Jan 4, 2022
Windows Setup Scripts
View Sophia.ps1
<#
.SYNOPSIS
Default preset file for "Sophia Script for Windows 10"
Version: v5.12.10
Date: 31.12.2021
Copyright (c) 2014—2022 farag
Copyright (c) 2019—2022 farag & Inestic
View openpgp.md
View .editorconfig
[*]
indent_style = tab
indent_size = 4
@brandonkal
brandonkal / deno-bridge.ts
Created Jan 15, 2020
An attempt to use Deno types in Node
View deno-bridge.ts
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
/* eslint-disable @typescript-eslint/no-explicit-any */
/* eslint-disable @typescript-eslint/no-empty-interface */
/// <reference path="../node_modules/@types/node/index.d.ts" />
import * as os from "os"
function noop() {}
@brandonkal
brandonkal / go.ts
Created Nov 29, 2019
Go -- simplified async error handling in Typescript
View go.ts
export type PromiseType<T extends Promise<any>> = T extends Promise<infer U>
? U
: never
export type Arguments<T> = T extends (...args: infer U) => infer R ? U : never
export type ReplaceReturn<T, TNewReturn> = (...a: Arguments<T>) => TNewReturn
type Fn = (...args: any[]) => any
export type Go<E extends Error, T extends Fn> = {
View useInitialMeasure.tsx
import React from 'react'
export interface Size {
width: number
height: number
}
export function useInitialMeasure(ref: React.RefObject<HTMLElement | null>) {
const [bounds, setBounds] = React.useState<Size>({
width: 0,
@brandonkal
brandonkal / ts-string.ts
Last active Jun 18, 2019
Typescript Return type from compiled string
View ts-string.ts
import ts from 'typescript'
import fs from 'fs'
import path from 'path'
function transform(
contents: string,
libSource: string,
compilerOptions: ts.CompilerOptions = {}
) {
if (!compilerOptions.target) {
View saka_key_config.json
{
"activeProfiles": {
"General": "power",
"Keybindings": "Brandon",
"Appearance": "default",
"Blacklist": "default"
},
"profiles": {
"General": {
"power keep focus": {
@brandonkal
brandonkal / sVim.rc
Last active May 4, 2019
sVim Settings
View sVim.rc
let blacklists = ["*://youtube.com*", "*://mail.google.com/*"]
set smoothscroll
" Match my customized Saka Key bindings
map "a" createTabbedHint
unmap "ctrl+shift+f"
map "shift+a" createForegroundHint
unmap "g i"
map "shift+f i" goToInput