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
| <div class="my-container"> | |
| <div class="row-fluid"> | |
| <div class="span4 center"> | |
| <img src="jalapeno.png" class="img-circle"> | |
| <h3>JALAPENO</h3> | |
| <p>The jalapeño is a medium-sized chili pepper..</p> | |
| </div> | |
| <div class="span4 center"> | |
| <img src="HP22B.png" class="img-circle"> | |
| <h3>HP22B</h3> |
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
| /* centering text */ | |
| .center{ | |
| text-align: center; | |
| } |
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
| $('#comments').prepend("<%= j render partial: 'comment', locals: {comment: @comment} %>"); | |
| $('.counter').html("<%= j pluralize(@challenge.comments_count, 'comment')%> posted"); | |
| $('.comment-box:first').animate({backgroundColor: "rgba(45,195,89,0.2)"}, 50); | |
| $('.comment-box:first').delay(1000).animate({backgroundColor: "#FFFF"}, 1000); |
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
| require 'open-uri' | |
| require 'nokogiri' | |
| html_file = open("http://www.leboncoin.fr/annonces/offres/ile_de_france/?q=treteau") | |
| html_doc = Nokogiri::HTML(html_file) | |
| html_doc.search('.lbc').each do |element| | |
| puts element.search('.title').inner_text | |
| puts element.search('.category').inner_text | |
| puts element.search('.price').inner_text |
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 CreatePosts < ActiveRecord::Migration | |
| def up | |
| create_table :posts do |t| | |
| t.string :name | |
| t.datetime :date | |
| t.string :source_url | |
| t.integer :rating | |
| end | |
| end | |
| 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
| <table> | |
| <tr> | |
| <td>Pays</td> | |
| <td>Classement FIFA</td> | |
| <td>Capitaine</td> | |
| <td>Sélectionneur</td> | |
| </tr> | |
| <tr> | |
| <td>France</td> |
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 pick_number() | |
| puts "pick a number please" | |
| gets.chomp.to_i | |
| end | |
| def display_grid(grid) | |
| grid.each_with_index do |num, index| | |
| puts "Numero #{index + 1} => #{num}" | |
| end | |
| end |