Skip to content

Instantly share code, notes, and snippets.

@icbd
icbd / VSCode Internal Commands
Created March 29, 2024 09:04 — forked from skfarhat/VSCode Internal Commands
List of VSCode commands
--------------------------------------------
Version: 1.45.1
Commit: 5763d909d5f12fe19f215cbfdd29a91c0fa9208a
Date: 2020-05-14T08:33:47.663Z
Electron: 7.2.4
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Darwin x64 18.5.0
-------------------------------------------
@icbd
icbd / Time Zone.md
Created April 5, 2023 08:59 — forked from JamesYang76/Time Zone.md
Time Zone for rails

Time zones

There are trhee diffrent time zones in rails

  • System - The server time zone
  • Application - Rails application use own time zone
  • Database - Default is UTC, but do not change it

Cautions

  • config.time_zone should be set when an app dose not support multiple time zones
  • Do not use Date/Time API using system time zone
  • Date could be incorrect by being converted from datetime or time to date
#!/usr/bin/env ruby
p `ruby --version`
p ["A", "B", "C"].permutation.to_a