% ruby-build --version
ruby-build 20160111
% rbenv --version
rbenv 1.0.0
Failed
ruby -rsecurerandom -e "puts SecureRandom.uuid" |
private enum Example: Int { | |
case FirstItem | |
case SecondItem | |
case ThirdItem | |
static var count: Int { | |
var i = 1 | |
while Example(rawValue: i) != nil { | |
i = i + 1 | |
} |
class <# ClassName #> { | |
static let sharedInstance = <# ClassName #>() | |
private init() {} | |
} |
% ruby-build --version
ruby-build 20160111
% rbenv --version
rbenv 1.0.0
Failed
@[self class]@ [%B/%H] |
<!-- Disables ATS for any domains --> | |
<key>NSAppTransportSecurity</key> | |
<dict> | |
<key>NSAllowsArbitraryLoads</key> | |
<true/> | |
</dict> |
import Foundation | |
class Const { | |
class var FeedbackSlackURL: String { | |
let url = env["FeedbackSlackURL"] as! String | |
return url | |
} | |
private class var env: NSDictionary { |
# Your keymap | |
# | |
# Atom keymaps work similarly to style sheets. Just as style sheets use | |
# selectors to apply styles to elements, Atom keymaps use selectors to associate | |
# keystrokes with events in specific contexts. | |
# | |
# You can create a new keybinding in this file by typing "key" and then hitting | |
# tab. | |
# | |
# Here's an example taken from Atom's built-in keymap: |
; | |
; rf. http://qiita.com/844196/items/9fc1cd8470a9ad9c3a69#2-3 | |
; | |
IME_ON(hWindow, IsON) | |
{ | |
; WM_IME_CONTROL = 0x0283 | |
; IMC_SETOPENSTATUS = 0x0006 | |
bufCurrentDetectMode := A_DetectHiddenWindows | |
DetectHiddenWindows, On | |
buf := DllCall("user32.dll\SendMessageA", "UInt", DllCall("imm32.dll\ImmGetDefaultIMEWnd", "Uint",hWindow), "UInt", 0x0283, "Int", 0x0006, "Int", IsON) |
override func touchesBegan(touches: Set<UITouch>, withEvent event: UIEvent?) { | |
for subview in view.subviews { | |
if subview.isKindOfClass(UITextField) { | |
subview.resignFirstResponder() | |
} | |
} | |
} |