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
| <h4><%= comment.author %></h4> |
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
| <%= form_tag url_path, method: "get", id: "search", class: "form-inline", role: "form" do %> | |
| <%= end %> | |
| <%= render 'bulk_action_form' %> |
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
| jQuery -> | |
| e = 34 | |
| omni = (event) -> console.log("Lighbox appear! " + e) | |
| $('.lightbox-trigger').on 'mouseover', omni |
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 notify_admin | |
| name = "#{params[:message][:first_name]}" + "#{params[:message][:last_name] if params[:message][:last_name].present?}" | |
| from = params[:message][:email] | |
| to = Refinery::Page.find(13).parts.where(title: "Admin Email").first.body.gsub(Regexp.new(/([\<][\/]?[a-z]+[\>]?)/), '') | |
| subject = "[Contact] Message from #{name}" | |
| mail \ | |
| :to => to, | |
| :from => from, | |
| :subject => subject |
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
| unless User.where(login: 'tester').any? | |
| User.create \ | |
| login: 'lester' | |
| password: 'tester' | |
| 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
| <% title "Take Survey" %> | |
| <%= form_for @survey do |f| %> | |
| <p> | |
| <%= f.label :name %><br /> | |
| <%= f.text_field :name %> | |
| <%= f.hidden_field :student_id, survey_student_id %> | |
| </p> | |
| <%= f.fields_for :questions do |builder| %> | |
| <%= render "question_fields", :f => builder %> |
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
| test "expect empty permalink to be generated from title" do | |
| @article.permalink = "" | |
| assert @article.valid? | |
| assert_equal "hello-world", @article.permalink | |
| 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
| # module | |
| module FooHelper | |
| attr_accessor :sport | |
| def foo(sport) | |
| self.sport = sport | |
| end | |
| end | |
| # controller |
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
| _mysql 80733 0.0 1.0 2669508 43940 ?? S 12:20PM 0:01.27 /usr/local/mysql/bin/mysqld --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --plugin-dir=/usr/local/mysql/lib/plugin --user=mysql --log-error=/usr/local/mysql/data/dolphin.local.err --pid-file=/usr/local/mysql/data/dolphin.local.pid | |
| root 80644 0.0 0.0 2433436 1004 ?? S 12:20PM 0:00.02 /bin/sh /usr/local/mysql/bin/mysqld_safe --datadir=/usr/local/mysql/data --pid-file=/usr/local/mysql/data/dolphin.local.pid | |
| tscott 84449 0.0 0.0 2432768 600 s001 S+ 1:00PM 0:00.00 grep mysql |
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
| 131010 12:35:30 mysqld_safe Starting mysqld daemon with databases from /usr/local/var/mysql | |
| 2013-10-10 12:35:31 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details). | |
| 2013-10-10 12:35:31 82754 [Warning] Setting lower_case_table_names=2 because file system for /usr/local/var/mysql/ is case insensitive | |
| 2013-10-10 12:35:31 82754 [Note] Plugin 'FEDERATED' is disabled. | |
| 2013-10-10 12:35:31 82754 [Note] InnoDB: The InnoDB memory heap is disabled | |
| 2013-10-10 12:35:31 82754 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins | |
| 2013-10-10 12:35:31 82754 [Note] InnoDB: Compressed tables use zlib 1.2.3 | |
| 2013-10-10 12:35:31 82754 [Note] InnoDB: Using CPU crc32 instructions | |
| 2013-10-10 12:35:31 82754 [Note] InnoDB: Initializing buffer pool, size = 128.0M | |
| 2013-10-10 12:35:31 82754 [Note] InnoDB: Completed initialization of buffer pool |