This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void Start() | |
{ | |
StartCoroutine(test()); | |
} | |
IEnumerator test() | |
{ | |
string input = "You JSON goes here"; | |
Hashtable headers = new Hashtable(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.apache.cordova.facebook; | |
import java.io.UnsupportedEncodingException; | |
import java.math.BigDecimal; | |
import java.net.URLDecoder; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.Currency; | |
import java.util.Date; | |
import java.util.HashSet; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=Navigating= | |
visit('/projects') | |
visit(post_comments_path(post)) | |
=Clicking links and buttons= | |
click_link('id-of-link') | |
click_link('Link Text') | |
click_button('Save') | |
click_on('Link Text') # Click either a link or a button | |
click_on('Button Value') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Feature: Login Screen | |
As a user who is not logged in | |
I want to be able to log into carsocial | |
So that I can enter into the application | |
Background: | |
Given I am on the login screen | |
Scenario: I login successfully | |
Given I am a user on carsocial |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Api::ApplicationController < ApplicationController | |
rescue_from ActionController::UnknownFormat do |exception| | |
render json: { errors: [exception.to_s] }, status: 415 | |
end | |
rescue_from Mongoid::Errors::DocumentNotFound do |exception| | |
render json: { errors: ["Not Found"] }, status: :not_found | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ruby:2.1.5 | |
################################# | |
# native libs | |
################################# | |
RUN apt-get update -qq | |
RUN apt-get install -qq -y build-essential | |
RUN apt-get install -qq -y libpq-dev | |
RUN apt-get install -qq -y nodejs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Devise | |
module Strategies | |
class Token < Base | |
# For more info. visit here.. | |
# http://kyan.com/blog/2013/10/11/devise-authentication-strategies | |
def valid? | |
token | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ruby:2.1.5 | |
################################# | |
# native libs | |
################################# | |
RUN apt-get update -qq | |
RUN apt-get install -qq -y build-essential | |
RUN apt-get install -qq -y libpq-dev | |
RUN apt-get install -qq -y nodejs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ruby:2.1.5 | |
################################# | |
# native libs | |
################################# | |
RUN apt-get update -qq | |
RUN apt-get install -qq -y build-essential | |
RUN apt-get install -qq -y libpq-dev | |
RUN apt-get install -qq -y nodejs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*global define*/ | |
define([ | |
'jquery', | |
'backbone', | |
'lib/appcontext', | |
'lib/analytics' | |
], function (jQuery, Backbone, app, analytics) { | |
'use strict'; |
OlderNewer