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
if cf_min_reached? and ci_min_reached? | |
if pitch_goal_reached? | |
#Combination is successful | |
else | |
if cf_goal_reached? | |
#CF is successful | |
elsif ci_goal_reached? | |
#CI is successful | |
else | |
#All fails |
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
[:->]--)--{ |
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
NoMethodError (undefined method `[]' for nil:NilClass): | |
app/controllers/payments/google_checkout_controller.rb:36:in `notifications' | |
36: payment = GoogleCheckout.find_by_authorization(notification.shopping_cart.private_data["token"]) | |
# We send command with shopping_cart.private_data = {token: token} | |
# And never have problems with getting private_data["token"] from new_order_notification | |
# There is no private_data["token"] in new reqest that we receive since april and here is the problem |
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
@contacts = User.fetch_contacts("Linkedin", current_user) //lista kontaktw | |
@tmps = @contacts.map { |tmp| tmp[:id] } //wybieramy z nij liste idków | |
@registered = Authentication.where("uid IN (:uids)", :uids => @tmps) //szukamy userów o takich idkach w bazie (to chyba zajmuje najwięcej czasu) | |
@contacts.delete_if{|contact| @registered.pluck(:uid).include?(contact[:id])} // wyrzucamy z kontaktów te znalezione w bazie | |
@registered.map! { |auth| auth.user } | |
@registered = ContactsInviterController::remove_invited @registered, current_user |
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
def cancel | |
update_attribute(:status, "canceled") | |
if payment.is_a(GoCardless) && payment.status=="preauth" | |
pre_auth = GoCardless::PreAuthorization.find(payment.authorization) | |
pre_auth.cancel! | |
end | |
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
reload! | |
Profile.find(:all).each do |u| | |
u.update_attribute(:first_name, Faker::Name.first_name+" "+u.id.to_s) | |
u.update_attribute(:last_name, Faker::Name.last_name) | |
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
using namespace System; | |
using namespace System::ComponentModel; | |
using namespace System::Collections; | |
using namespace System::Data; | |
using namespace System::Collections::Generic; | |
namespace JobOffer { | |
bool checkApplicant(JobApplicant^ applicant){ | |
if( applicant->languageExpirience.Contains("C++") && |
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
en: | |
board: | |
destroy: "Delete" | |
add_comment: Add comment | |
hide_users_post: "Hide users post" | |
view_more_comments: "View more comments..." | |
comment: Comment | |
wait: Wait... | |
share: Share | |
share_also: SHARE ASLO ON |
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
2015-02-10 21:03:50, Info MOUPG SetupHost::Initialize | |
2015-02-10 21:03:50, Info MOUPG SetupHost::Initialize: ModulePath = [C:\$Windows.~BT\Sources] | |
2015-02-10 21:03:50, Info MOUPG SetupHost::Initialize: WorkingPath = [C:\$Windows.~BT\Sources] | |
2015-02-10 21:03:50, Info MOUPG SetupHost::Initialize: LoggingPath = [C:\$Windows.~BT\Sources\Panther] | |
2015-02-10 21:03:50, Info MOUPG SetupHost::Initialize: MediaPath = [F:] | |
2015-02-10 21:03:50, Info MOUPG SetupHost::Initialize: InstallFilePath = [F:\Sources\Install.wim] | |
2015-02-10 21:03:50, Info MOUPG SetupHost::Initialize: WinReFilePath = [] | |
2015-02-10 21:03:50, Info MOUPG SetupHost::Initialize: ServicingStackFilePath = [] | |
2015-02-10 21:03:50, Info MOUPG SetupHost::Initialize: CmdLine = [/Install /Media /ProcessId 4604 /InstallFile |
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
var SocialLogins = { | |
facebook: function(callback){ | |
hello.login('facebook', {scope: 'email, user_friends, publish_actions'}, function(data){ | |
$.cookie('facebook_oauth_token', data.authResponse.access_token, { expires: 7, path: '/' }); | |
callback(); | |
}); | |
}, | |
twitter: function(callback){ | |
hello.login('twitter', {}, function(data){ | |
$.cookie('twitter_oauth_token', data.authResponse.access_token, { expires: 7, path: '/' }); |
OlderNewer