Skip to content

Instantly share code, notes, and snippets.

View コード進行について.md

コード進行について

  • 終止
    • 全終止
      • V Iと進行して展開がいったん落ち着くこと
      • コードの進みを落ち着かせるのに最もスタンダードな方法
    • 偽終止
      • VからIではなくIの代理コードに終止すること
      • Iが来るだろうというところに裏切りを与える効果がある
  • 適切に配置することで、単調だったコード進行に表情をつけることができ、ドラマを演出させるのにもうってつけ
View ModelController.swift
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.
*/
View stylish-qiita.css
/* 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 Jul 30, 2016
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// 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 Dec 15, 2015
オラオラXPath (Java)
View oraora_xpath.md

オラオラXPath (Java)

インスタンスを宣言する

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

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

View .zshrc
# 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.
View .vimrc
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 Sep 20, 2016
Karabiner private preference 20150806 - 20160921
View private.xml
<?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 Jul 18, 2015
playbook_beatcreation.yamlと同じディレクトリに置くやつ
View zshrc.in
# 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 Aug 29, 2015
Ansibleの(とりあえずCakePHPとMySQLのsecure_installation以外) https://gist.github.com/keisei1092/621f2b122eb957040b05 これも必要
View playbook.yml
# playbook.yml
---
- hosts: all
sudo: true
user: vagrant
tasks:
- name: Vimをインストールする
yum: name=vim state=present
- name: zshをインストールする
yum: name=zsh state=present