rbenv, ruby-buildを更新
$ cd ~/.rbenv
$ git pull origin master
$ cd ~/.rbenv/plugins/ruby-build
$ git pull origin master
// | |
// KBNetworkActivityIndicator.h | |
// Kobov3 | |
// | |
// Created by Jim Dovey on 10-03-21. | |
// Copyright 2010 Kobo Inc. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> |
$ curl -O ftp://ftp.gnu.org/gnu/ncurses/ncurses-5.9.tar.gz | |
$ tar -xzvf ncurses-5.9.tar.gz | |
$ cd ./ncurses-5.9 | |
$ ./configure --prefix=/usr/local \ | |
--without-cxx --without-cxx-binding --without-ada --without-progs --without-curses-h \ | |
--with-shared --without-debug \ | |
--enable-widec --enable-const --enable-ext-colors --enable-sigwinch --enable-wgetch-events \ | |
&& make | |
$ sudo make install |
Vim Advent Calendar 2012の102日目(2013-03-12)の記事です。
W,E,BでのWORD移動を文節単位にする jasegment.vimを作りました。
git fetch --all | |
git reset --hard origin/master | |
git pull origin master |
func loopTrack(musicTrack:MusicTrack) { | |
var trackLength = getTrackLength(musicTrack) | |
println("track length is \(trackLength)") | |
setTrackLoopDuration(musicTrack, duration: trackLength) | |
} | |
func getTrackLength(musicTrack:MusicTrack) -> MusicTimeStamp { | |
//The time of the last music event in a music track, plus time required for note fade-outs and so on. |
// FAILURE | |
var array = [["name": "glen"]] | |
for item in array { | |
item["rank"] = "advanced" // Generates an @lvalue error | |
} | |
// Even though array is immutable, it's of type <Array<Dictionary<String,String>>, | |
// item is assigned by let automatically. | |
import Foundation | |
infix operator +=! { associativity right precedence 90 } // Int32 or Int64 | |
infix operator -=! { associativity right precedence 90 } // Int32 or Int64 | |
postfix operator ++! {} // Int32 or Int64 | |
postfix operator --! {} // Int32 or Int64 | |
infix operator |=! { associativity right precedence 90 } // UInt32 | |
infix operator &=! { associativity right precedence 90 } // UInt32 |