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
import Cocoa | |
@NSApplicationMain | |
class AppDelegate: NSObject, NSApplicationDelegate { | |
@IBOutlet weak var window: NSWindow! | |
@IBOutlet weak var view: NSView! | |
lazy var outline: NSOutlineView = { | |
let v = NSOutlineView() |
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
import XCTest | |
class InjectionTests: XCTestCase { | |
func testValidity() { | |
let validate: (TestProtocol) -> () = { | |
XCTAssertTrue($0.test("")) | |
XCTAssertTrue($0.test("ab")) | |
XCTAssertTrue($0.test("abcd")) |
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
<!DOCTYPE html> | |
<html class="no-js"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title>Multi</title> | |
<meta name="description" content=""> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
</head> | |
<body> |
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
// This script calculates the bounds of a selected layer (including layer styles) and creates a @bounds shape | |
// Author: @floorish | |
// Company: @touchwonders | |
var docRef = app.activeDocument; | |
docRef.suspendHistory("Add bounds", "main()"); | |
function main() { |
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
/** | |
* Simple and lightweight fader plugin | |
* Css support detection from Modernizr | |
* http://modernizr.com/ | |
* | |
* usage: fader.fadeOut('loader').fadeIn('content', 700, 400); | |
* note that the element must be a id string for now | |
* | |
* @author floorish | |
*/ |