Skip to content

Instantly share code, notes, and snippets.

View iamcarrico's full-sized avatar

Ian J. Carrico iamcarrico

View GitHub Profile
@iamcarrico
iamcarrico / local.settings.php
Created November 30, 2012 04:17
A local settings file for your db info
<?php
$databases = array (
'default' =>
array (
'default' =>
array (
'database' => 'db_name',
'username' => 'db_pass',
'password' => 'db_password',
@iamcarrico
iamcarrico / SassMeister-input.scss
Created October 17, 2013 19:47
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.1)
// Compass (v0.13.alpha.7)
// ----
$base-font-size: 16px;
@function em($px, $base: $base-font-size) {
@return ($px / $base) * 1em;
}
@iamcarrico
iamcarrico / gist:9744777
Created March 24, 2014 17:17
A proper goddamn comment
/**
* Short description.
*
* A longer, multi-line description.
*
* @param string $name
* A description of your variable
* @param int $count (default: 0)
*
* @return boolean
var gulp = require('gulp');
var paths = require('compass-options').dirs();
var compass = require('gulp-compass');
var minifyCSS = require('gulp-minify-css');
var prefix = require('gulp-autoprefixer');
var rename = require('gulp-rename');
gulp.task('sass', function() {
return gulp.src(paths.sass + '/**/*.scss')
.pipe(compass({
@iamcarrico
iamcarrico / SassMeister-input-HTML.html
Created July 7, 2014 21:05
Generated by SassMeister.com.
<div class="block">
<div class="block__element">Stuff</div>
<div class="block__element--modifier">Red Stuff</div>
<div class="block__element--modifier block__element--and-another">And Another</div>
</div>
@iamcarrico
iamcarrico / your_module.info
Created July 16, 2014 19:50
Silly way to add a redirect
name = Your module name
description = Just adds that incredibly silly mobile redirect code.
core = 7.x
version = 7.x-1.0
@iamcarrico
iamcarrico / gulpfile.js
Created July 21, 2014 14:43
Sample Gulp Sass compile
// Compile Our Sass
gulp.task('sass', function() {
browserSync.notify('<span style="color: grey">Running:</span> Sass compiling');
return gulp.src(paths.sass)
.pipe(sass({
bundleExec: true,
style: 'expanded',
onError: browserSync.notify
}))
.pipe(prefix("last 2 versions", "> 1%"))
gulp.task('sass', function() {
browserSync.notify('<span style="color: grey">Running:</span> Sass compiling');
return gulp.src(paths.sass)
.pipe(sass({
bundleExec: true,
style: 'expanded',
onError: browserSync.notify
}))
.pipe(prefix("last 2 versions", "> 1%"))
.pipe(gulp.dest('_src/css'))
@iamcarrico
iamcarrico / SassMeister-input.scss
Created July 24, 2014 00:04
Generated by SassMeister.com.
// ----
// Sass (v3.3.10)
// Compass (v1.0.0.alpha.20)
// Breakpoint (v2.4.2)
// Singularity.gs (v1.2.1)
// ----
@import "breakpoint";
@import "singularitygs";
@iamcarrico
iamcarrico / SassMeister-input.scss
Created July 30, 2014 21:23
Generated by SassMeister.com.
// ----
// Sass (v3.3.12)
// Compass (v1.0.0.alpha.21)
// ----
@import "compass";
.foo {
-webkit-filter: invert(100%);