Skip to content

Instantly share code, notes, and snippets.

View renoirb's full-sized avatar

Renoir Boulanger renoirb

View GitHub Profile
@renoirb
renoirb / dabblet.css
Created July 31, 2013 14:50
Renoir Signature 2
/**
* Renoir Signature 2
*/
@renoirb
renoirb / dabblet.css
Last active December 20, 2015 11:59
CSS Driven Flags for WebPlatform.org, by Lea Verou
/**
* CSS Driven Flags for WebPlatform.org, by Lea Verou
* See: http://docs.webplatform.org/w/load.php?debug=true&lang=en&modules=ext.rtlcite%7Cmediawiki.legacy.commonPrint%2Cshared%7Cskins.webplatform&only=styles&skin=webplatform&*
*/
@font-face {
font-family:'Gudea';
font-weight:normal;
src:url('http://docs.webplatform.org/w/skins/webplatform/fonts/gudea-regular-webfont.eot');
src:url('http://docs.webplatform.org/w/skins/webplatform/fonts/gudea-regular-webfont.eot?#iefix') format('embedded-opentype'), url('http://docs.webplatform.org/w/skins/webplatform/fonts/gudea-regular-webfont.woff') format('woff'), url('http://docs.webplatform.org/w/skins/webplatform/fonts/gudea-regular-webfont.ttf') format('truetype'), url('http://docs.webplatform.org/w/skins/webplatform/fonts/gudea-regular-webfont.svg#GudeaRegular') format('svg')
}
@renoirb
renoirb / dabblet.css
Created August 1, 2013 02:36
Browser support icons for WebPlatform.org, by Lea Verou
/**
* Browser support icons for WebPlatform.org, by Lea Verou
* see: http://docs.webplatform.org/w/load.php?debug=true&lang=en&modules=ext.rtlcite%7Cmediawiki.legacy.commonPrint%2Cshared%7Cskins.webplatform&only=styles&skin=webplatform&*
*/
@font-face {
font-family:'Gudea';
font-weight:normal;
src:url('http://docs.webplatform.org/w/skins/webplatform/fonts/gudea-regular-webfont.eot');
src:url('http://docs.webplatform.org/w/skins/webplatform/fonts/gudea-regular-webfont.eot?#iefix') format('embedded-opentype'), url('http://docs.webplatform.org/w/skins/webplatform/fonts/gudea-regular-webfont.woff') format('woff'), url('http://docs.webplatform.org/w/skins/webplatform/fonts/gudea-regular-webfont.ttf') format('truetype'), url('http://docs.webplatform.org/w/skins/webplatform/fonts/gudea-regular-webfont.svg#GudeaRegular') format('svg')
}
@renoirb
renoirb / FizzBuzz.md
Last active December 20, 2015 17:19
FizzBuzz or BarBaz implementations with multiples of 3 and 5. And misc. coding katas.

Rules

Iterate through numbers and when:

  • multiple of 3 to echo 'Bar' (or Fizz)
  • multiple of 5 to echo 'Baz' (or Buzz)
  • multiple of both 3 and 5 to echo 'BarBaz' (FizzBuzz)
  • otherwise, the number
@renoirb
renoirb / VagrantMultipleMachineWorkspace.md
Last active December 10, 2021 16:53
Using Vagrant with Salty-Vagrant and Multiple virtual machines

Description

Have you ever wanted to have a Vagrant workspace with more than one Virtual Machine, and managed by Salt Stack? I did, but the documentation is not all there yet.

I managed to make it work with the following, hope it will be useful.

To use

See the Complete salty-vagrant setup, but use the current Vagrantfile to have two machines.

@renoirb
renoirb / dabblet.css
Created August 21, 2013 14:03
Javascript example accessing table data
/**
* Javascript example accessing table data
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
@renoirb
renoirb / dabblet.css
Created August 26, 2013 00:07
Playing with event handlers
/* Playing with event handlers */
@renoirb
renoirb / dabblet.css
Created August 26, 2013 02:02
Listing all supported browser event names
/**
* Listing all supported browser event names
*/
padding:20px;
font-size: 1.2em;
@renoirb
renoirb / README.md
Last active October 4, 2017 01:05
Development environment overriding prod for manifest development

Workspace files:

workspace/salt-master/
  - Vagrantfile
  - etc/
    - salt/ 
      - master.d/
        - remotes.conf
 - NOTE: anything else that I want in ALL environments)
@renoirb
renoirb / composer.sls
Created August 28, 2013 16:27
Installing Composer using Salt Stack
get-composer:
cmd.run:
- name: 'CURL=`which curl`; $CURL -sS https://getcomposer.org/installer | php'
- unless: test -f /usr/local/bin/composer
- cwd: /root/
install-composer:
cmd.wait:
- name: mv /root/composer.phar /usr/local/bin/composer
- cwd: /root/