Skip to content

Instantly share code, notes, and snippets.

View BillyParadise's full-sized avatar

Will Paradis BillyParadise

View GitHub Profile
Model:
class Profile < ApplicationRecord {
... => ...
:plan_id => :integer,
:requestedplan => :integer
}
class Profile < ApplicationRecord
belongs_to :plan
class ChargesController < ApplicationController
def new
end
def create
begin
customer = Stripe::Customer.create(
:email => current_user.email,
:source => params[:stripeToken]
@BillyParadise
BillyParadise / designer.html
Last active August 29, 2015 14:10
designer
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-menu/core-submenu.html">
<polymer-element name="my-element">
<link rel="import" href="../polymer/polymer.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
@BillyParadise
BillyParadise / create and write file
Last active August 29, 2015 14:02
hash comparing
require 'digest'
rolls = rand(1..1) #small for testing!
raw = ""
rolls.times do
raw = raw + "A,B,C,"
end
raw = raw[0...-1]