Goals: Add links that are reasonable and good explanations of how stuff works. No hype and no vendor content if possible. Practical first-hand accounts of models in prod eagerly sought.
| # From http://blog.otoro.net/2015/11/24/mixture-density-networks-with-tensorflow/ | |
| import matplotlib.pyplot as plt | |
| import numpy as np | |
| import tensorflow as tf | |
| import math | |
| NHIDDEN = 24 | |
| STDEV = 0.5 | |
| KMIX = 24 # number of mixtures |
| class ApplicationController < ActionController::Base | |
| ... | |
| #Problem: | |
| #In rails 3.0.1+ it is no longer possible to do this anymore; | |
| # rescue_from ActionController::RoutingError, :with => :render_not_found | |
| # | |
| #The ActionController::RoutingError thrown is not caught by rescue_from. | |
| #The alternative is to to set a catch-all route to catch all unmatched routes and send them to a method which renders an error | |
| #As in http://techoctave.com/c7/posts/36-rails-3-0-rescue-from-routing-error-solution |
| # | |
| # Cookbook Name:: nodejs | |
| # Recipe:: default | |
| # | |
| # Build and install node.js | |
| # | |
| if ['app','app_master','solo'].include?(node[:instance_role]) | |
| version_tag = "v0.4.8" | |
| source_base_dir = "/data/nodejs" |
| =Navigating= | |
| visit('/projects') | |
| visit(post_comments_path(post)) | |
| =Clicking links and buttons= | |
| click_link('id-of-link') | |
| click_link('Link Text') | |
| click_button('Save') | |
| click('Link Text') # Click either a link or a button | |
| click('Button Value') |