🏳️🌈
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
SELECT | |
RC.Constraint_Name AS FK_Constraint, | |
RC.Constraint_Catalog AS FK_Database, | |
CCU.Table_Name AS FK_Table, | |
CCU.Column_Name AS FK_Column, | |
RC.Unique_Constraint_Name AS PK_Constraint, | |
RC.Unique_Constraint_Catalog AS PK_Database, | |
RC.Unique_Constraint_Schema AS PK_Schema, | |
CCU2.Table_Name AS PK_Table, | |
CCU2.Column_Name AS PK_Column, |
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
class Goal | |
include DataMapper::Resource | |
property :id, Serial | |
property :name, String | |
has n, :targeting_goals | |
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
dealer.player = false | |
add_round do | |
players.each {|p| p.bet} | |
deal players 1.up | |
deal dealer 1.down | |
deal all 1.up | |
end | |
add_round do |
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
/* | |
linq.js -- a simple LINQ implementation for javascript | |
Author: Nate Kohari <[email protected]> | |
Copyright (C) 2009 Enkari, Ltd. | |
Released under the Apache 2.0 license (http://www.opensource.org/licenses/apache2.0.php) | |
*/ | |
Array.prototype.all = function(func) { | |
var result = true; | |
this.iterate(function(item) { |
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
Scenario: Log in | |
Given I am registered as 'Tony' with password 'ABC123' | |
When I go to the login page | |
And I fill in "username" with "Tony" | |
And I fill in "password" with "ABC123" | |
And I press "submit" | |
Then I should be on the survey start page | |
# Works! |
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
git svn clone svn://svn-url --trunk=trunk --branches=branches --tags=tag | |
git checkout -b TrunkLocal trunk | |
git checkout -b LiveLocal live | |
[from Live Branch] | |
git merge TrunkLocal --no-ff | |
# git svn actually ties to remote branches via the commit history, so if you get the url to the trunk in your live branch, you'll commit to it... --no-ff prevents that |
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 save | |
@campsite = Campsite.new(self.params[:campsite]) | |
@campsite.save! | |
redirect_to "/campgrounds/#{@campsite.name}/campsites" | |
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
$("#ui-datepicker-div").addClass("promoteZ"); | |
CSS: | |
.promoteZ { | |
z-index: 2006; /* Dialog z-index is 1006*/ | |
} |
NewerOlder