Skip to content

Instantly share code, notes, and snippets.

View jk195417's full-sized avatar

楊竑昕 jk195417

View GitHub Profile

Rails 開發 環境填坑之旅 (vue nokogiri)

版本: Rails 4.2 錯誤: gem Nokogiri

旅途是怎麼開始的

事情是這樣開始的,我正開心的用著 vue-rails 的 gem (裏面原本是 vue 1.0) 做些前端頁面,但是今天用的時候 chrome 的 console 報錯了...

Uncaught TypeError: Cannot read property 'indexOf' of undefined

奇怪耶!但是想達到的效果也正確的出來了,不夠身為一個有尊嚴的程式設計師,怎麼能夠允許 console 右上方有個紅色的叉叉呢!

@jk195417
jk195417 / 使用 EB 部署 Rails app 至 AWS.md
Created March 16, 2017 13:21
EC2 + RDS,然後使用 Elastic Beanstalk 部署 Rails 應用程式

部署 Rails app 至 Amazon web services

EC2 + RDS + EB,使用 Elastic Beanstalk 部署應用程式

版本訊息

  • 作業系統 macOS Sierra 10.12.3
  • Ruby 2.3
  • Rails 5.0.1
  • MySQL 5.7.16

開始使用 Amazon web services

@jk195417
jk195417 / atom_packages.md
Last active September 23, 2017 09:18
我的 Atom Packages
  1. atom-beautify
  2. color-picker
  3. double-tag
  4. emmet
  5. file-icons
  6. git-plus
  7. markdown-pdf
  8. markdown-writer
  9. minimap
  10. pigments

for osx

install xcode

$ xcode-select --install

install brew

命令列字元過濾器 ripgrep
brew install ripgrep

ShareX

Popcorn Time sh

Listary

Franz

@jk195417
jk195417 / Facebook 自動回戳.md
Last active November 21, 2017 14:38
poke 翻那些想要 poke 你的朋友們

Facebook 自動回戳

  1. 用 chrome 登入 facebook
  2. 連到 https://www.facebook.com/pokes
  3. 滑鼠在網頁上按 右鍵 > 檢查 > Console
  4. 複製下面的 javascript 程式貼入 Console 中
function pokeBack() {
  var btns = [...document.querySelectorAll('a[ajaxify^="/pokes/inline/?"]')]
  var pokeBackBtns = btns.filter(btn => btn.textContent === "戳回去");
@jk195417
jk195417 / publish-ghpages.md
Created January 4, 2018 13:13 — forked from tduarte/publish-ghpages.md
If you need to force push an subtree
git checkout master # you can avoid this line if you are in master...
git subtree split --prefix dist -b gh-pages # create a local gh-pages branch containing the splitted output folder
git push -f origin gh-pages:gh-pages # force the push of the gh-pages branch to the remote gh-pages branch at origin
git branch -D gh-pages # delete the local gh-pages because you will need it: ref