homebrew/El_Capitan_and_Homebrew.md at master · Homebrew/homebrew
El Capitan(10.11)に上げたはいいが、その後何もしていなかったので /usr/local の permission 変更から。
begin | |
open(f, 'rb:Shift_JIS:UTF-8').read | |
rescue Encoding::UndefinedConversionError => e | |
fulltilde = "\x81\x60".force_encoding("Windows-31J") | |
tmptab = "\v".force_encoding("Windows-31J") | |
w = open(f, 'rb:Windows-31J').read.gsub(fulltilde, tmptab) | |
s = w.encode('Shift_JIS', undef: :replace, replace: '??'.colorize(:magenta)) | |
diff = s.encode('Windows-31J', undef: :replace, replace: '??'.colorize(:magenta)).lines - w.lines |
homebrew/El_Capitan_and_Homebrew.md at master · Homebrew/homebrew
El Capitan(10.11)に上げたはいいが、その後何もしていなかったので /usr/local の permission 変更から。
{ | |
"devDependencies": { | |
"gas-manager": "*", | |
"gas-console": "*", | |
"coffee-script": "*", | |
"rajah": "*" | |
}, | |
"scripts": { | |
"init": "gas init", | |
"pull": "gas -c ./gas-config.json download", |
task :'db-imports' do | |
puts 'db:seed' | |
Rake::Task[:'db:seed'].invoke | |
Rake::Task.tasks.select {|t| | |
t.name.start_with? 'db:import_' | |
}.map {|t| | |
puts t.name | |
t.invoke | |
} |
#! /usr/bin/env ruby | |
require 'working_hours' | |
WorkingHours::Config.working_hours = { | |
mon: {'07:00' => '24:00'}, | |
tue: {'00:00' => '01:00', '07:00' => '24:00'}, | |
wed: {'00:00' => '01:00', '07:00' => '24:00'}, | |
thu: {'00:00' => '01:00', '07:00' => '24:00'}, | |
fri: {'00:00' => '01:00', '07:00' => '24:00'}, |
PHP_SUFFIXES='php phtml php3' | |
AUTO_INDEX='index' |
gulp = require 'gulp' | |
source = require 'vinyl-source-stream' | |
buffer = require 'vinyl-buffer' | |
uglify = require 'gulp-uglify' | |
watch = require 'gulp-watch' | |
browserify = require 'browserify' | |
gulp.task 'browserify', -> | |
browserify | |
entries: ['./libraries.coffee'] |
npm list -g -p --depth 1 | \grep node_modules | xargs basename | sort | uniq |