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
| global | |
| log /dev/log local0 | |
| log /dev/log local1 notice | |
| chroot /var/lib/haproxy | |
| stats socket /run/haproxy/admin.sock mode 660 level admin | |
| stats timeout 30s | |
| user haproxy | |
| group haproxy | |
| daemon |
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
| { | |
| "http_status": 200, | |
| "stats": { | |
| "responses": { | |
| "showing": 4, | |
| "total": 4, | |
| "completed": 4 | |
| } | |
| }, | |
| "questions": [ |
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
| def apply_current_grant! | |
| current_grant = project.current_grant | |
| current_grant.apply_to_donation(self) | |
| end | |
| def grant_can_be_applied? | |
| grants.current.present? && (total_amount <= grant_amount) | |
| end | |
| def apply_multiple_grants |
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
| Seat 1: RavenRa ($2.48 in chips) | |
| Seat 2: blaker999 ($10 in chips) | |
| Seat 3: pates216 ($11.88 in chips) | |
| Seat 4: ararinha44 ($19.15 in chips) | |
| Seat 5: MagisterLeon ($10 in chips) | |
| Seat 6: HighVacuum ($10.04 in chips) | |
| ararinha44: posts small blind $0.05 | |
| MagisterLeon: posts big blind $0.10 | |
| *** HOLE CARDS *** | |
| HighVacuum: raises $0.10 to $0.20 |
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
| def multimonth? | |
| # users where: | |
| # subscription is active, last cim payment was > $29 | |
| # subscription is active, last paypal payment was > $29 | |
| # subscription is active, has had 6 payments of $29 in a row, and the first payment was 6 months ago | |
| # => jan 1, feb 1, march 1, april 1, may 1, june 1, keeps access until july 1 - if I check on june 15, | |
| return false unless self.active? | |
| self.paypal_multimonth? or | |
| self.cim_multimonth_monthly? or | |
| self.cim_multimonth_sixmonth_or_yearly? |
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
| <% if DeucesCracked::Application.config.production_like_environments.index(::Rails.env)-%> | |
| <% protocol = (DeucesCracked::Application.config.production_like_environments.index(::Rails.env) ? "https" : "http") %> | |
| <script type='text/javascript' src='<%= protocol %>://ajax.googleapis.com/ajax/libs/swfobject/2.1/swfobject.js'></script> | |
| <% else -%> | |
| <%= javascript_include_tag "swfobject.js" %> | |
| <% 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
| user_payments = [] | |
| active_users = [] | |
| subscriptions = Subscription.where('end > ?', Date.today) | |
| subscriptions.each do |s| | |
| active_users << s.user | |
| end | |
| active_users.each do |user| | |
| @last_cim_payment = user.cim_payments.last |
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 ValidSubdomain | |
| def self.matches?(request) | |
| request.subdomain != "affiliate" | |
| end | |
| end | |
| DeucesCracked::Application.routes.draw do | |
| namespace "admin" do | |
| resources :users, :dcrb_aliases, :podcasts, :podshows |
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
| +--------+------------+-----------------------------------------+--------------+----------------+-----------+-------------+----------+--------+------+------------+---------+ | |
| | Table | Non_unique | Key_name | Seq_in_index | Column_name | Collation | Cardinality | Sub_part | Packed | Null | Index_type | Comment | | |
| +--------+------------+-----------------------------------------+--------------+----------------+-----------+-------------+----------+--------+------+------------+---------+ | |
| | topics | 0 | PRIMARY | 1 | id | A | 71941 | NULL | NULL | | BTREE | | | |
| | topics | 1 | user_id | 1 | user_id | A | 14388 | NULL | NULL | YES | BTREE | | | |
| | topics | 1 | index_topics_on_forum_id | 1 | forum_id | A | 21 | NULL | NULL | YES | BTR |