Create an account at Stripe 2. Account Setting/Api Key Grab your Api key here 3. Put your Key in secrets.yml as
stripe_secret_key: your key here
stripe_publishable_key: your key here
Create an account at Stripe 2. Account Setting/Api Key Grab your Api key here 3. Put your Key in secrets.yml as
stripe_secret_key: your key here
stripe_publishable_key: your key here
/* Place model */ | |
module.exports = { | |
attributes: { | |
name: { | |
type: 'string', | |
required: true | |
}, |
class Conference | |
include Lotus::Entity | |
attributes :title, :call_code, :technician_id | |
# Are the following 2 methods correct for representing the relationship to Technician | |
def technician | |
@technician ||= TechnicianRepository.find @technician_id | |
end | |
source 'https://rubygems.org' | |
gem 'rake' | |
gem 'lotus-router' | |
gem 'lotus-controller' | |
gem 'lotus-view' | |
group :test do | |
gem 'rspec' | |
gem 'capybara' |
# -*- coding: utf-8 -*- | |
$:.unshift('/Library/RubyMotion/lib') | |
require 'motion/project/template/ios' | |
require 'bundler' | |
Dir.glob('./config/*.rb').each { |file| require file } | |
if ARGV.join(' ') =~ /spec/ | |
Bundler.require :default, :development, :spec | |
elsif ARGV.join(' ') =~ /testflight/ |
class BaseWall | |
def self.Wall length, width, material | |
Module.new do | |
define_method(:length) { length } | |
define_method(:width) { width } | |
define_method(:material) { material } | |
def self.included clazz | |
private :length, :width, :material | |
end |
class MyApp::Interface::NavigationBar | |
include ActionView::Helpers::UrlHelper | |
delegate :url_helpers, to: 'Rails.application.routes' | |
def initialize(template, current_user) | |
@template = template | |
@current_user = current_user | |
end | |
# A simple example of creating a UIView with a UICollectionView as a subview | |
# in RubyMotion using Teacup for styling | |
# | |
# Your controller will need to set the stylesheet: stylesheet :example | |
# and create this view like so: subview Example, :my_example_view | |
class Example < UIView | |
CELL_IDENTIFIER = 'example_cell' | |
def initWithFrame(frame) |
repository_names: | |
- datamapper/dm-session | |
- datamapper/dm-mapper | |
- datamapper/dm-relation-graph | |
- datamapper/devtools | |
- dkubb/adamantium | |
- dkubb/ice_nine | |
- dkubb/equalizer | |
- dkubb/descendants_tracker | |
- dkubb/abstract_class |