Skip to content

Instantly share code, notes, and snippets.

View bannzai's full-sized avatar
スターください

bannzai bannzai

スターください
View GitHub Profile
@bannzai
bannzai / swift.swift
Created April 18, 2019 10:39
Part of Ragnarok
let comma = SyntaxFactory.makeCommaToken(
trailingTrivia: [.newlines(lineBreakCount), .spaces(trailingIndent)]
)
newParamter = newParamter.withTrailingComma(comma)
@bannzai
bannzai / SyntaxFactory.swift
Created January 29, 2019 03:19
SwiftSyntaxGeneratedFiles version 0.4.2
//// Automatically Generated From SyntaxFactory.swift.gyb.
//// Do Not Edit Directly!
//===------- SyntaxFactory.swift - Syntax Factory implementations ---------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/LICENSE.txt for license information
@bannzai
bannzai / json
Created January 20, 2019 06:40
with default argument
{
"kind": "SourceFile",
"layout": [
{
"kind": "CodeBlockItemList",
"layout": [
{
"kind": "CodeBlockItem",
"layout": [
{
@bannzai
bannzai / swift-syntax-output.json
Last active January 20, 2019 07:40
swift-syntax-output
{
"kind": "SourceFile",
"layout": [
{
"kind": "CodeBlockItemList",
"layout": [
{
"kind": "CodeBlockItem",
"layout": [
{
@bannzai
bannzai / file0.txt
Last active December 26, 2016 03:17
まだiOS Clean Architecture で消耗してるの? 爆速開発ツールを作ったのでご紹介 ref: http://qiita.com/bannzai/items/6e8add18b15af235a19f
$ kuri setup
created Kuri.yml.
created template for Entity
created template for DataStore
created template for Repository
created template for UseCase
created template for Translator
created template for Model
created template for Presenter
created template for View
@bannzai
bannzai / file0.swift
Last active May 11, 2019 05:28
まだハードコードで消耗してるの? ResourceKitで安全コーディング! ref: https://qiita.com/bannzai/items/e9bf5904940fb1ed5082
// Get ViewController
let storyboard = UIStoryboard(name: "Storyboard", bundle: nil)
let viewController = storyboard.instantiateViewControllerWithIdentifier("XXXX") as! ViewController
// PerformSegue
performSegueWithIdentifier("Open", sender: sender)
// Nib
let nib = UINib(nibName: "TableViewCell", bundle: nil)
let cell = nib.instantiateWithOwner(nil, options: nil)[0] as! TableViewCell