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
### Keybase proof | |
I hereby claim: | |
* I am nkabardin on github. | |
* I am nkabardin (https://keybase.io/nkabardin) on keybase. | |
* I have a public key ASCSDAZCcmPgST5dJxkDo_3zBpLYVhVejtiadXuib1DNPQo | |
To claim this, I am signing this object: |
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
@mixin media ($settings) { | |
$mediaSettings: ("only screen"); | |
@each $rule, $value in $settings { | |
@if $rule == "min" { | |
$mediaSettings: | |
append( | |
$mediaSettings, | |
"and (min-device-width: #{$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
irb(main):031:0> def hey(s) | |
irb(main):032:1> s << "bbc" | |
irb(main):033:1> end | |
=> :hey | |
irb(main):034:0> a = "abc" | |
=> "abc" | |
irb(main):035:0> hey(a) | |
=> "abcbbc" | |
irb(main):036:0> a | |
=> "abcbbc" |
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
irb(main):003:0> "abc".object_id == "abc".object_id | |
=> false | |
irb(main):004:0> "abc".to_sym.object_id == "abc".to_sym.object_id | |
=> true |
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
{ | |
"code": 200, | |
"data": { | |
"action": "play", | |
"total_mastery": 123, | |
"data": { | |
"responses": [{ | |
"next_step": 5, | |
"id": 1, | |
"value": "first\n\n", |
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 thank_you | |
authenticate_user! | |
redirect_to(coupons_path) and return unless session[:payment_id] | |
@payment = Payment.find(session.delete(:payment_id)) | |
offers = Offer.usual.city(current_user.city).public_only.published | |
if @payment.purpose == 'order' | |
deal = @payment.offer.offer_description | |
offers -= (deal.main_multi_merchant_deal || deal).offers |
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
# Example xml | |
<?xml version="1.0" encoding="UTF-8" ?> | |
<configuration> | |
<application id="test"> | |
<platform id="vk"> | |
<appId>123</appId> | |
<secretKey>secret</secretKey> | |
<packages> | |
<package id="vk0" price="100" points="3" /> |
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
<?xml version="1.0"?> | |
<cross-domain-policy> | |
<allow-access-from domain="beenza.local" to-ports="9119" /> | |
<allow-access-from domain="*.vk.com" to-ports="9119" /> | |
<allow-access-from domain="*.vkontakte.ru" to-ports="9119" /> | |
<allow-access-from domain="club.beenza.net" to-ports="9119" /> | |
</cross-domain-policy> |