Skip to content

Instantly share code, notes, and snippets.

View nhattan's full-sized avatar
🎯
Focusing

Tan Nguyen nhattan

🎯
Focusing
View GitHub Profile

How to install PhantomJS on Ubuntu

Version: 1.9.8

Platform: x86_64

First, install or update to the latest system software.

sudo apt-get update
sudo apt-get install build-essential chrpath libssl-dev libxft-dev
@nhattan
nhattan / gist:448e346d2e6b435d16d9
Last active August 29, 2015 14:17
Response standard

Current

{
  "errors": {
    "user": {
      "starting_stage_id": [
        "Invalid"
      ],
      "checklist_id": [
 "can't be blank"
@nhattan
nhattan / gist:88b8468a18b10947ac06
Last active August 29, 2015 14:16
Cache class in submodule
# In genenal
# my_app/config/environments/development.rb
Rails.application.configure do
# Settings specified here will take precedence over those in config/application.rb.
# In the development environment your application's code is reloaded on
# every request. This slows down response time but is perfect for development
# since you don't have to restart the web server when you make code changes.
config.cache_classes = false
end