Skip to content

Instantly share code, notes, and snippets.

View cedricdekimpe's full-sized avatar

Cédric Dekimpe cedricdekimpe

View GitHub Profile
This file has been truncated, but you can view the full file.
<!DOCTYPE html>
<html lang='en'>
<head>
<meta content='text/html; charset=utf-8' http-equiv='content-type'>
<script src="http://www.apptweak.dev//assets/application-pdf.js" type="text/javascript"></script>
<script type='text/javascript'>
</script>
<title>
{% codeblock Javascript 'hello world' lang:js https://gist.github.com/cedricbousmanne/29451cb977bf772f8122 Code source %}
var hello = "Hello, world";
alert(hello);
{% endcodeblock %}
{% codeblock lang:ruby %}
firstname = "John"
lastname = "Doe"
echo "#{firstname} #{lastname}"
{% endcodeblock %}
---
layout: page
title: "index"
date: 2015-10-04 23:30
comments: true
sharing: true
footer: true
---
<ul class="main-navigation">
<li><a href="{{ root_url }}/">Accueil</a></li>
<li><a href="{{ root_url }}/blog">Blog</a></li>
<li><a href="{{ root_url }}/blog/archives">Archives</a></li>
</ul>
<ul class="main-navigation">
<li><a href="{{ root_url }}/">Blog</a></li>
<li><a href="{{ root_url }}/blog/archives">Archives</a></li>
</ul>
@cedricdekimpe
cedricdekimpe / provlux.svg
Created September 20, 2015 17:48
provlux.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@cedricdekimpe
cedricdekimpe / gist:8cb64709e60fe2189714
Created August 21, 2015 08:31
assets precompile error
RAILS_ENV=staging bundle exec rake 'assets:precompile'
WARNING: Use strings for Figaro configuration. 647730745310662 was converted to "647730745310662".
WARNING: Use strings for Figaro configuration. 22225 was converted to "22225".
/Users/cedric/.rvm/rubies/ruby-2.0.0-p451/bin/ruby /Users/cedric/.rvm/gems/ruby-2.0.0-p451@apptweak/bin/rake assets:precompile:all RAILS_ENV=staging RAILS_GROUPS=assets
WARNING: Use strings for Figaro configuration. 647730745310662 was converted to "647730745310662".
WARNING: Use strings for Figaro configuration. 22225 was converted to "22225".
AssetSync: using /Users/cedric/Code/apptweak/config/initializers/asset_sync.rb
AssetSync: Syncing.
rake aborted!
Excon::Errors::SocketError: XML declaration allowed only at the start of the document (Nokogiri::XML::SyntaxError)
@cedricdekimpe
cedricdekimpe / search-results.liquid
Created October 24, 2013 09:10
LocomotiveCMS search : liquid template
{% extends 'parent' %}
<h1>{{ page.title }}</h1>
{% if search_results.size == 0 %}
<p><strong>There is no result</strong></p>
{% endif %}
{% for result in search_results %}
{% case locale %}
{% when "fr" %}
{% capture url %}/index/{{result._permalink}}{% endcapture %}
{% else %}
@cedricdekimpe
cedricdekimpe / _search.html.haml
Created October 24, 2013 09:08
LocomotiveCMS search : search form
#topSearch.right
%form#searchform{:action => "/#{locale}/search", :method => "get", :role => "search"}
%label.assistive-text{:for => "search"}= I18n.t("common.header.search_label")
%input#search{:name => "search", :placeholder => I18n.t("common.header.search_placeholder"), :type => "search", :value => ""}/
%input#searchSubmit{:type => "submit", :value => "Search"}/