Discover gists
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
DROP TABLE IF EXISTS `community_conditions`; | |
CREATE TABLE `community_conditions` ( | |
`id` char(36) NOT NULL, | |
`condition_id` char(36) NOT NULL, | |
`community_id` char(36) NOT NULL, | |
PRIMARY KEY (`id`), | |
KEY `doc` (`condition_id`) | |
) ENGINE=MyISAM DEFAULT CHARSET=utf8; |
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
DROP TABLE IF EXISTS `community_conditions`; | |
CREATE TABLE `community_conditions` ( | |
`id` char(36) NOT NULL, | |
`condition_id` char(36) NOT NULL, | |
`community_id` char(36) NOT NULL, | |
PRIMARY KEY (`id`), | |
KEY `doc` (`condition_id`) | |
) ENGINE=MyISAM DEFAULT CHARSET=utf8; |
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
DROP TABLE IF EXISTS `community_conditions`; | |
CREATE TABLE `community_conditions` ( | |
`id` char(36) NOT NULL, | |
`condition_id` char(36) NOT NULL, | |
`community_id` char(36) NOT NULL, | |
PRIMARY KEY (`id`), | |
KEY `doc` (`condition_id`) | |
) ENGINE=MyISAM DEFAULT CHARSET=utf8; |
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
DROP TABLE IF EXISTS `community_conditions`; | |
CREATE TABLE `community_conditions` ( | |
`id` char(36) NOT NULL, | |
`condition_id` char(36) NOT NULL, | |
`community_id` char(36) NOT NULL, | |
PRIMARY KEY (`id`), | |
KEY `doc` (`condition_id`) | |
) ENGINE=MyISAM DEFAULT CHARSET=utf8; |
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
DROP TABLE IF EXISTS `community_conditions`; | |
CREATE TABLE `community_conditions` ( | |
`id` char(36) NOT NULL, | |
`condition_id` char(36) NOT NULL, | |
`community_id` char(36) NOT NULL, | |
PRIMARY KEY (`id`), | |
KEY `doc` (`condition_id`) | |
) ENGINE=MyISAM DEFAULT CHARSET=utf8; |
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
DROP TABLE IF EXISTS `community_conditions`; | |
CREATE TABLE `community_conditions` ( | |
`id` char(36) NOT NULL, | |
`condition_id` char(36) NOT NULL, | |
`community_id` char(36) NOT NULL, | |
PRIMARY KEY (`id`), | |
KEY `doc` (`condition_id`) | |
) ENGINE=MyISAM DEFAULT CHARSET=utf8; |
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
DROP TABLE IF EXISTS `community_conditions`; | |
CREATE TABLE `community_conditions` ( | |
`id` char(36) NOT NULL, | |
`condition_id` char(36) NOT NULL, | |
`community_id` char(36) NOT NULL, | |
PRIMARY KEY (`id`), | |
KEY `doc` (`condition_id`) | |
) ENGINE=MyISAM DEFAULT CHARSET=utf8; |
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
DROP TABLE IF EXISTS `community_conditions`; | |
CREATE TABLE `community_conditions` ( | |
`id` char(36) NOT NULL, | |
`condition_id` char(36) NOT NULL, | |
`community_id` char(36) NOT NULL, | |
PRIMARY KEY (`id`), | |
KEY `doc` (`condition_id`) | |
) ENGINE=MyISAM DEFAULT CHARSET=utf8; |
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 'stringio' | |
require 'irb/ruby-lex' | |
# Tell the ruby interpreter to load code lines of required files | |
# into this filename -> lines Hash. This behaviour seems to be | |
# very undocumented and therefore shouldn't really be relied on. | |
SCRIPT_LINES__ = {} unless defined? SCRIPT_LINES__ | |
module ProcSource | |
def get_lines(filename, start_line = 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
<%= select(:team, :id, team_selection_matrix, {}, :onchange => "display(this,'#{@team.id}');") %> |