Skip to content

Instantly share code, notes, and snippets.

Avatar
🎉

Chen Chia Yang Unayung

🎉
  • Freelance
  • Taipei, Taiwan
View GitHub Profile
@Unayung
Unayung / quick reply.rb
Last active Jan 26, 2021
快速回覆 related
View quick reply.rb
一則 broadcast 最多一則文字一則圖片一組快回
一項 task 最多一則文字一則圖片一組快回
快速回覆 items 最多都是 13
文字部份 800 中文字 ( 1600 characters )
{
"type": "text",
"text": "Select your favorite food category or send me your location!",
"quickReply": {
View rand_histories.rb
def rand_source
a = ['line', 'fb', 'ettoday', 'nonews', 'cti', 'momo', '7-11']
a[rand(7)]
end
def rand_campaign
a = ['0923-加入會員', nil, '年中大促', '週年慶九折', '1111', '1212', '跳樓大拍賣']
a[rand(7)]
end
@Unayung
Unayung / review_1211.md
Last active Dec 11, 2020
Sprint Review 1211
View review_1211.md

Sprint Review

review DoD review shippable items

Sprint Retrospective

review processes good and bad what can be changed

View webpack.md

How to using jQuery plugins in Rails 6 with webpacker

for example we want using slick-carousel in our application.

  1. yarn add jquery slick-carousel expose-loader
  2. add following lines in app/javascript/packs/application.js
require('slick-carousel')
require('slick-carousel/slick/slick.css')