- add app.json, set the newest sdkVersion
{
"name": "<yourname>",
"displayName": "<yourname>",
"expo": {
"sdkVersion": "25.0.0"
}
}{
"name": "<yourname>",
"displayName": "<yourname>",
"expo": {
"sdkVersion": "25.0.0"
}
}| require 'rails_helper' | |
| RSpec.describe TodosController, :type => :controller do | |
| describe "GET #index" do | |
| #describe "POST #create" do | |
| #describe "GET #show" do | |
| #describe "PATCH #update" do (or PUT #update) | |
| #describe "DELETE #destroy" do | |
| #describe "GET #new" do |
| // Disable the payment/submit button until everything has loaded | |
| // (if Stripe fails to load, we can't progress anyway) | |
| $(document).ready(function() { | |
| $("#payment-button").prop('disabled', false) | |
| }) | |
| var handler = StripeCheckout.configure("customButtonA", { | |
| key: '<yourpublishablekey', | |
| token: function(token, args){ | |
| var $input = $('<input type=hidden name=stripeToken />').val(token.id); |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> | |
| <title>Stripe Getting Started Form</title> | |
| <!-- The required Stripe lib --> | |
| <script type="text/javascript" src="https://js.stripe.com/v2/"></script> | |
| <!-- jQuery is used only for this example; it isn't required to use Stripe --> |
| class Person | |
| attr_accessor :pocket | |
| end | |
| class Artist < Person | |
| def draw_like_an_artist | |
| "Look, I painted a landscape." | |
| end | |
| end |
| $('form').validate( | |
| { | |
| rules: { | |
| numero: { | |
| required: true | |
| }, | |
| descricao: { | |
| minlength: 3, | |
| email: true, | |
| required: true |
| require 'faraday' | |
| module StatHat | |
| module API | |
| extend self | |
| CLASSIC_VALUE_URL = "http://api.stathat.com/v".freeze | |
| CLASSIC_COUNT_URL = "http://api.stathat.com/c".freeze | |
| EZ_URL = "http://api.stathat.com/ez".freeze | |
| def post_value(stat_key, user_key, value) |
| #!/usr/bin/env ruby | |
| # this is a test of ruby-processing (https://github.com/jashkenas/ruby-processing) with the video library | |
| # use "rp5 unpack library" at a command line to install the video library, among others | |
| # tested with Ruby 1.9.2 | |
| # video file: http://bit.ly/H5yBjK | |
| class VideoTest < Processing::App |
| #Model | |
| @user.should have(1).error_on(:username) # Checks whether there is an error in username | |
| @user.errors[:username].should include("can't be blank") # check for the error message | |
| #Rendering | |
| response.should render_template(:index) | |
| #Redirecting | |
| response.should redirect_to(movies_path) |