Skip to content

Instantly share code, notes, and snippets.

View wildjcrt's full-sized avatar
🦀
have a nice day!

Jerry Lee wildjcrt

🦀
have a nice day!
View GitHub Profile
wildjcrt  ~  sudo port -s install unison
Password:
---> Computing dependencies for unison
Error: Cannot install unison for the arch 'x86_64' because
Error: its dependency ocaml does not build for the required arch by default
Error: and does not have a universal variant.
Error: Follow https://guide.macports.org/#project.tickets if you believe there
is a bug.
Error: Processing of port unison failed
{*.{o,pyc},Icon\r,CVS,_darcs,_MTN,\{arch\},blib,*\~.nib,log/*.log,tmp/*.sql,tmp/cache/*,node_modules}
alomaylay,藤蔓,aalomaylayen,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
'a'aning,挑釁,'a'aningen,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
'eli',茅草,aeli'en,sapi'eli',sapi'eli'aw,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
fengfeng,嗡嗡的聲音,afengfeng,alafengfengsa,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
'iloc,脖子,'a'ilocan,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,a'iloc
ca'ngaw,抬頭看,alaca'nga'ngaw,alaca'nga'ngawsa,kaca'ngaw,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,ca'engaw
'eneng,看,ala'eneeneng,ala'eneenenghan,ala'eneenengsa,a'nengen,a'nengsa,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,eneng
'iring,側頭看,對峙,ala'iri'iring,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
sawni,過一會、剛剛,anosawni,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
'pod,卸下、放下,'apoden,a'epoden,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,'epod
wildjcrt  ttest   master  git push middle2 master
Enumerating objects: 5, done.
Counting objects: 100% (5/5), done.
Delta compression using up to 4 threads
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 409 bytes | 409.00 KiB/s, done.
Total 3 (delta 0), reused 0 (delta 0), pack-reused 0
remote: fatal: Path 'Aptfile' does not exist in 'b8ebf7aff4cec1ff36b3c62957871300ef029019'
remote: Error: No such object: container-taipei-shen-610523
remote: Using default tag: latest

撲克

  1. 依順序儲存一手撲克牌(約 8 張)
  2. 找出其中比 [黑桃7, 梅花7] 大的「對子」
  3. 設計一個函式,傳入題目 1 的手牌,找出這一手牌內是否有「順子」

麻將

  1. 吃、碰、槓
# Env: Mac + zsh shell
# Fix git-flow and tig completion
# setup .zshrc
$ vim ~/.zshrc
# plugins=(git git-flow tig history-substring-search rvm z)
$ brew install git
$ cd /usr/local/share/zsh/site-functions
$ unlink git-completion.bash && ln -s ../../../Cellar/git/x.x.x/etc/bash_completion.d/git-completion.bash
查找所有不認識的單字,並找到老師確認約 7~8 個不確定的字後,校正一處拼寫。
移除所有的中文字
移除所有的中文標點符號,有「」、
討論左上角的字和右上角的圖(這邊前後改了 3~4 次才定版)
調整斷句、font size、margin
require 'cgi'
require 'active_support'
def verify_and_decrypt_session_cookie(cookie, secret_key_base = Rails.application.secret_key_base)
config = Rails.application.config
cookie = CGI::unescape(cookie)
salt = config.action_dispatch.authenticated_encrypted_cookie_salt
encrypted_cookie_cipher = config.action_dispatch.encrypted_cookie_cipher || 'aes-256-gcm'
# serializer = ActiveSupport::MessageEncryptor::NullSerializer # use this line if you don't know your serializer
serializer = ActionDispatch::Cookies::JsonSerializer