test
hoge
piyo
- foo
- bar
def a(b) nil end
「システム環境設定」の実体
「パーソナル」から「システム」までは /System/Library/PreferencePanes にある.
「その他」のうち全ユーザ共通のものは /Library/PreferencePanes に,
ユーザ毎のものは ~/Library/PreferencePanes にあるようだ.
% ls /System/Library/PreferencePanes Accounts.prefPane/ Appearance.prefPane/ Bluetooth.prefPane/ DateAndTime.prefPane/ DesktopScreenEffectsPref.prefPane/ DigiHubDiscs.prefPane/ Displays.prefPane/ Dock.prefPane/ EnergySaver.prefPane/ Expose.prefPane/ FibreChannel.prefPane/ Ink.prefPane/ Keyboard.prefPane/ Localization.prefPane/ Mac.prefPane@ MobileMe.prefPane/ Mouse.prefPane/ Network.prefPane/ ParentalControls.prefPane/ PrintAndFax.prefPane/ Security.prefPane/ SharingPref.prefPane/ SoftwareUpdate.prefPane/ Sound.prefPane/ Speech.prefPane/ Spotlight.prefPane/ StartupDisk.prefPane/ TimeMachine.prefPane/ Trackpad.prefPane/ UniversalAccessPref.prefPane/ % ls /Library/PreferencePanes Air Display Preferences.prefPane/ Flash Player.prefPane/ Growl.prefPane/ KeyRemap4MacBook.prefPane/ MacUIM.prefPane/ PCKeyboardHack.prefPane/ TeXDistPrefPane.prefPane/ % ls $HOME/Library/PreferencePanes GeekTool.prefPane/ teleport.prefPane/
run(10 * second) した後でt > 9[s] についてraster_plot()する
from brian import * all_neurons = NeuronGroup('省略') moni_spike_all = SpikeMonitor(all_neurons) run( 10 * second ) spikes = [s for s in moni_spike_all.spikes if s[1] >= 9*second] raster_plot_spiketimes(spikes) show()
raster_plot_spiketimesについて.
In [42]: raster_plot_spiketimes?? Type: function Base Class: <type 'function'> String Form:<function raster_plot_spiketimes at 0x106e49848> Namespace: Interactive File: /Library/Python/2.6/site-packages/brian/plotting.py Definition: raster_plot_spiketimes(spiketimes) Source: def raster_plot_spiketimes(spiketimes): """ Raster plot of a list of spike times """ m = Monitor() m.source = [] m.spikes = spiketimes raster_plot(m) t = array(spiketimes)[:,1]
zshの補完ファイルの置き場所について
rvmのzsh補完ファイルの置き場所について.
今まで,
http://beginrescueend.com/workflow/completion/
にしたがって
mkdir -p $HOME/.zsh/Completion cp .rvm/scripts/zsh/Completion/_rvm $HOME/.zsh/Completion echo 'fpath=(~/.zsh/Completion $fpath)' >> $HOME/.zshrc
ってやってもできなくて,/usr/share/zsh/site-functions/ 以下に置いたりしていたのだけど,できなかった理由がわかった.
fpathの設定よりも後ろで
autoload -U compinit ; compinit
する必要があったのでした.めでたしめでたし.