I hereby claim:
- I am thinkclay on github.
- I am thinkclay (https://keybase.io/thinkclay) on keybase.
- I have a public key ASC7hdnNRAeJLwErhAM6aCSlVsQ6hVO-GGH4s8pK0Kohcgo
To claim this, I am signing this object:
/** @jsx createElement **/ | |
import { createElement, FC, Fragment } from 'react' | |
import { connect } from 'react-redux' | |
import { RootState } from '@/models/app' | |
import { Auth, Roles, roleOptions } from '@/models/auth' | |
interface Props { | |
children: React.ReactNode | |
role?: Roles |
import Foundation | |
struct VOService { | |
public var baseUrl: String | |
static let shared = VOService(mode: .production) | |
init(mode: AppMode) { | |
switch (mode) { |
<#ftl strip_text=true /> | |
<#--- | |
@homepage https://github.com/ratherblue/freemarker-debugger/ | |
@license MIT | |
@version 1.0 | |
@name freemarker-debugger | |
@description Macros and functions used to generate a tabular view of the .locals, .main, and .data model. | |
@see http://freemarker.org/docs/ref_specvar.html | |
@namespace debugger |
<#macro objectToJson object, key = "unknown"> | |
<@compress single_line=true> | |
<#if object?is_method> | |
${key}: "is_method" | |
<#elseif object?is_hash || object?is_hash_ex> | |
<#assign first="true"> | |
{ | |
<#list object as key, val> | |
<#if first="false">,</#if> | |
<#assign value><@objectToJson object=val!"null" key=key /></#assign> |
# config/initializers/mailer_injection.rb | |
# This allows `request` to be accessed from ActionMailer Previews | |
# And @request to be accessed from rendered view templates | |
# Easy to inject any other variables like current_user here as well | |
module MailerInjection | |
def inject(hash) | |
hash.keys.each do |key| | |
define_method key.to_sym do |
I hereby claim:
To claim this, I am signing this object:
const Input = (props) => { | |
const onFocus = (e) => { | |
let input = e.target | |
if (input.hasAttribute('readonly')) | |
{ | |
input.removeAttribute('readonly') | |
input.blur() | |
input.focus() | |
} |
I hereby claim:
To claim this, I am signing this object:
import UIKit | |
class ViewController: UIViewController { | |
@IBOutlet weak var buttonWithBorderLeft: UIButton! | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
// Do any additional setup after loading the view, typically from a nib. | |
import Security | |
public class Keychain | |
{ | |
public class func set(key: String, value: String) -> Bool | |
{ | |
if let data = value.dataUsingEncoding(NSUTF8StringEncoding) | |
{ | |
return set(key, value: data) | |
} |