- 終止
- 全終止
- V Iと進行して展開がいったん落ち着くこと
- コードの進みを落ち着かせるのに最もスタンダードな方法
- 偽終止
- VからIではなくIの代理コードに終止すること
- Iが来るだろうというところに裏切りを与える効果がある
- 全終止
- 適切に配置することで、単調だったコード進行に表情をつけることができ、ドラマを演出させるのにもうってつけ
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
/* URLs starting with: http://qiita.com/ */ | |
body, h1, h2, h3, h4, h5, h6 { | |
font-family: 'YuGothic' !important; | |
} | |
.itemsShowHeaderTitle_title { | |
font-family: 'GenEi LateMin' !important; | |
text-shadow: 0px 0px 3px black; | |
} | |
.draftsPreviewContent_title { |
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 | |
/* | |
A controller object that manages a simple model -- a collection of month names. | |
The controller serves as the data source for the page view controller; it therefore implements pageViewController:viewControllerBeforeViewController: and pageViewController:viewControllerAfterViewController:. | |
It also implements a custom method, viewControllerAtIndex: which is useful in the implementation of the data source methods, and in the initial configuration of the application. | |
There is no need to actually create view controllers for each page in advance -- indeed doing so incurs unnecessary overhead. Given the data model, these methods create, configure, and return a new view controller on demand. | |
*/ |
In your shell,
$ mkdir doujin-circle-scrape
$ cd doujin-circle-scrape
$ bundle init
$ emacs Gemfile
In Gemfile
, add following to end
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
//: Playground - noun: a place where people can play | |
import UIKit | |
import PlaygroundSupport | |
let viewController = UIViewController() | |
viewController.view.backgroundColor = UIColor.white | |
let navigationController = UINavigationController(rootViewController: viewController) | |
navigationController.view.frame = CGRect(x: 0, y: 0, width: 320, height: 569) |
Alamofire、AlamofireObjectMapperおよびAlamofireImageは、依存性を増やしたり、融通がきかなくなるため使いません。
その代わりSwiftビルトインのクラスURLSessionを使います。(参考: ■)
enum JSONError: String, ErrorType {
case NoData = "ERROR: no data"
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
// | |
// ViewController.swift | |
// rxpractive | |
// | |
// Created by SaitoKeisei on 2016/12/19. | |
// Copyright © 2016 keisei_1092. All rights reserved. | |
// | |
import UIKit | |
import RxSwift |
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
brew install youtube-dl |
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
youtube-dl -x --audio-format mp3 <URL> |