I hereby claim:
- I am capnslipp on github.
- I am capnslipp (https://keybase.io/capnslipp) on keybase.
- I have a public key whose fingerprint is 6D3E 4ADE 0891 6852 A4AB 52A8 9D4B D9DA FAB9 13D1
To claim this, I am signing this object:
#!/usr/bin/env bash | |
arch="$(uname -m)" | |
sdk_path="$(xcrun --sdk driverkit --show-sdk-path)" | |
sdk_version="$(xcrun --sdk driverkit --show-sdk-version)" | |
echo "Running: " \ | |
swift build -Xswiftc "-sdk" -Xswiftc "${sdk_path}" -Xswiftc "-target" -Xswiftc "${arch}-apple-driverkit${sdk_version}" "$@" | |
swift build -Xswiftc "-sdk" -Xswiftc "${sdk_path}" -Xswiftc "-target" -Xswiftc "${arch}-apple-driverkit${sdk_version}" "$@" |
/// @creator: Slipp Douglas Thompson | |
/// @license: Public Domain per The Unlicense. See <http://unlicense.org/>. | |
/// @purpose: Shows a field as disabled in Unity's Inspector only when a different method/property/field in the same MonoBehaviour returns/is-equal-to a given value or values. | |
/// @why: Because this functionality should be built-into Unity. | |
/// @usage: Add `[DisableWhen(typeof(«MonoBehaviour-sub-type-name»), "«trigger-member-name»", «value-that-the-trigger-member-returns»)]` attribute to a (serializable public) field on your `MonoBehaviour`-class. | |
/// @intended project path: Assets/Plugins/EditorUtils/DisableWhenAttribute.cs | |
/// @interwebsouce: https://gist.github.com/capnslipp/9b99f83aa7b80dfb589a5b23e8e0cfa0 | |
using System; | |
using UnityEngine; |
//: Playground - noun: a place where people can play | |
import Swift | |
var str = "Hello, playground" | |
extension String | |
{ | |
func index(atOffset offset:String.IndexDistance) -> String.Index { |
@-moz-document url-prefix("http://developer.apple.com/reference/"), url-prefix("https://developer.apple.com/reference/") { | |
.section-content { | |
margin-left: 4rem !important; | |
margin-right: 4rem !important; | |
width: auto !important; | |
} | |
.topic-description, .topic-content { | |
width: auto !important; | |
float: none !important; |
I hereby claim:
To claim this, I am signing this object:
/// @creator: Slipp Douglas Thompson | |
/// @license: WTFPL | |
/// @purpose: A `UIViewController` subclass (instantiable from code or XIB/Storyboard) that initializes its `SCNView` using the specified `viewFrame` & `viewOptions`. | |
/// @why: Because this functionality should be built-into SceneKit. | |
/// @usage: _FILL_IN_ | |
/// @interwebsouce: https://gist.github.com/capnslipp/6d3e4d3a5f0aeb96eda416774e22dd1f | |
import UIKit | |
import SceneKit |
/// @creator: Slipp Douglas Thompson | |
/// @license: WTFPL | |
/// @purpose: A concise operator syntax for assigning to a non-`Optional` from an `Optional`. | |
/// @why: | |
/// Sometimes in Swift you want to assign only if the RHS is non-`nil`. | |
/// Say you have `someArg:Int?` and `_someIvar:Int`. You could use a single-line `if`: | |
/// `if someArg != nil { _someIvar = someArg! }` | |
/// Or you could use a ternary or nil-coalesce: | |
/// `_someIvar = someArg != nil ? someArg! : _someIvar` | |
/// `_someIvar = someArg ?? _someIvar` |
public struct GlobalsStruct { | |
public static let aValue = 5 | |
private init() {} | |
} |
import Foundation | |
class Example { | |
static func method(label argName: String) -> Void { | |
NSLog(argName) | |
} | |
} | |
class SuperClass {} | |
class AType { |
/// @creator: Slipp Douglas Thompson | |
/// @license: Public Domain per The Unlicense. See <http://unlicense.org/>. | |
/// @purpose: A UnityEngine.UI.Graphic subclass that provides only raycast targeting, skipping all drawing. | |
/// @why: Because this functionality should be built-into Unity. | |
/// @usage: Add a `NonDrawingGraphic` component to the GameObject you want clickable, but without its own image/graphics. | |
/// @intended project path: Assets/Plugins/UnityEngine UI Extensions/NonDrawingGraphic.cs | |
/// @interwebsouce: https://gist.github.com/capnslipp/349c18283f2fea316369 | |
using UnityEngine; | |
using UnityEngine.UI; |