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
/** | |
* Renoir Signature 2 | |
*/ |
/** | |
* 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') | |
} |
/** | |
* 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') | |
} |
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.
See the Complete salty-vagrant setup, but use the current Vagrantfile
to have two machines.
/** | |
* Javascript example accessing table data | |
*/ | |
background: #f06; | |
background: linear-gradient(45deg, #f06, yellow); | |
min-height: 100%; |
/* Playing with event handlers */ |
/** | |
* Listing all supported browser event names | |
*/ | |
padding:20px; | |
font-size: 1.2em; |
Workspace files:
workspace/salt-master/
- Vagrantfile
- etc/
- salt/
- master.d/
- remotes.conf
- NOTE: anything else that I want in ALL environments)
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/ |