Skip to content

Instantly share code, notes, and snippets.

Shun Kuroda kuroyam

Block or report user

Report or block kuroyam

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View CustomArguments.swift
import UIKit
protocol GETProtocol {
associatedtype GETArguments
static func get(_ args: GETArguments)
protocol POSTProtocol {
associatedtype POSTArguments
static func post(_ args: POSTArguments)
kuroyam / AppDelegate.swift
Created Dec 7, 2015
Universal Links サンプルコード
View AppDelegate.swift
func application(application: UIApplication, continueUserActivity userActivity: NSUserActivity, restorationHandler: ([AnyObject]?) -> Void) -> Bool {
if userActivity.activityType == NSUserActivityTypeBrowsingWeb {
if UniversalLinkHandler.handleUniversalLink(userActivity.webpageURL) == false {
return false
return true
View APIClient.swift
class APIClient {
static func request(endpoint: Endpoint, parameters: Dictionary<String, String>?, handler: (result: Result) -> Void) {
// ここで通信
enum Endpoint {
case Login
case Feed(String, Method)
View gist:a5de352dd933c8fccf0f
public class TweetsAdapter extends BaseAdapter
private Context context;
private Tweets tweets;
public TweetsAdapter(Context context, Tweets tweets) {
this.context = context;
this.tweets = tweets;
View gist:a78d78e39dd4847c81cb
@interface SampleViewController ()<UITableViewDataSource, UITableViewDelegate>
@property (weak, nonatomic) IBOutlet UITableView *tableView;
@property (nonatomic) Tweets *tweets;
@implemantation SampleViewController
kuroyam / gist:5a309b1ee893df6011c1
Created Oct 19, 2014
View gist:4e17ca389cfe69754206
// Playground - noun: a place where people can play
import Cocoa
enum Suit : Int {
case Spade, Club, Heart, Diamond
func toString() -> String {
switch self {
case .Spade:
kuroyam / gist:f6bfb826f2b232d4c631
Last active May 30, 2018
View gist:f6bfb826f2b232d4c631




v3.xの魅力 スライドは後日調整できたら公開

  • C++11
  • callbackをstd::functionに
You can’t perform that action at this time.