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
| <!DOCTYPE html>\n<html lang=\"en\"> | |
| <head> | |
| <title> Table Challenge</title> | |
| </head> | |
| <body> | |
| <h1> HTML Table Challenge</h1> | |
| <!-- Write your code below --> | |
| </body> | |
| </html> |
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
| TConsole::Config.run do |config| | |
| config.file_sets["helpers"] = ["test/helpers/**/*_test.rb"] | |
| 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
| TConsole::Config.run do |config| | |
| config.preload_paths = ["./config/application"] | |
| config.include_paths = ["./test"] | |
| config.file_sets = { | |
| "all" => ["#{config.test_dir}/unit/**/*_test.rb", "#{config.test_dir}/functional/**/*_test.rb", | |
| "#{config.test_dir}/integration/**/*_test.rb"], | |
| "units" => ["#{config.test_dir}/unit/**/*_test.rb"], | |
| "unit" => ["#{config.test_dir}/unit/**/*_test.rb"], | |
| "functionals" => ["#{config.test_dir}/functional/**/*_test.rb"], | |
| "functional" => ["#{config.test_dir}/functional/**/*_test.rb"], |
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
| var TextSelection; | |
| TextSelection = (function() { | |
| function TextSelection() {} | |
| TextSelection.returnFalse = function() { | |
| return false; | |
| }; |
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 form_div(form, field, message = nil, options = {}, &block) | |
| style_class = options[:class] || "" | |
| style_class += " error" if form.object.errors[field].any? | |
| div_options = {} | |
| div_options[:class] = style_class unless style_class.blank? | |
| buffer = "" | |
| buffer << content_tag("div", div_options) do | |
| inner_buffer = yield |
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 FTestHelper | |
| def self.execute_tests(*paths) | |
| paths.each do |path| | |
| FileList[path].to_a.each { |file| require File.expand_path(file) } | |
| end | |
| end | |
| end | |
| namespace :ftest do |
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
| <html> | |
| <body> | |
| <a id="download-link" href="download.pdf">Download!</a> | |
| <script type="text/javascript"> | |
| $('#download-link').click() { | |
| _gaq.push(['_trackEvent', 'Downloads', 'Downloaded', 'download.pdf'); | |
| } | |
| </script> | |
| </body> |
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
| # Heroku only lets you run cron jobs at the specific time that you add cron to your app, so here's a quick script that I used | |
| # to make that happen. | |
| until Time.now.hour == 3 && Time.now.min == 30 | |
| puts "Still not time..." | |
| sleep 60 | |
| end | |
| system("heroku addons:add cron") |
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
| // considering this data | |
| var hash = { person: { name: "Yehuda" } } | |
| what's the value of .. in this template? | |
| {{#person/name}}{{..}}{{/person/name}} | |
| Is it person or is it the whole hash? | |
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
| <html> | |
| <body> | |
| <form> | |
| {{#bind name}}<input type="text" value="{{.}}" />{{/bind}} | |
| </form> | |
| </body> | |
| </html> |