Skip to content

Instantly share code, notes, and snippets.

<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>
@Papillard
Papillard / team.css
Last active December 21, 2015 10:48
/* centering text */
.center{
text-align: center;
}
@Papillard
Papillard / comments_create.js
Created February 21, 2014 09:37
jQuery script for remote comment posting
$('#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);
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
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
<table>
<tr>
<td>Pays</td>
<td>Classement FIFA</td>
<td>Capitaine</td>
<td>Sélectionneur</td>
</tr>
<tr>
<td>France</td>
@Papillard
Papillard / video-banner.html
Last active September 6, 2017 11:48
video-banner
<html>
<head>
<style>
body {
margin: 0px;
}
.header-video {
width: 100%;
height: 100vh;
@Papillard
Papillard / loto_interface.rb
Created October 13, 2014 10:32
Loto interface for Re-Boot challenge @lewagon
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