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
HTML | |
==== | |
.menu-container | |
%nav | |
%ul | |
%li | |
%a.toggle-menu | |
= fa_icon 'bars' | |
Menu |
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
# Delete players in batches to avoid MySQL ERROR 1206: The total number of | |
# locks exceeds the lock table size | |
begin | |
connection.execute("DELETE FROM segmented_players WHERE project_id = #{self.id} LIMIT 1000") | |
end while segmented_players.count > 0 |
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
Setting up temp tables | |
sql to populate #player_gaming: SELECT G.player_id, SUM(G.theo_win) AS theo_win, SUM(G.casino_win) AS casino_win, SUM(theo_win) / (CONVERT(decimal, COUNT(DISTINCT gaming_date_id))) AS adt | |
INTO #player_gaming | |
FROM player_gaming_day G | |
WHERE G.gaming_date_id BETWEEN 20130201 AND 20140131 | |
AND G.theo_win > 0 | |
AND G.property_id in (1, 2, 3, 4, 5) | |
GROUP BY G.player_id; | |
sql to populate #candidate: SELECT [player].player_id, [player].primary_property_id, [player].zip_id, [player].zip, [property_zip].distance, [player].is_vip, [player].primary_account_id, [player].last_name, [player].first_name, [player].address, [player].city, [player].state, [player].phone_number, [player].is_no_email, [player].email_address, [player].enroll_date, [player].birth_date, [player].gender, [player].address_status_id, [player].primary_game_type_id, [player].club_state_id INTO #candidate FROM player LEFT JOIN property_zip ON [player].zip_id = [property_zip].zi |
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
namespace :brewtoad do | |
task :test_priming_sugars => :environment do | |
BrewLog.find_each do |brew_log| | |
next if brew_log.priming_sugar_id.nil? | |
g = GenericFermentable.find_by_id(brew_log.priming_sugar_id) | |
if g.nil? |
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
## Routing | |
Pages controller is the last entry in the routing table. Examples of routes which may be matched include: | |
* /Foo => Foo | |
* /Foo/Bar => Foo/Bar | |
* /Foo-Bar/Baz => Foo-Bar/Baz | |
### Reserved Namespaces |
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
http://www.kestell.org/food/bacon-wrapped-meatloaf-with-black-truffle-saffron-macaroni-and-cheese/ | |
Mediterranean Salsa | |
1 red pepper, chopped | |
1 yellow pepper, chopped | |
2 medium heirloom tomatoes, seeded and chopped | |
2 medium cloves garlic, minced | |
1/2 medium red onion, chopped | |
1 each habanero and jalapeño peppers, minced |
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
<html> | |
<head> | |
<style> | |
* { | |
box-sizing: border-box; | |
} | |
body { | |
max-width: 1440px; | |
margin: 0 auto; |
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
require 'fileutils' | |
require 'redcarpet' | |
require 'haml' | |
require 'active_support/all' | |
$markdown = Redcarpet::Markdown.new(Redcarpet::Render::HTML, | |
:autolink => true, | |
:fenced_code_blocks => 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
require 'fileutils' | |
require 'redcarpet' | |
require 'haml' | |
require 'active_support/all' | |
$markdown = Redcarpet::Markdown.new(Redcarpet::Render::HTML, | |
:autolink => true, | |
:fenced_code_blocks => 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
var Grove = (function (module) { | |
module.Widgets = (function (submodule) { | |
submodule.Page = (function (subsubmodule) { | |
subsubmodule.bar = function () { | |
alert("Hello, World!"); | |
} |
OlderNewer