This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript: Promise.all([import('https://unpkg.com/[email protected]?module'), import('https://unpkg.com/@tehshrike/[email protected]'), ]).then(async ([{ | |
default: Turndown | |
}, { | |
default: Readability | |
}]) => { | |
/* Optional vault name */ | |
const vault = ""; | |
/* Optional folder name such as "Clippings/" */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Fixes extremely slow apropos command on macos | |
# Using `apropos` on macos rebuilds the whatis database every time. | |
# Fish shell uses apropos for command completion. | |
# Simply add the file below to `~/.config/fish/conf.d` to fix the issue | |
set db ~/.whatis.db | |
function apropos_update | |
echo "Updating apropos / whatis database at $db" | |
man --path | tr ":" " " | xargs /usr/libexec/makewhatis -o $db |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import SwiftUI | |
import AVKit | |
import CoreImage | |
import CoreImage.CIFilterBuiltins | |
struct ContentView: View { | |
@State private var currentFilter = 0 | |
var filters : [CIFilter?] = [nil, CIFilter.sepiaTone(), CIFilter.pixellate(), CIFilter.comicEffect()] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* POSIX paths in JSON via escaping which | |
doesn't alter valid UTF-8 paths. | |
The trick is recognizing that JSON can store binary nulls in strings | |
but nulls are the only character that can't occur in POSIX paths, | |
so we can use it as an escape character that won't change how existing | |
serialized paths get interpreted. | |
Copyright 2018-2020, Stephan Sokolow |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;// store 3822 | |
mov x8, #3822 | |
;// next: (4969 << 16) | 3822 | |
movk x8, #4969, lsl #16 ;// now `x8` is 325652206 | |
;// next: (2 << 32) | ((4969 << 16) | 3822) | |
movk x8, #2, lsl #32 ;// now `x8` is 8915586798 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
extension UIBezierPath { | |
/** | |
Draws the super-elliptic analog of a rounded rect. Unlike the regular rounded rect, the rounded corners | |
are the quadrants of a superellipse (i.e., parabolic segments), _not_ circular arcs. | |
If `rect` is a square and `cornerRadius` is equal to half the length or more, and actual superellipse is | |
drawn (no straight sections along its boundary) just like doing the same with a rounded rect results in a | |
circle being drawn. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#get highest tag number | |
VERSION=`git describe --abbrev=0 --tags` | |
#replace . with space so can split into an array | |
VERSION_BITS=(${VERSION//./ }) | |
#get number parts and increase last one by 1 | |
VNUM1=${VERSION_BITS[0]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.screenplay { | |
font-family: Courier Prime; | |
font-size: 12pt; | |
line-height: 1; | |
max-width: 6in; | |
margin: 1em auto; | |
-webkit-text-size-adjust: none; | |
} | |
.screenplay h1, h2, h3, h4, h5, h6 { |
- 2011 - A trip through the Graphics Pipeline 2011
- 2015 - Life of a triangle - NVIDIA's logical pipeline
- 2015 - Render Hell 2.0
- 2016 - How bad are small triangles on GPU and why?
- 2017 - GPU Performance for Game Artists
- 2019 - Understanding the anatomy of GPUs using Pokémon
- 2020 - GPU ARCHITECTURE RESOURCES
NewerOlder