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
| out = `rake --help` | |
| sss = out.lines.map(&:strip).grep(/^-/).map {|s| | |
| opt = /(?:-¥w|--[-¥w]+?)/ | |
| arg = /¥[?([A-Z]+)¥]?/ | |
| s.match(/(#{opt}(?:, #{opt})*)(?: #{arg})? {2,}(.*)/).to_a[1..-1] | |
| }.reject(&:nil?) | |
| hs = sss.map {|opts, arg, desc| |
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
| >> require 'csv' | |
| => true | |
| >> CSV.parse("hoge\tfuga\n1\t2\n", col_sep: "\t") | |
| => [["hoge", "fuga"], ["1", "2"]] |
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
| CFLAGS="-march=nocona -O2 -ssse3 -fomit-frame-pointer -pipe" | |
| CXXFLAGS=$CFLAGS | |
| MAKEOPTS="-j4" | |
| USE="unicode nls cjk ipv6 threads vim-syntax -fortran jpeg svg tiff gif" | |
| LINGUAS="ja" | |
| FEATURES="ccache" | |
| source /opt/gentoo/usr/local/portage/layman/make.conf |
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
| function cdd | |
| set -l i (echo $argv | cut -d ':' -f 1) | |
| cd $_cdd_pwd[(math $i + 1)] | |
| end | |
| function __cdd_complete | |
| for i in (seq (count $_cdd_pwd)) | |
| set -l path $_cdd_pwd[$i] | |
| test $path; and echo (math $i - 1):$path | |
| 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
| CHOST="i686-pc-linux-gnu" | |
| CFLAGS="-O2 -march=prescott -fomit-frame-pointer -pipe" | |
| CXXFLAGS=$CFLAGS | |
| MAKEOPTS="-j6 -l4" | |
| FEATURES="ccache distcc" | |
| ACCEPT_KEYWORDS="~x86" | |
| LINGUAS="ja" | |
| USE="X acpi alsa avahi -berkdb cairo cjk cleartype cups custom-optimization dbus gif gtk hal iconv -java5 java6 jpeg lm_sensors mmx nls nsplugin opengl -perl png -python libnotify pcmcia smp sse sse2 svg threads tiff truetype unicode usb vim-syntax xft" | |
| INPUT_DEVICES="evdev keyboard mouse synaptics" |
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
| app-admin/metalog | |
| app-admin/sudo | |
| app-editors/gvim | |
| app-editors/vim | |
| app-emulation/ies4linux | |
| app-emulation/playonlinux | |
| app-i18n/jfbterm | |
| app-i18n/skk-jisyo | |
| app-i18n/uim | |
| app-misc/colordiff |
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
| >>> Starting rsync with rsync://220.100.41.77/gentoo-portage... | |
| >>> Checking server timestamp ... | |
| receiving incremental file list | |
| timestamp.chk | |
| Number of files: 1 | |
| Number of files transferred: 1 | |
| Total file size: 32 bytes | |
| Total transferred file size: 32 bytes | |
| Literal data: 32 bytes |
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
| Given /^(?:すべてのメールをクリアする|メールボックスが空になっている)$/ do | |
| reset_mailer | |
| end | |
| # Use this step to open the most recently sent e-mail. | |
| When /^メールを開く$/ do | |
| open_email(current_email_address) | |
| end | |
| When /^"([^']*?)" のメールを開く$/ do |address| |
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
| #!/bin/sh | |
| # /etc/acpi/default.sh | |
| # Default acpi script that takes an entry for all actions | |
| set $* | |
| group=${1%%/*} | |
| action=${1#*/} | |
| device=$2 | |
| id=$3 |
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
| #!/usr/bin/env ruby | |
| # encoding: utf-8 | |
| require 'nkf' | |
| sjis_str = File.read(ARGV.shift) | |
| puts NKF.nkf('-wx -Lu --no-best-fit-chars', sjis_str.gsub(/\201\174/, '__-__')).gsub(/__-__/, '-') |