Skip to content

Instantly share code, notes, and snippets.

View gitCommitLit's full-sized avatar

Git--Commit--Lit gitCommitLit

View GitHub Profile
@gitCommitLit
gitCommitLit / showPoweredBy.swift
Last active December 3, 2018 10:08
[Powered by] showPoweredBy from HWM_P10 #viewcontroller
@IBAction func showPoweredBy(_ sender: Any) {
NSWorkspace.shared.open(URL(string: "https://darksky.net/poweredby/")!)
}
@gitCommitLit
gitCommitLit / updateDisplay.swift
Created December 3, 2018 08:38
[updateDisplay]AppDelegate.swift func
func updateDisplay() {
guard let feed = feed else { return }
var text = "Error"
switch displayMode {
case 0:
// summary text
if let summary = feed["currently"]["summary"].string {
text = summary
@gitCommitLit
gitCommitLit / index.html
Created September 24, 2018 13:04
Liquid Button
<!-- For more examples: https://codepen.io/Zaku/pen/eRmRxz -->
<svg class="liquid-button"
data-text="BUTTON"
data-force-factor="0.1"
data-layer-1-viscosity="0.5"
data-layer-2-viscosity="0.4"
data-layer-1-mouse-force="400"
data-layer-2-mouse-force="500"
data-layer-1-force-limit="1"