일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
- ubuntu
- 루비
- 오랜지파이
- 우분투
- 사용중인포트검색
- after_update
- Orange Pi 3B
- Java
- install
- MySQL
- Time.znoe.now
- docket
- Kotlin
- 차량번호찾기
- 도커
- Migrate
- 정규식
- 주차장 시스템
- RUBY
- Ruby on Rails
- docker
- Rails
- 코틀린
- 쿠버네티스
- 레일즈
- mac
- 설치
- 우분투 24
- Visual Studio Code
- after_save
- Today
- Total
목록Code Language (25)
중고 신입이 개발해보기..

mac에 go를 설치 https://golang.org/ The Go Programming Language Download Go Binary distributions available for Linux, macOS, Windows, and more. // You can edit this code! // Click here and start typing. package main import "fmt" func main() { fmt.Println("Hello, 世界") } Hello, World! Conway's Game of Life Fibonacci golang.org 로 들어가면 .. https://golang.org/dl/ 알맞는거 받아서 설치하면된다. $ go version go version g..
현재 시간 구하기 now = Time.now => 2020-07-07 18:37:25 +0900 그 시간을 유닉스 시간으로 unix_time = now.to_i => 1594114645 그걸 다시 ... 음.. Time.at(unix_time) => 2020-07-07 18:37:25 +0900 오늘 시작 시작 Time.now.beginning_of_day => 2020-07-07 00:00:00 +0900 오늘 마지막 시간 Time.now.end_of_day => 2020-07-07 23:59:59 +0900 utc로 변환 now_utc = now.utc => 2020-07-07 09:37:25 UTC 다시 로컬타임으로 now_utc.localtime => 2020-07-07 18:37:25 +0900
https://medium.com/steady-study/%EB%A3%A8%EB%B9%84-mixin-include-prepend-extend-%EA%B7%B8%EB%A6%AC%EA%B3%A0-concern-e691c92fb233 루비 mixin: include, prepend, extend 그리고 Concern 루비에서 module을 mixin하면 다중 상속과 비슷한, 또는 더 풍부한 효과를 낼 수 있습니다. mixin과 ActiveSupport::Concern에 대해 알아봅시다. medium.com
def 메소드(인수) ..... end
루비 설치 https://www.digitalocean.com/community/tutorials/how-to-install-ruby-on-rails-with-rbenv-on-ubuntu-18-04 우분투에서 rbenv 업데이트하기 https://www.endpoint.com/blog/2015/11/03/updating-rbenv-ruby-build-on-ubuntu cd ~/.rbenv git pull cd ~/.rbenv/plugins/ruby-build/ git pull for MAC https://pie001.github.io/entry/blog/0017/https://rorlab.org/rblogs/214 for mac 업데이트 하기.. - 새로운 루비 버전이 나와서 세팅해야될때.. $ brew..
find numbers = [38, 74, 56, 48, 87, 68, 81, 49] puts numbers.find {|item| item % 7 == 0 } scores = { 'Alice' => 50, 'Bob' => 60, 'Carol' => 90, 'David' => 40 } p scores.find {|k, v| v >= 70 } detect ...
https://docs.ruby-lang.org/en/2.5.0/Hash.html
print "숫자를 입력하세요. : "num = gets.chompinum = num.to_i puts "입력된 숫자를 #{inum}입니다." puts " => for Statement "for i in 1..9 puts "#{inum} x #{i} = #{inum * i}"end puts " => each Statement" (1..9).each do |i| puts "#{inum} x #{i} = #{inum * i}"end puts " => while Statement" j = 1while j while modifier" j = 1 begin puts "#{inum} x #{j} = #..