Skip to content

Instantly share code, notes, and snippets.

@fafaradesigns
fafaradesigns / gist:cc1f6cc2d1a10b750376
Last active August 29, 2015 14:09
SCSS: Susy Shaded
//visuals
//-------------------
$pink: rgb(255, 0, 128);
html {
background: white;
}
header, nav, article, footer {
@fafaradesigns
fafaradesigns / sticky-footer.scss
Last active August 29, 2015 14:09
SCSS: compass sticky-footer
@fafaradesigns
fafaradesigns / JQUERY:active-nav
Created November 18, 2014 18:21
JQUERY:active-nav
$(function() {
//highlight the current nav
$("#home a:contains('Home')").parent().addClass('active');
$("#who_we_are a:contains('Who we are')").parent().addClass('active');
$("#what_we_offer a:contains('What we offer')").parent().addClass('active');
$("#contact a:contains('Contact us')").parent().addClass('active');
@fafaradesigns
fafaradesigns / JQUERY:AppendtoPagewrap
Created November 18, 2014 20:17
JQUERY:AppendtoPageWrap
$("#add").on("click", function() {
$("<p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.</p>").appendTo(".page-wrap");
});
@fafaradesigns
fafaradesigns / livereload.php
Created November 19, 2014 07:49
WORDPRESS:Livereload Script
<?php
function pwcc_live_reload_js() {
?>
<script>document.write('<script src="http://' + (location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1"></' + 'script>')</script>
<?php
}
add_action('wp_footer', 'pwcc_live_reload_js')
@fafaradesigns
fafaradesigns / GULP: browsersyc ex1
Created November 19, 2014 08:32
GULP: browsersyc ex1
var gulp = require('gulp');
var sass = require('gulp-sass');
var browserSync = require('browser-sync');
var paths = {
scss: './sass/*.scss'
};
gulp.task('sass', function () {
gulp.src('scss/app.scss')
@fafaradesigns
fafaradesigns / .gitignore
Last active November 25, 2016 13:34
WebDev:Gitignore File
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
*.sass-cache*
@fafaradesigns
fafaradesigns / .jshintrc
Created November 19, 2014 09:44
SCRIPT:.jshintrc File
{
"bitwise": true,
"eqeqeq": true,
"eqnull": true,
"immed": true,
"newcap": true,
"esnext": true,
"camelcase": true,
"latedef": true,
"noarg": true,
@fafaradesigns
fafaradesigns / index.html
Created November 19, 2014 21:52
HTML:Dummy Worpdress with Sidebar HTML:Dummy Worpdress with Sidebar
<!DOCTYPE html>
<!--
Sidebar Template
Author: Chris Da Sie [http://chrisdasie.com]
Version: 2.0.6
URL: https://getwirefy.com
Apache License: v2.0. http://www.apache.org/licenses/LICENSE-2.0
-->
<!-- HTML5 Mobile Boilerplate -->
@fafaradesigns
fafaradesigns / index.html
Last active August 29, 2015 14:10
HTML:Content Sample short
<header class="page-row">
<h1>Site Title</h1>
<style>
html,
body { height: 100%; }
body {
display: table;
width: 100%;