Skip to content

Instantly share code, notes, and snippets.

View dthtien's full-sized avatar
🎯
Focusing

The Tiến dthtien

🎯
Focusing
View GitHub Profile
@dthtien
dthtien / gist:ebaf4bd3f273d703028a5e9284976529
Last active May 9, 2017 09:20 — forked from schneems/gist:3029994
Databases and Rails Recap Quiz for Week 4
## 1) What does MVCr stand for?
Model View Control Router
## 2) In what file do we store 'r' from MVCr ?
require 'watir'
browser = Watir::Browser.new :chrome
browser.goto('https://m.adidas.com/us/myaccount')
browser_iframe = browser.iframe(id: 'loginaccountframe')
browser_iframe.text_field(id: 'username').set('[email protected]')
browser_iframe.text_field(name: 'password').set('09042015a')
browser_iframe.send_keys :enter
Watir::Wait.until { browser.text.include? 'Logout' }
@dthtien
dthtien / install.md
Created March 15, 2017 10:19 — forked from fongfan999/install.md
Ruby On Rails Ubuntu 16.10 install

Developer libs

mysql, rmagic, curl, git, vim, sqlite, nodejs nokogiri...

sudo apt-get install libxslt1-dev libxml2-dev build-essential patch libsqlite3-dev libcurl4-openssl-dev curl git git-gui vim-gtk exuberant-ctags nodejs nodejs-legacy rar

Ruby

sudo apt-add-repository ppa:brightbox/ruby-ng

sudo apt-get update