Skip to content

Instantly share code, notes, and snippets.

コード進行について

  • 終止
    • 全終止
      • V Iと進行して展開がいったん落ち着くこと
      • コードの進みを落ち着かせるのに最もスタンダードな方法
    • 偽終止
      • VからIではなくIの代理コードに終止すること
      • Iが来るだろうというところに裏切りを与える効果がある
  • 適切に配置することで、単調だったコード進行に表情をつけることができ、ドラマを演出させるのにもうってつけ
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.
*/
/* 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 {
@keisei1092
keisei1092 / 0_reuse_code.js
Created July 30, 2016 13:20
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@keisei1092
keisei1092 / oraora_xpath.md
Last active December 15, 2015 06:18
オラオラXPath (Java)

オラオラXPath (Java)

インスタンスを宣言する

XPathFactory xpf = XPathFactory.newInstance();
XPath xp = xPathfactory.newXPath();

XPathでRSSの中にあるすべての title 要素を指定する

@keisei1092
keisei1092 / .zshrc
Created August 7, 2015 01:47
.zshrc 150807
# Path to your oh-my-zsh installation.
export ZSH=~/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="wedisagree"
# Uncomment the following line to use case-sensitive completion.
@keisei1092
keisei1092 / .vimrc
Created August 7, 2015 01:44
.vimrc 150807
set encoding=utf-8
set termencoding=utf-8
set fileencoding=utf-8
set fileencodings=utf-8,iso-2022-jp,euc-jp,ucs21e,ucs-2
set noswapfile
set ruler
set laststatus=2
set statusline=%<%f\ %m%r%h%w%{'['.(&fenc!=''?&fenc:&enc).']['.&ff.']'}%=%l,%c%V%8P
set title
set wildmenu
@keisei1092
keisei1092 / private.xml
Last active September 20, 2016 23:25
Karabiner private preference 20150806 - 20160921
<?xml version="1.0"?>
<root>
<item>
<name>Command+Ctrl+sで左のスクリーンへ移動</name>
<identifier>private.hogee1</identifier>
<autogen>
__KeyToKey__
KeyCode::S, ModifierFlag::COMMAND_R, ModifierFlag::CONTROL_L,
KeyCode::CURSOR_LEFT, ModifierFlag::CONTROL_L
</autogen>
@keisei1092
keisei1092 / zshrc.in
Created July 18, 2015 14:39
playbook_beatcreation.yamlと同じディレクトリに置くやつ
# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh
# For Solarized
export TERM="xterm-256color"
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
@keisei1092
keisei1092 / playbook.yml
Last active November 20, 2022 11:39
Ansibleの(とりあえずCakePHPとMySQLのsecure_installation以外) https://gist.github.com/keisei1092/621f2b122eb957040b05 これも必要
# playbook.yml
---
- hosts: all
sudo: true
user: vagrant
tasks:
- name: Vimをインストールする
yum: name=vim state=present
- name: zshをインストールする
yum: name=zsh state=present