Skip to content

Instantly share code, notes, and snippets.

View shaileshgupta's full-sized avatar

SG shaileshgupta

View GitHub Profile
:compileDebugJavaNote: /Users/shaileshgupta/ionic/workplace_user/platforms/android/src/org/apache/cordova/splashscreen/SplashScreen.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /Users/shaileshgupta/ionic/workplace_user/platforms/android/src/cordova/plugins/Diagnostic.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
:preDexDebug
:dexDebug
UNEXPECTED TOP-LEVEL EXCEPTION:
com.android.dex.DexException: Multiple dex files define Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat$AccessibilityServiceInfoVersionImpl;
at com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:579)
@shaileshgupta
shaileshgupta / Google Maps Example: Nightly.markdown
Created January 5, 2016 11:47
Google Maps Example: Nightly
@shaileshgupta
shaileshgupta / readme.md
Last active October 28, 2021 07:21
crm-dialer integration

POST http://115.112.249.153/EmbibeDemo/service1.asmx

Request

{
  "lead":{
    "phone_number": "9876543210",
    "cin": "4e9580e4572980347598",
    "priority": "P1"
 }
json.(@user, :id, :name, :image_url, :mobile_number, :email, :session_token, :display_currency, :verified)
describe "when transactionable is not present" do
before { @transaction.transactionable = "" }
it { should_not be_valid }
end
class Account < ActiveRecord::Base
self.inheritance_column = nil # workaround using type as column type
belongs_to :user
validates :type, inclusion: { in: Constants::AccountTypes }, allow_nil: true
validates :currency, inclusion: { in: Constants::CurrencyCodes }, allow_nil: true
validates :user_id, presence: true
end
source 'https://rubygems.org'
ruby '2.0.0'
gem 'rails', '4.0.3'
gem 'bcrypt-ruby', '3.1.2'
gem 'faker', '1.1.2'
gem 'will_paginate', '3.0.4'
group :development, :test do
gem 'sqlite3', '1.3.8'
@shaileshgupta
shaileshgupta / boss.md
Last active August 14, 2017 20:43
Ruby Bitcoin OSS
@shaileshgupta
shaileshgupta / gist:5472296
Created April 27, 2013 08:10
Capybara change notice
Some of the defaults have changed in Capybara 2.1. If you're experiencing failures,
please revert to the old behaviour by setting:
Capybara.configure do |config|
config.match = :one
config.exact_options = true
config.ignore_hidden_elements = true
config.visible_text_only = true
end