- 請優先以業務類型的複數命名。
- 在業務類型下,以 3rd party provider 名稱或子業務作細項區分。
| # app/models/ability.rb | |
| module Ability | |
| class << self | |
| def ability_for user, options = {} | |
| abilities = AnonymousAbility.new | |
| return abilities unless user | |
| abilities.merge MemberAbility.new user, options |
| // http://thesassway.com/advanced/inverse-trigonometric-functions-with-sass | |
| $default-threshold: pi() / 180 / 20 | |
| @function convert-angle($value, $unit-name) | |
| $factors: (rad: 1rad, deg: 180deg / pi(), grad: 200grad / pi(), turn: 0.5turn / pi()) | |
| @if not unitless($value) | |
| @warn "`#{$value}` should be unitless" | |
| @return false | |
| @if not map-has-key($factors, $unit-name) |
| 職務名稱: Rails 工程師 | |
| 需求人數: 1 - 2 人 | |
| 職務類別: 軟體設計工程師、Internet程式設計師 | |
| 工作單位: | |
| * 國立陽明大學 生物資訊研究所 楊永正實驗室 | |
| 工作項目: | |
| * 生物資訊系統開發。 | |
| * 有參與國際合作計畫之機會,歡迎有志者加入。 | |
| 職能要求: |
| HTTP status code symbols for Rails | |
| Thanks to Cody Fauser for this list of HTTP responce codes and their Ruby on Rails symbol mappings. | |
| Status Code Symbol | |
| 1xx Informational | |
| 100 :continue | |
| 101 :switching_protocols | |
| 102 :processing |
| -- show running queries (pre 9.2) | |
| SELECT procpid, age(query_start, clock_timestamp()), usename, current_query | |
| FROM pg_stat_activity | |
| WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%' | |
| ORDER BY query_start desc; | |
| -- show running queries (9.2) | |
| SELECT pid, age(query_start, clock_timestamp()), usename, query | |
| FROM pg_stat_activity | |
| WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' |
| # frozen_string_literal: true | |
| # Temporary solution for deprecation warnings of bundler v2.1+. | |
| # https://github.com/capistrano/bundler/issues/115 | |
| namespace :load do | |
| task :defaults do | |
| set :bundle_flags, '--quiet' | |
| set :bundle_path, nil | |
| set :bundle_without, nil |
packages ref: https://docs.aws.amazon.com/linux/al2023/release-notes/all-packages.html
sudo yum groupinstall 'Development Tools'
sudo pip3 install meson
# compile dependencies
sudo yum install glib2-devel expat-devel gobject-introspection-devel cmake ninja-build
# image library dependencies