Must create a docs
folder and put models.yml
inside this folder.
Deprecated - DataFire is now out of beta. You can use the new version of this project on DataFire.io, or view it on GitHub
Pulls all new issues from a GitHub repo into a spreadsheet
[metadata]: ./ '{"links":[{"connection":"563b9b84ea9ad5f345e97505","operation":{"method":"get","path":"/repos/{ownerId}/{repoId}/issues"}},{"connection":"563b9b85ea9ad5f345e97511","operation":{"method":"get","path":"/list/{key}/{worksheetId}/{visibility}/{projection}"}},{"connection":"563b9b85ea9ad5f345e97511","operation":{"method":"put","path":"/cells/{key}/{worksheetId}/{visibility}/{projection}/{cellId}"}},{"connection":"563b9b85ea9ad5f345e97511","operation":{"method":"post","path":"/list/{key}/{worksheetId}/{visibility}/{pro
import React, { PropTypes } from 'react'; | |
import { findDOMNode } from 'react-dom' | |
import getOffset from 'dom-helpers/query/offset'; | |
let ScrollSpy = React.createClass({ | |
childContextTypes: { | |
$scrollSpy: PropTypes.shape({ | |
anchor: PropTypes.func, | |
activeTarget: PropTypes.string | |
}) |
# Shortcut for assigning a heredoc to a variable. | |
# http://stackoverflow.com/a/8088167 | |
define() { | |
# read will have exit status 1 whenever it assigns to a variable or it gets to EOF. | |
read -r -d '' "${1}" || true | |
} | |
_other_aws_common_stuff() { | |
export AWS_DEFAULT_PROFILE="${AWS_PROFILE}" | |
local SCRIPT |
# This is to enable WS support. Credits: # https://gist.github.com/Bubelbub/0a942a0d51a3d329897d | |
# THIS WORKS! for running the example 5.0.0.beta1 chat app on a single instance Elastic beanstalk AWS instance | |
files: | |
"/etc/nginx/conf.d/websockets.conf" : | |
content: | | |
upstream backend { | |
server unix:///var/run/puma/my_app.sock; | |
} |
packages: | |
yum: | |
gcc-c++: [] | |
make: [] | |
git: [] | |
commands: | |
redis_script_01: | |
command: wget https://raw.github.com/KeithP/install-redis-amazon-linux-centos/master/redis-install-script.sh | |
redis_script_02: | |
command: chmod 777 redis-install-script.sh |
gem 'browserify-rails', '1.5.0' # until fix: https://github.com/browserify-rails/browserify-rails/issues/101
gem 'react-rails'
Browserify-rails allows to use browserify within assets pipeline. React-rails is here only to allow to use #react_component
(and thus, prerendering).
Note that jquery-rails
can be removed from Gemfile, the npm version of jquery
and jquery-ujs
will be used instead.
Assumptions: The application already exists. You have two models article.rb
and comment.rb
. Articles have two attributes, title
and text
. Comments have two attributes, text
and article_id
. See these instructions if you need help getting started.
Assuming that you are nesting your :comments
resources inside of :articles
, mount ActionCable
and make sure you have a root.
config/routes.rb
Rails.application.routes.draw do
Options included below:
- Using Docker
docker-compose
- Using Homebrew
brew
This gist was originally created for Homebrew before the rise of Docker, yet it may be best to avoid installing mysql via brew
any longer. Instead consider adding a barebones docker-compose.yml
for each project and run docker-compose up
to start each project's mysql service.
Quick demo showing how to add Sewanee trail data to a map using Mapbox GL JS.
The key building blocks here are sources and layers. Sources contain the underlying geo data. Layers let you specify how to style this data.
In our demo we're adding two data sources: the trail route for one section of Abbo's Alley and markers indicating exit points. The trail data was taken from a geojson file containing information about all trails on the Domain.