Skip to content

Instantly share code, notes, and snippets.

View adamstac's full-sized avatar

Adam Stacoviak adamstac

View GitHub Profile
@adamstac
adamstac / gist:8714911
Last active August 29, 2015 13:55
Fake users
@adamstac
adamstac / Gulefile.js
Last active August 29, 2015 13:56
Gulp.js for Sass and Compass
var gulp = require('gulp'),
sass = require('gulp-ruby-sass'),
notify = require("gulp-notify");
// Styles
gulp.task('styles', function () {
gulp.src('sass/*.scss')
.pipe(sass({ style: 'expanded', compass: true }))
.pipe(gulp.dest('css'))
.pipe(notify({ message: 'Styles task completed' }))
@adamstac
adamstac / .htaccess
Created February 28, 2014 05:56
.htaccess to 301 redirect an old domain to a new domain
RewriteEngine On
RewriteCond %{HTTP_HOST} ^olddomain.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.olddomain.com$
RewriteRule (.*)$ http://newdomain.com/$1 [R=301,L]
@adamstac
adamstac / gist:9328069
Created March 3, 2014 15:59
Sass command to specify a load-path and compile the Sass
sass --load-path ./path/to/load stylesheet.scss:path/to/stylesheet.css
@adamstac
adamstac / changelog-slack.md
Created February 9, 2015 01:21
Official Changelog Slack Theme

Copy and paste the following line of colors into the app's sidebar theme settings when in the Changelog Members room.

#2B2D2D,#4A4C4D,#428BCA,#FFFFFF,#428BCA,#FFFFFF,#67D044,#DE495B

@adamstac
adamstac / zonefile-example.txt
Created November 22, 2008 20:33
A zone file template for importing into GoDaddy Total DNS manager for speedy domain setups
; You will need to update line 7 with the proper CNAME given to you when setting your Google Apps account for this domain.
; A Records
@ 1800 IN A 222.222.22.222
; CNAME Records
xxxxxxxxxxxxxxxxxxxxxx 604800 IN CNAME google.com
docs 3600 IN CNAME ghs.google.com
calendar 3600 IN CNAME ghs.google.com
mail 3600 IN CNAME ghs.google.com
<div id='showroom'>
<div class='cars'>
<div class='car bentley'>
<a href="#"><img alt="Bentley" src="/images/app/showroom/bentley.png?1238903520" /></a>
</div>
<div class='car mini_cooper'>
<a href="#"><img alt="Mini_cooper" src="/images/app/showroom/mini_cooper.png?1238903538" /></a>
</div>
<div class='car land_rover'>
.person.vcard.clearfix
= image_tag("/images/photo.jpg", :class => "photo")
.info
%h3.fn First Last
%p.title Title
%p.email= mail_to "mail@domain.com"
.bio
%p The vitality of conceptual synergies is of supreme importance whenever single-loop learning strategies go wrong, in order to build a shared view of what can be improved. The components and priorities for the change program building flexibility through spreading knowledge and self-organization, empowerment of all personnel, not just key operatives. Exploitation of core competencies as an essential enabler, by adopting project appraisal through incremental cash flow analysis.
/* -----------------------------------------------------
/* -----------------------------------------------------
P.I.E. FLOAT CLEARING
www.positioniseverything.net/easyclearing.html
----------------------------------------------------- */
.clearfix:after { clear: both; content: "."; display: block; height: 0; visibility: hidden; }
/* Fixes IE/Mac */
.clearfix { display: inline-block; }
/* Hides from IE-mac \*/
// I'm on the outside
hostname = window.location.hostname
$("a[href^=http]")
.not("a[href*='" + hostname + "']")
.addClass('link external')
.attr('target', '_blank');