I hereby claim:
- I am leonardocardoso on github.
- I am leocardz (https://keybase.io/leocardz) on keybase.
- I have a public key ASBs8fvDkGu3xRc1wSo88cqv7PVcNOKQInTQSQrppHJKJQo
To claim this, I am signing this object:
#... | |
function gitzip() { | |
git archive -o $@.zip HEAD | |
} | |
#... gitzip ZIPPED_FILE_NAME |
import SwiftSyntax | |
// swift-syntax v509.0.0-swift-DEVELOPMENT-SNAPSHOT-2023-08-15-a | |
extension SyntaxProtocol { | |
var token: TokenSyntax? { self.as(TokenSyntax.self) } | |
var accessorBlock: AccessorBlockSyntax? { self.as(AccessorBlockSyntax.self) } | |
var accessorDeclList: AccessorDeclListSyntax? { self.as(AccessorDeclListSyntax.self) } | |
var accessorDecl: AccessorDeclSyntax? { self.as(AccessorDeclSyntax.self) } | |
var accessorEffectSpecifiers: AccessorEffectSpecifiersSyntax? { self.as(AccessorEffectSpecifiersSyntax.self) } | |
var accessorParameters: AccessorParametersSyntax? { self.as(AccessorParametersSyntax.self) } |
# GPG on Tower |
extension String { | |
var isCPF: Bool { | |
let cpf = self.stringByReplacingOccurrencesOfString(".", withString: "").stringByReplacingOccurrencesOfString("-", withString: "") | |
if cpf.characters.count == 11 { | |
let d1 = Int(cpf.substringWithRange(Range(cpf.startIndex.advancedBy(9) ..< cpf.startIndex.advancedBy(10)))) | |
let d2 = Int(cpf.substringWithRange(Range(cpf.startIndex.advancedBy(10) ..< cpf.startIndex.advancedBy(11)))) |
public class ScrollTextView extends TextView { | |
public ScrollTextView(Context context) { | |
super(context); | |
} | |
public ScrollTextView(Context context, AttributeSet attrs) { | |
super(context, attrs); | |
} |
I hereby claim:
To claim this, I am signing this object:
import UIKit | |
extension UIViewController { | |
static var topmostViewController: UIViewController? { return UIApplication.shared.keyWindow?.topmostViewController } | |
var topmostViewController: UIViewController? { return presentedViewController?.topmostViewController ?? self } | |
} |
--- | |
layout: null | |
permalink: /feed.xml | |
--- | |
{% assign feed_url = page.url | absolute_url %}<?xml version="1.0" encoding="utf-8"?> | |
<feed xmlns="http://www.w3.org/2005/Atom"> | |
<title>{{ site.title }}</title> | |
<subtitle>By {{ site.author.name }}</subtitle> | |
<link rel="alternate" type="text/html" href="{{ site.url }}" /> | |
<link rel="self" type="application/atom+xml" href="{{ feed_url }}" /> |
--- | |
layout: null | |
permalink: /feed.json | |
--- | |
{ | |
"version": "https://jsonfeed.org/version/1", | |
"title": "{{ site.title }}", | |
"description": "{{ site.description }}", | |
"home_page_url": "{{ '/' | absolute_url }}", | |
"feed_url": "{{ page.url | absolute_url }}", |
defaults write com.apple.iphonesimulator AllowFullscreenMode -bool YES |