- MacPorts
$ sw_vers
ProductName: Mac OS X| { | |
| "title": "Saikyou Japanese Modification v1.4.0", | |
| "rules": [ | |
| { | |
| "description": "Kana One Way", | |
| "manipulators": [ | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "spacebar", |
| /****************************************************************************** | |
| * Half Duplex Software UART on the LaunchPad | |
| * | |
| * Description: This code provides a simple Bi-Directional Half Duplex | |
| * Software UART. The timing is dependant on SMCLK, which | |
| * is set to 1MHz. The transmit function is based off of | |
| * the example code provided by TI with the LaunchPad. | |
| * This code was originally created for "NJC's MSP430 | |
| * LaunchPad Blog". | |
| * |
| #pragma once | |
| #include <functional> | |
| namespace scopefunction { | |
| template <typename T> T apply(T&& value, std::function<void(T&)> block) { | |
| block(value); | |
| return value; | |
| } |
| using System; | |
| namespace ScopeFunctionExtension | |
| { | |
| static class Extensions | |
| { | |
| public static T Apply<T>(this T obj, Action<T> block) | |
| { | |
| block(obj); | |
| return obj; |
| import Foundation | |
| infix operator =>: ScopeFunctionPrecedence | |
| precedencegroup ScopeFunctionPrecedence { | |
| higherThan: AssignmentPrecedence | |
| associativity: left | |
| } | |
| @discardableResult |
| #if os (macOS) | |
| import AppKit | |
| typealias ColorType = NSColor | |
| #elseif os (iOS) | |
| import UIKit | |
| typealias ColorType = UIColor | |
| #endif | |
| extension ColorType { | |
| var r: CGFloat { |
| /* | |
| #colorLiteral(red: 0.9411764706, green: 0.9411764706, blue: 0.9411764706, alpha: 1)#colorLiteral(red: 0.9411764706, green: 0.9411764706, blue: 0.9411764706, alpha: 1)#colorLiteral(red: 0.9411764706, green: 0.9411764706, blue: 0.9411764706, alpha: 1)#colorLiteral(red: 0.9411764706, green: 0.9411764706, blue: 0.9411764706, alpha: 1)#colorLiteral(red: 0.9411764706, green: 0.9411764706, blue: 0.9411764706, alpha: 1)#colorLiteral(red: 0.9411764706, green: 0.9411764706, blue: 0.9411764706, alpha: 1)#colorLiteral(red: 0.9411764706, green: 0.9411764706, blue: 0.9411764706, alpha: 1)#colorLiteral(red: 0.9411764706, green: 0.9411764706, blue: 0.9411764706, alpha: 1)#colorLiteral(red: 0.9411764706, green: 0.9411764706, blue: 0.9411764706, alpha: 1)#colorLiteral(red: 0.9411764706, green: 0.9411764706, blue: 0.9411764706, alpha: 1)#colorLiteral(red: 0.9411764706, green: 0.9411764706, blue: 0.9411764706, alpha: 1)#colorLiteral(red: 0.9411764706, green: 0.9411764706, blue: 0.9411764706, alpha: 1) | |
| #colorLiteral(red: 0.941 |
| // | |
| // xdump.swift | |
| // | |
| // Created by OTAKE Takayoshi on 2016/11/24. | |
| // Copyright © 2016 OTAKE Takayoshi. All rights reserved. | |
| // | |
| import Foundation | |
| fileprivate func xdump0<T>(_ value: T, indent: String = "", label: String = "") { |
| // | |
| // UIColor+hex.swift | |
| // | |
| // Created by OTAKE Takayoshi on 2016/10/29. | |
| // Copyright © 2016 OTAKE Takayoshi. All rights reserved. | |
| // | |
| import UIKit | |
| extension UIColor { |