This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
When the directory structure of your Node.js application (not library!) has some depth, you end up with a lot of annoying relative paths in your require calls like:
const Article = require('../../../../app/models/article');
Those suck for maintenance and they're ugly.
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
A list of the most common functionalities in Jekyll (Liquid). You can use Jekyll with GitHub Pages, just make sure you are using the proper version.
Running a local server for testing purposes:
$ ruby -v
$ rvm get stable
To copy a Heroku ENV variable from one application to another, from a bash shell, run
heroku config:set MY_VAR="$(heroku config:get MY_VAR --app old-app-name)" --app new-app-name
# Ruby CircleCI 2.0 configuration file | |
# | |
# Check https://circleci.com/docs/2.0/language-ruby/ for more details | |
# | |
version: 2 | |
jobs: | |
build: | |
docker: | |
# specify the version you desire here | |
- image: circleci/ruby:2.5.1-node-browsers |
class Product | |
include Mongoid::Document | |
field :price, type: Money | |
end | |
Money.class_eval do | |
# Converts an object of this instance into a database friendly value. | |
def mongoize |
require 'rails_helper' | |
RSpec.describe HomeController, :type => :controller do | |
describe "GET index" do | |
it "renders the :index template" do | |
expect(get: root_url(subdomain: nil)).to route_to( | |
controller: "home", | |
action: "index") |