Skip to content

Instantly share code, notes, and snippets.

Michael Szul szul

Block or report user

Report or block szul

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
szul / card.ts
Last active Jan 29, 2019
HTML card cloning and text replacement
View card.ts
async function createCard(selector: string, url: string, callback?: Function): Promise<void> {
try {
const response = await fetch(url, { mode: "cors" });
const items = await response.json() as any;
const t = document.querySelector(`#${selector}`);
for(let i = 0; i < items.length; i++) {
const t2 = t.cloneNode(true) as HTMLTemplateElement;
for(let k in items[i]) {
if(items[i].hasOwnProperty(k)) {
const elem: HTMLSpanElement = t2.querySelector(`span[data-m-for='${selector}'][name='${k}']`);
szul / task.json
Created Sep 25, 2018
Task items for MSBuild, TypeScript, and Firefox debugging, including a task to launch all others
View task.json
// See
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
"label": "Run",
"dependsOn": [
szul / launch.json
Created Sep 25, 2018
Visual Studio Code launch file for Firefox debugging of TypeScript files running under IIS Express locally, as well as ASP.NET MVC .NET Framework debugging under IIS Express
View launch.json
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit:
"version": "0.2.0",
"configurations": [
"name": "Launch Firefox Debugger",
"type": "firefox",
"request": "attach",
View chatdown.json
"version": "2.0.0",
"tasks": [
"label": "chatdown",
"type": "shell",
"command": "Get-ChildItem **/*.chat | ForEach-Object { chatdown \"$(Split-Path $_.FullName)/$($_.Name )\" > \"$(Split-Path $_.FullName)/$($_.BaseName).transcript\" }",
"problemMatcher": []
View g-sample-transcript-2
"conversation": {
"id": "1"
"id": "06aa9cce-7b96-446d-b309-81a0b4c298da",
"recipient": {
"id": "4df8602a-ed75-3b9f-b88f-cd9734ef89c7",
"name": "cafebot",
"role": "bot"
View g-sample-transcript
"conversation": {
"id": "1"
"id": "0a4bbe34-da22-4311-967d-c6ded43e6463",
"recipient": {
"id": "d8c72001-9af1-36d5-8b27-531e849bcc45",
"name": "Angel",
"role": "user"
View hyperstart.bat
@ECHO off
ECHO Choose a shell:
ECHO [1] cmd
ECHO [2] bash
ECHO [3] PowerShell
ECHO [4] PowerShell Core
ECHO [5] Python
szul / EventCalendar.cs
Created Feb 20, 2018
Code snippet for ICS attachment creation
View EventCalendar.cs
public sealed class EventCalendar
private string _ics;
public EventCalendar()
public EventCalendar(string summary, string description, System.DateTime start, System.DateTime end, string location)
StringBuilder sb;

Keybase proof

I hereby claim:

  • I am szul on github.
  • I am szul ( on keybase.
  • I have a public key ASC9TSuWxHs8OfZT8aIRGLnlDNxYBD6pMKZBmcrP2m-Bdwo

To claim this, I am signing this object:

szul / project.json
Created Jul 3, 2016 — forked from darrelmiller/project.json
Project.json comparison with XML equivalent
View project.json
"authors": [
"Sam Saffron",
"Marc Gravell",
"Nick Craver"
"owners": [
You can’t perform that action at this time.