Skip to content

Instantly share code, notes, and snippets.

@CalvHobbes
CalvHobbes / main.py
Created October 16, 2023 07:02
run uvicorn in code
if __name__ == "__main__":
uvicorn.run(app, host="0.0.0.0", port=9000)
@CalvHobbes
CalvHobbes / WKCookieWebView.swift
Created September 28, 2018 07:20 — forked from novemberfiveco-gists/WKCookieWebView.swift
A WKWebView subclass that passes cookies after a 302 redirect response.
//
// WKCookieWebView.swift
//
// Created by Jens Reynders on 30/03/2018.
// Copyright © 2018 November Five. All rights reserved.
//
import Foundation
import WebKit
@CalvHobbes
CalvHobbes / GIF-Screencast-OSX.md
Created January 14, 2018 09:29 — forked from dergachev/GIF-Screencast-OSX.md
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application: