Skip to content

Instantly share code, notes, and snippets.

View numa08's full-sized avatar
🐍

Takaya Funabiki numa08

🐍
View GitHub Profile
@numa08
numa08 / caos2015.md
Last active August 29, 2015 14:24
Cyber AgentのOpen Source活動

#caos2015

kurayamijump

WebP

Introduction of webp

  • Google製の新しい画像フォーマット
  • 小さい
package net.yanzm.profileapplication;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.animation.AnimatorSet;
import android.animation.ObjectAnimator;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
package net.yanzm.profileapplication;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.animation.AnimatorSet;
import android.animation.ObjectAnimator;
import android.app.Activity;
import android.app.FragmentManager;
import android.content.Intent;
import android.net.Uri;
@numa08
numa08 / nagare.md
Created April 24, 2015 00:45
今夜のライブコーディングの流れ

どうもnuma08です。

連絡が遅くなりましたが、今夜の流れについて簡単にご説明をさせて頂きます。

まず、ざっくりとしたタイムテーブルは次の様な感じになります。

  • 19:30 会場、準備開始
  • 20:00 開始
  • 21:40 全員のパフォーマンス終了
  • ~22:00 片付け、歓談
@numa08
numa08 / knowledge.md
Created March 31, 2015 03:59
swift knowledge

Swiftの知見

はじめに

swift1.0がリリースされてようやく半年。実務でswiftを利用していて溜まった知見やノウハウなどをまとめてみます。

結論ですが、今までObjective-CによるiOSアプリ開発の経験があり、またJavaのような静的な型付け言語の経験があるメンバーで構成されたチームであれば問題なく開発、メンテナンスができる物と思います。

ただし、Scalaのような協力な型推論を求めたりガッツリと関数型言語的な機能を利用すると長い目でみたときに損になる可能性があります。

git + lab = gitlab

lab is a command line tool that wrap git in order to extend it with extra features and commands that make working with GitLab easier.

$ git clone numa08/dejiko

# extends to:
$ git clone git://${gitlab.url}/numa08/dejiko.git
protocol A {}
protocol B: A {
func b() {}
}
protocol C: A {
func c(){}
}
@numa08
numa08 / void.swift
Created March 9, 2015 11:46
悲しみのswift
class MyClass {
func doSomethin() {
//do something!
//not return value!!
}
}
var myproperty : MyClass? = MyClass()
let bock : () -> () = {[unowned self]
@numa08
numa08 / recursive.swift
Created March 2, 2015 08:47
recursive function in function
//It's OK
func range(start: Int, end: Int) -> [Int] {
var _range : ((Int, Int, [Int]) -> [Int])!
_range = {(s, e, l) in
if s == e {
return l
}
var nl = l
nl.append(s)
return _range(s + 1, e, nl)
@numa08
numa08 / ???.swift
Created February 8, 2015 16:40
what happen?
class AbstractAPI<T> {
typealias Callback = T
var caller: ((Callback) -> ())?
func start(callback: (Callback) -> ()) {
caller = callback
}
func completed() {}