This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class User { | |
| /* | |
| * メール送信の依頼書 | |
| */ | |
| let delegate:MailDelegate? | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| func Animal(name) { | |
| this.hello = func () { | |
| ::console.log('Hello everyone! My name is \(name) '); | |
| }; | |
| } | |
| func Cat(name) extends Animal(name) { | |
| this.hello = func () { | |
| super.hello(name); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var name:String? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| angularFire | |
| <!-- AngularJS --> | |
| <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.2/angular.min.js"></script> | |
| <!-- Firebase --> | |
| <script src="https://cdn.firebase.com/js/client/2.0.4/firebase.js"></script> | |
| <!-- AngularFire --> | |
| <script src="https://cdn.firebase.com/libs/angularfire/0.9.0/angularfire.min.js"></script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let foods:[String] = ["apple", "fish", "meat"] | |
| for food in foods { | |
| println(food) | |
| } | |
| // "apple" | |
| // "fish" | |
| // "meat" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let str: String = "HelloWorld" | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import UIKit | |
| protocol PinterestLayoutDelegate: class { | |
| func collectionView(_ collectionView:UICollectionView, heightForPhotoAtIndexPath indexPath:IndexPath) -> CGFloat | |
| } | |
| class PinterestLayout: UICollectionViewLayout { | |
| fileprivate var numberOfColumns = 2 | |
| fileprivate var cellPadding: CGFloat = 6 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # curl rawURL -O | |
| SHELL := /bin/bash | |
| .PHONY: all | |
| define setup_gem | |
| bundle init | |
| chmod +w Gemfile | |
| echo "gem 'fastlane'" >> Gemfile |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CATransaction.begin() | |
| CATransaction.setCompletionBlock { [weak self] () in | |
| self?.tableView.reloadData() | |
| } | |
| self.data = data | |
| CATransaction.commit() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #if targetEnvironment(simulator) | |
| // iOS simulator code | |
| #endif |
OlderNewer