View challenge-2-5.js
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
function viewAlternateFlight(e){ | |
e.preventDefault(); | |
var url = $(this).attr('href'); | |
$.ajax(url, { | |
type: 'GET', | |
success: function(result){ | |
$('.seating-chart').html(result); | |
} | |
}); |
View rencontres.yml
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
- France Italie: | |
nom: 'France Italie' | |
visuel: /samples/rencontres/affiche-France_Italie_4fev2012.jpeg | |
accroche: "Une d\xC3\xA9but de tournois en douceur ?" | |
description_du_match: |- | |
<p>Pas évident que les italiens nous facilitent le début de la compétition !</p> | |
<p>Le baptème du feu pour PSA ! Aura-t-il pris les bonnes option pour transcender cette équipe remaniée de nos quasi-champions du monde ??</p> | |
description_de_la_prestation: |- | |
<div style="font: normal normal normal 12px/1.5em 'Lucida Grande', Helvetica, Arial, sans-serif; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; padding-top: 0.5% !important; padding-right: 5px !important; padding-bottom: 0.5% !important; padding-left: 5px !important; height: 94% !important; margin: 0px !important;"> | |
<p>Grande journée de lancement à l'occasion de la première journée des 6 NATIONS.</p> |
View rencontres.yml
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
description: "Rassemblements f\xC3\xA9minins organis\xC3\xA9s par NRAF" | |
name: rencontres | |
order_by: date # c'est le nom de mon field | |
order_direction: asc | |
slug: rencontres | |
highlighted_field_name: nom | |
public_submission_enabled: false | |
fields: | |
- nom: | |
type: string |
View nos_rencontres.liquid.haml
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
{% extends index %} | |
{% block content %} | |
{% include 'rencontres_trois_colonnes' %} | |
{% endblock %} |
View rencontres_trois_colonnes.liquid.haml
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
.one | |
<!-- COLUMNS CONTAINER STARTS--> | |
.inner-pages | |
.page-title | |
%h3 {{ page.title }} | |
%h5 {% editable_short_text 'subtitle' %} Demandez-le programme !{% endeditable_short_text %} | |
#portfolio | |
#columns.portfolio-container | |
%ul |
View Gemfile
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
source 'https://rubygems.org' | |
gem 'rails', '3.2.1' | |
# Bundle edge Rails instead: | |
# gem 'rails', :git => 'git://github.com/rails/rails.git' | |
gem 'locomotive_cms', '~> 2.0.0.rc2', :require => 'locomotive/engine', :git => 'git://github.com/locomotivecms/engine.git', :branch => '2.0.0.rc' #, :ref => '' |
View mongoid.yml
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
defaults: &defaults | |
host: localhost | |
port: 27017 | |
# slaves: | |
# - host: slave1.local | |
# port: 27018 | |
# - host: slave2.local | |
# port: 27019 | |
development: |
View gist:2050531
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
# Please, be careful when editing these settings, it may break the theme assets API push | |
project_path = '/Users/Merlinp/Documents/dev/locomotivecms/nraf/site/public' | |
http_path = '/' | |
# change for using locomotive editor push or run function | |
# for run | |
css_dir = 'stylesheets' | |
# # for push | |
# css_dir = '../tmp/stylesheets' |
View chef_solo_bootstrap.sh
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
#!/usr/bin/env bash | |
sudo apt-get -y update | |
# Install dependencies | |
sudo apt-get -y install build-essential zlib1g-dev libssl-dev libreadline-dev libyaml-dev | |
# Install Ruby 1.9.3 from source | |
sudo wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p194.tar.gz | |
sudo tar -xvzf ruby-1.9.3-p194.tar.gz | |
cd ruby-1.9.3-p194/ | |
sudo ./configure --prefix=/usr/local |
View have_xml.rb
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 'nokogiri' | |
RSpec::Matchers.define :have_xml do |xpath, text| | |
match do |body| | |
doc = Nokogiri::XML::Document.parse(body) | |
nodes = doc.xpath(xpath) | |
expect(nodes).to_not be_empty | |
if text | |
nodes.each do |node| | |
cdata = node.children.find { |e| e.cdata? } | |
value_to_check = node.text |
OlderNewer