Skip to content

Instantly share code, notes, and snippets.

View giruzou's full-sized avatar

DrqYuto(みなと giruzou

View GitHub Profile
@giruzou
giruzou / mac
Created August 24, 2018 10:09
WindowsPowershellにおけるMACのopenコマンド ref: https://qiita.com/DrqYuto/items/c4f57cd8f5bba6d92a60
open
Sub Macro1()
'
' Macro1 Macro
'
'
Range("A1").Select
ActiveCell.FormulaR1C1 = "HelloWorld"
Range("A2").Select
End Sub
def array_sum(array)
array.inject(0,:+)
end
gem update --system
gem install pkg-config
gem install rails
gem list
rails server
puts gets.to_i.even?
puts gets.split.map(&:to_i).sort
require 'time'
puts Time.at(73).utc.strftime('%X')
def gcd(a,b)
 return b if (r = a % b).zero?
gcd(b,r)
end