Create a Gemfile
source 'https://rubygems.org'
gem 'sinatra'
require 'active_support/concern' | |
module Scopable | |
extend ActiveSupport::Concern | |
module ClassMethods | |
## | |
# Creates scopes for all the belongs_to associations provided as args. | |
# For example 'scope_for :user' creates the following scopes. |
#include <Servo.h> | |
Servo esc; | |
int escPin = 9; | |
int minPulseRate = 1000; | |
int maxPulseRate = 2000; | |
int throttleChangeDelay = 100; | |
void setup() { |
import processing.opengl.*; | |
import controlP5.*; | |
ControlP5 MyController; | |
void setup() | |
{ | |
size(400, 400, OPENGL); | |
MyController = new ControlP5(this); | |
MyController.addSlider("yRotation",0,6.28,20,20,20,200,10); |
#include <Bridge.h> | |
#include <YunServer.h> | |
#include <YunClient.h> | |
YunServer server; | |
void setup() { | |
Serial.begin(9600); | |
pinMode(13,OUTPUT); | |
Bridge.begin(); |
prod.exs
url: [host: System.get_env("HOSTNAME"), port: 80],
prod.secret.exs
secret_key_base: System.get_env("SECRET_KEY_BASE")
prod.secret.exs
url: System.get_env("DATABASE_URL"),
$ ssh <mydomain.com>
$ dokku apps:create