Skip to content

Instantly share code, notes, and snippets.

View douglasdeodato's full-sized avatar

douglasdeodato

  • Dublin - Ireland
  • 18:21 (UTC +01:00)
View GitHub Profile
class http {
define apache::loadmodule () {
exec { "/usr/sbin/a2enmod $name" :
unless => "/bin/readlink -e /etc/apache2/mods-enabled/${name}.load",
notify => Service[apache2]
}
}
apache::loadmodule{"rewrite":}
module.exports = function (grunt) {
var config = {};
//all tasks that must be loaded.
var tasks = [
'grunt-contrib-watch'
,'grunt-contrib-concat'
,'grunt-contrib-uglify'
,'grunt-contrib-sass'
,'grunt-contrib-htmlmin'
@douglasdeodato
douglasdeodato / SassMeister-input.scss
Created June 3, 2016 14:06
Generated by SassMeister.com.
// ----
// Sass (v3.4.21)
// Compass (v1.0.3)
// ----
$grid-gutter-width: 30px;
.modal-body {
.row {
margin: 0 -#{$grid-gutter-width/2};
@douglasdeodato
douglasdeodato / Sass-Palette-output.css
Last active June 13, 2016 11:43
Generated by SassMeister.com.
element {
border: 1px solid #bd7575;
}
@douglasdeodato
douglasdeodato / SassMeister-input.scss
Created June 13, 2016 13:33
Generated by SassMeister.com.
// ----
// Sass (v3.4.21)
// Compass (v1.0.3)
// ----
// http://sass-lang.com/documentation/Sass/Script/Functions.html#rgba-instance_method
// - (Sass::Script::Value::Color) rgba($color, $alpha)
// Sets the opacity of an existing color.
@douglasdeodato
douglasdeodato / sass-arithmetic-functions.css
Last active July 12, 2016 11:23
sass arithmetic functions
.testing {
width: 20px;
}
.arithmetic-functions {
division: 1;
multiply: 100;
decrease: 0;
add: 20;
}
@douglasdeodato
douglasdeodato / SassMeister-input.scss
Created August 29, 2016 11:05
Generated by SassMeister.com.
// ----
// Sass (v3.4.21)
// Compass (v1.0.3)
// ----
$grey: #000;
// Call the color palette modifiers in color values
@function palette($palette, $shade: 'base') {
@return map-get(map-get($color-palettes, $palette), $shade);
#!/bin/sh
# more info in: https://help.github.com/articles/changing-author-info/
#include this file inside your .git repository and run it
git filter-branch --env-filter '
OLD_EMAIL="your-old-email@example.com"
CORRECT_NAME="Your Correct Name"
CORRECT_EMAIL="your-correct-email@example.com"
if [ "$GIT_COMMITTER_EMAIL" = "$OLD_EMAIL" ]
grunt docs
Running "symlink:docs" (symlink) task
>> Destination docs/dist/css already exists.
>> Destination docs/dist/js already exists.
>> Created 0 symbolic links.
Running "jekyll:serve" (jekyll) task
`jekyll serve --source docs --destination docs/_site --watch` was initiated.
Started Jekyll web server on http://localhost:4000. Waiting...
@douglasdeodato
douglasdeodato / SassMeister-input.scss
Created January 30, 2017 15:46
Generated by SassMeister.com.
// ----
// Sass (v3.4.21)
// Compass (v1.0.3)
// ----
$silver :silver;
$yellow: yellow;
$green: green;