Skip to content

Commit b7a0697

Browse files
committed
Whitespace.
1 parent c9b5fa8 commit b7a0697

File tree

10 files changed

+19
-20
lines changed

10 files changed

+19
-20
lines changed

bash_profile.d/homebrew.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
alias node-repl='rlwrap node-repl || node-repl'
1+
alias node-repl='rlwrap node-repl || node-repl'

bash_profile.d/notification.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Standardizing the interface to growlnotify
2-
#
2+
#
33
# notify "pull --rebase failed" "git"
44
notify() {
55
growlnotify -m "$2" "$1" 2> /dev/null

bash_profile.d/pdsh.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export PDSH_SSH_ARGS_APPEND="-o StrictHostKeyChecking=no"
1+
export PDSH_SSH_ARGS_APPEND="-o StrictHostKeyChecking=no"

irbrc.d/clipboard.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
case RUBY_PLATFORM
2-
when /darwin/
2+
when /darwin/
33
def copy(str)
44
IO.popen('pbcopy', 'w') { |f| f << str.to_s }
55
str.to_s # return what we actually copied
@@ -22,4 +22,3 @@ def paste
2222
def eval_paste
2323
eval(paste)
2424
end
25-

irbrc.d/find_user.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def find_user(term)
1313
%w(login name).detect do |name|
1414
@user_find_model.column_names.include?(name)
1515
end
16-
16+
1717
@user_find_model.send("find_by_#{@user_find_method}", term)
1818

19-
end
19+
end

irbrc.d/local_methods.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ class Object
66
def self.local_methods
77
(methods - superclass.methods).sort
88
end
9-
9+
1010
# List instance methods which aren't in the superclass.
1111
def local_methods
1212
(methods - self.class.superclass.instance_methods).sort
1313
end
14-
end
14+
end

irbrc.d/pretty_print.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
require 'pp'
1+
require 'pp'

irbrc.d/rates.rb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
# change.
33
#
44
# rate { Time.now.to_i }
5-
# # 1243457076 (0.999/sec)
6-
# # 1243457077 (0.999/sec)
7-
# # 1243457078 (0.999/sec)
5+
# # 1243457076 (0.999/sec)
6+
# # 1243457077 (0.999/sec)
7+
# # 1243457078 (0.999/sec)
88
def rate(options = {})
99
clear = `clear`
1010
defaults = {
@@ -23,11 +23,11 @@ def rate(options = {})
2323
rate = 0 unless rate.finite?
2424
last_value = values.last.first
2525
print clear if options[:clear]
26-
time_to_zero =
26+
time_to_zero =
2727
if rate != 0 && last_value != 0 && (rate.abs / rate) != (last_value.abs / last_value)
2828
"%.3f hours" % (-last_value.to_f / rate / 60 / 60)
2929
end
30-
30+
3131
puts "%15s (%s/sec) #{time_to_zero}" % [rate_delimiter(last_value), rate_delimiter("%.3f" % rate)]
3232
puts unless options[:clear]
3333
sleep options[:delay]
@@ -38,7 +38,7 @@ def rate(options = {})
3838
# rate of change.
3939
#
4040
# rates {{ :time => Time.now.to_i, :today => Date.today.to_time.to_i }}
41-
# # time: 1243457162 (0.997/sec)
41+
# # time: 1243457162 (0.997/sec)
4242
# # today: 1243396800 (0.000/sec)
4343
def rates(options = {})
4444
clear = `clear`
@@ -58,8 +58,8 @@ def rates(options = {})
5858
value_delta = values.last.first[key] - values.first.first[key]
5959
rate = (value_delta.to_f / time_delta)
6060
rate = 0 unless rate.finite?
61-
last_value = values.last.first[key]
62-
time_to_zero =
61+
last_value = values.last.first[key]
62+
time_to_zero =
6363
if rate != 0 && last_value != 0 && (rate.abs / rate) != (last_value.abs / last_value)
6464
"%.3f hours" % (-last_value.to_f / rate / 60 / 60)
6565
end

irbrc.d/ri.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ def ri(method = nil)
1414
end
1515
puts `ri '#{method}'`
1616
end
17-
end
17+
end

railsrc.d/sql.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ def sql_bench(query, runs = 10)
1111
puts "#{runs} runs in"
1212
runs_time = Benchmark.realtime { runs.times { sql(query) } }
1313
puts " #{runs_time}"
14-
end
14+
end

0 commit comments

Comments
 (0)