Skip to content

Instantly share code, notes, and snippets.

@norio-nomura
norio-nomura / PlayAppleSpecialEventSeptember2015InPlayground.swift
Created October 8, 2015 00:53
Playing "Apple Special Event September 2015" in Playground on Xcode 7.1 beta 3. #swiftlang
/// Playing Apple Special Event September 2015 in Playground on Xcode 7.1 beta 3
/// Work load will be lowest when Platform = "OS X"
import AVFoundation
import AVKit
import XCPlayground
protocol Playable: XCPlaygroundLiveViewable {
var player: AVPlayer? {get set}
}
@michelp
michelp / postgrest-quick.sh
Last active April 13, 2022 21:42
From nothing to REST API with PostgREST
# Minimal example of getting a PostgREST API running from scratch for
# testing purposes. It uses docker to launch a postgres database and
# a postgrest api server.
# This should not be used to deploy a production system but to
# understand how postgrest works. In particular there is no security
# implemented, see the docs for more.
# https://postgrest.org/en/v4.4/