Skip to content

Instantly share code, notes, and snippets.

View alienlebarge's full-sized avatar
💾
:wq

Cédric Aellen alienlebarge

💾
:wq
View GitHub Profile
@alienlebarge
alienlebarge / 01-GruntJS-Patternlab-TYPO3.md
Last active August 29, 2015 13:57
How we use GruntJS with patternlab and TYPO3 TemplaVoilà
@alienlebarge
alienlebarge / README.md
Last active August 29, 2015 13:57
Rendering test with SASS files using bl.ocks.org

This is a basic rendering test with CSS. I've tried to render a basic HTML page with some sass styling. Since there is no online sass to css converter or JavaScript (like LESS), I have to convert your sass manually and then add the css file in your gist.

Some ideas

@alienlebarge
alienlebarge / README.md
Last active August 29, 2015 13:58
Weird resizing for thumbnails images with height and weight attributes in IE

Weird resizing for thumbnails images with height and weight attributes in IE

This gist refers to the issue #13251 for twbs/bootstrap

To reproduce the bug, open this link in IE8 and resize the browser window.

  • The problem: img has width and height attributes
  • The quickfix (in this case): add .thumbnails > img {width: inherit;} (or even better add this to the .img-responsive mixin)
@alienlebarge
alienlebarge / README.md
Last active August 29, 2015 14:01
Install ruby gem from behind a proxy

Install ruby gem from behind a proxy

Command to use with Squideman.

SET HTTP_PROXY=http://localhost:3128 $gem_name

or

gem install --http-proxy http://localhost:3128 $gem_name

@alienlebarge
alienlebarge / index.html
Created August 21, 2014 07:39
Jekyll prerender page for prebrowsing purpose
{% if paginator %}
<!-- Prerender pagination page -->
{% if paginator.previous_page %}
{% if paginator.previous_page == 1 %}
<link rel="prerender" href="http://blog.alienlebarge.ch">
{% else %}
<link rel="prerender" href="http://blog.alienlebarge.ch/page{{ paginator.previous_page }}">
{% endif %}
{% endif %}
{% if paginator.next_page %}
@alienlebarge
alienlebarge / Gruntfile.js
Created December 30, 2014 13:21
Running Gulp with Grunt (This is a joke)
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
shell: {
patternlab: {
command: "gulp"
}
@alienlebarge
alienlebarge / agencesweb.md
Last active August 29, 2015 14:15
Agences web romande
@alienlebarge
alienlebarge / banner.ts
Created February 27, 2015 12:31
Banner slide ressource
# lib.banner = TEXT
# lib.banner.value = <img class="img-responsive" src="typo3conf/ext/vdtmplportailmusees/src/public/assets/img/header-moose.jpg" alt="cover image">
lib.banner = IMAGE
lib.banner {
file {
import.data = levelmedia: -1,slide
import = uploads/media/
# La première image liée dans les propriétés de la page
import.listNum = 0
@alienlebarge
alienlebarge / style.css
Created March 25, 2015 12:32
A more readable Jira - This is an extremly raw stylesheet
@import url(http://fonts.googleapis.com/css?family=Roboto);
@import url(http://fonts.googleapis.com/css?family=Merriweather);
@import url(http://fonts.googleapis.com/css?family=Inconsolata);
body {
/* Improve legibility */
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}