Please see: https://github.com/kevinSuttle/html-meta-tags, thanks for the idea @dandv!
Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/
/* | |
OpenCL Utility functions | |
*/ | |
#ifndef CLUTILS_H_INC | |
#define CLUTILS_H_INC | |
#include <OpenCL/cl.h> | |
const char* clErrorString(cl_int err); |
<style type="text/css"> | |
#lp-pom-root { | |
-webkit-background-size: cover !important; | |
-moz-background-size: cover !important; | |
-o-background-size: cover !important; | |
background-size: cover !important; | |
} | |
</style> |
import Darwin | |
let isLittleEndian = Int(OSHostByteOrder()) == OSLittleEndian | |
let htons = isLittleEndian ? _OSSwapInt16 : { $0 } | |
let htonl = isLittleEndian ? _OSSwapInt32 : { $0 } | |
let htonll = isLittleEndian ? _OSSwapInt64 : { $0 } | |
let ntohs = isLittleEndian ? _OSSwapInt16 : { $0 } | |
let ntohl = isLittleEndian ? _OSSwapInt32 : { $0 } | |
let ntohll = isLittleEndian ? _OSSwapInt64 : { $0 } |
// | |
// Macros.swift | |
// | |
// Created by Xavier Muñiz on 6/12/14. | |
import Foundation | |
// dLog and aLog macros to abbreviate NSLog. | |
// Use like this: |
import Cocoa | |
@IBDesignable | |
class <#ClassName#> : NSView { | |
override init(frame frameRect: NSRect) { | |
super.init(frame: frameRect) | |
commonSetup() | |
} | |
class BackgroundTask { | |
private let application: UIApplication | |
private var identifier = UIBackgroundTaskInvalid | |
init(application: UIApplication) { | |
self.application = application | |
} | |
class func run(application: UIApplication, handler: (BackgroundTask) -> ()) { | |
// NOTE: The handler must call end() when it is done |
Here's my own list of the interesting stuff announced during this year's WWDC, collected from the keynotes, various Apple docs, blog posts and tweets.
If you're planning to watch the videos, I really recommend this Mac app that helps you download and watch them: https://github.com/insidegui/WWDC.
http://www.apple.com/osx/elcapitan-preview/
//: # State machine: handling three state and transition | |
import GameplayKit | |
class RetrievingDataState: GKState { | |
override func isValidNextState(stateClass: AnyClass) -> Bool { | |
print("\n---> \(stateClass) class") | |
return (stateClass == DataAvailableState.self) || (stateClass == DataNotAvailableState.self) | |
} |