This file contains hidden or 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
#!/usr/bin/env ruby | |
# CloudKit public database connection with server-to-server | |
# See https://developer.apple.com/library/archive/documentation/DataManagement/Conceptual/CloudKitWebServicesReference/SettingUpWebServices.html#//apple_ref/doc/uid/TP40015240-CH24-SW6 | |
require 'time' | |
require 'openssl' | |
require 'digest' | |
require 'json' | |
require 'base64' |
This file contains hidden or 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
// Swift example for Apple CloudKit server-to-server token authentication | |
// See: https://developer.apple.com/library/archive/documentation/DataManagement/Conceptual/CloudKitWebServicesReference/SettingUpWebServices.html#//apple_ref/doc/uid/TP40015240-CH24-SW6 | |
import Foundation | |
import CryptoKit | |
import Network | |
// Set up your body JSON |
This file contains hidden or 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
#!/usr/bin/env ruby | |
# See https://utopia.fyi/type/calculator for the original interactive calculator, without intervals | |
rem = 16 # px value of 1rem | |
base_min_size = 18 # minimum font size at min width | |
base_max_size = 29 # maximum font size at min width | |
min_width = 320 # minimum viewport width | |
max_width = 3840 # maximum maximum width |
This file contains hidden or 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
Verifying my Blockstack ID is secured with the address 17XmFFXSWoFsZGUASh7UtzVPa95Hm6P5Wk https://explorer.blockstack.org/address/17XmFFXSWoFsZGUASh7UtzVPa95Hm6P5Wk |