This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# config/routes.rb | |
resources :documents do | |
scope module: 'documents' do | |
resources :versions do | |
post :restore, on: :member | |
end | |
resource :lock | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var aspectRatio= '16:9' | |
var svg = d3.select('#example-4') | |
.append('svg') | |
.attr('width', '100%') | |
.attr('viewBox', '0 0 ' + aspectRatio.split(':').join(' ')); | |
// draw a rect to act as an outline | |
svg.append('rect') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections.Generic; | |
using System.Collections; | |
// This script is adapted from these, | |
// but has been heavily modified in some areas: | |
// http://www.redblobgames.com/pathfinding/a-star/implementation.html#csharp | |
// https://gist.github.com/DanBrooker/1f8855367ae4add40792 | |
// I'm continuing to optimize and change things here. I would not use this |