This file contains hidden or 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
| # app/api/proj/api/v2/entities/committee_base.rb | |
| module PROJ::API::V2::Entities | |
| class CommitteeBase < Grape::Entity; | |
| expose :id | |
| end | |
| class CommitteeOffice < CommitteeBase; | |
| expose :name | |
| end | |
| end |
This file contains hidden or 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
| LAUNCHY_DEBUG: URI parsing pass 1 : https://accounts.google.com/o/oauth2/auth?access_type=offline&client_id=259660604872-kh04mirn4j38hbo3fpfrhi9cuvcc6b03.apps.googleusercontent.com&redirect_uri=http://localhost:9292/&response_type=code&scope=https://www.googleapis.com/auth/youtube -> {:scheme=>"https", :user=>nil, :password=>nil, :host=>"accounts.google.com", :port=>nil, :path=>"/o/oauth2/auth", :query=>"access_type=offline&client_id=259660604872-kh04mirn4j38hbo3fpfrhi9cuvcc6b03.apps.googleusercontent.com&redirect_uri=http://localhost:9292/&response_type=code&scope=https://www.googleapis.com/auth/youtube", :fragment=>nil} | |
| LAUNCHY_DEBUG: Checking if class Launchy::Application::Browser is the one for handles?(https://accounts.google.com/o/oauth2/auth?access_type=offline&client_id=259660604872-kh04mirn4j38hbo3fpfrhi9cuvcc6b03.apps.googleusercontent.com&redirect_uri=http://localhost:9292/&response_type=code&scope=https://www.googleapis.com/auth/youtube)} | |
| LAUNCHY_DEBUG: Checking if class Launchy::Detect::HostOsFam |
This file contains hidden or 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
| #!/usr/bin/ruby | |
| require 'rubygems' | |
| gem 'google-api-client', '>0.7' | |
| require 'google/api_client' | |
| require 'google/api_client/client_secrets' | |
| require 'google/api_client/auth/file_storage' | |
| require 'google/api_client/auth/installed_app' | |
| # This OAuth 2.0 access scope allows for read-only access to the authenticated |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <script src="http://code.jquery.com/jquery.min.js"></script> | |
| <link href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet" type="text/css" /> | |
| <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script> | |
| <script src="http://code.jquery.com/jquery.js"></script> | |
| <script src="http://cdnjs.cloudflare.com/ajax/libs/handlebars.js/2.0.0/handlebars.js"></script> | |
| <script src="http://builds.emberjs.com/ember-latest.js"></script> | |
| <meta charset="utf-8"> |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <script src="http://code.jquery.com/jquery.min.js"></script> | |
| <link href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet" type="text/css" /> | |
| <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script> | |
| <script src="http://code.jquery.com/jquery.js"></script> | |
| <script src="http://cdnjs.cloudflare.com/ajax/libs/handlebars.js/2.0.0/handlebars.js"></script> | |
| <script src="http://builds.emberjs.com/ember-latest.js"></script> | |
| <meta charset="utf-8"> |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <script src="http://code.jquery.com/jquery.min.js"></script> | |
| <link href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet" type="text/css" /> | |
| <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script> | |
| <script src="http://code.jquery.com/jquery.js"></script> | |
| <script src="http://cdnjs.cloudflare.com/ajax/libs/handlebars.js/1.0.0/handlebars.js"></script> | |
| <script src="http://builds.emberjs.com/ember-latest.js"></script> | |
| <meta charset="utf-8"> |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <script src="http://code.jquery.com/jquery.js"></script> | |
| <script src="http://cdnjs.cloudflare.com/ajax/libs/handlebars.js/1.0.0/handlebars.js"></script> | |
| <script src="http://builds.emberjs.com/ember-latest.js"></script> | |
| <meta charset="utf-8"> | |
| <title>JS Bin</title> | |
| </head> | |
| <body> |
This file contains hidden or 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 ErrorsController < ApplicationController | |
| def not_found | |
| render :status => 404, :formats => [:html] | |
| end | |
| def server_error | |
| render :status => 500, :formats => [:html] | |
| end | |
| end |
This file contains hidden or 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
| task :import_car_style => [:environment] do | |
| client = Savon.new('https://services.chromedata.com/AutomotiveConfigCompareService/AutomotiveConfigCompareService3?WSDL') | |
| service = "AutomotiveConfigCompareService3" | |
| port = "AutomotiveConfigCompareService3Port" | |
| getstyle = "getStyles" | |
| style = client.operation(service, port, getstyle) | |
| order_availability = ["Fleet", "Retail"] | |
| order_availability.each do |availability| | |
| ModelDefinition.all.each do |f| | |
| style.body = {:StylesRequest=>{:accountInfo=>{:accountNumber=>"xxx", :accountSecret=>"xxx", :locale=>{:country$ |
NewerOlder