Skip to content

Instantly share code, notes, and snippets.

Avatar

Richard Gil richardegil

View GitHub Profile
View sticky-footer.css
@richardegil
richardegil / .gitignore
Last active Aug 27, 2015
example .gitignore file
View .gitignore
twentyfifteen/
twentyfourteen/
twentythirteen/
/index.php
.DS_Store
node_modules/
package.json
View gist:9c513f8819e8ef25480c
// Gulp Requires
var gulp = require('gulp'),
plumber = require('gulp-plumber'),
// through = require('through-pipes'),
gutil = require('gulp-util'),
notify = require('gulp-notify'),
sass = require('gulp-sass'),
autoprefixer = require('gulp-autoprefixer'),
minifycss = require('gulp-minify-css'),
concat = require('gulp-concat'),
View gulpfile.js
var gulp = require("gulp");
var minifycss = require('gulp-minify-css');
var autoprefixer = require('gulp-autoprefixer');
var notify = require('gulp-notify');
var sass = require('gulp-ruby-sass');
var imagemin = require('gulp-imagemin');
var cache = require('gulp-cache');
gulp.task('css', function() {
return gulp.src('sass/style.scss')
View for redux
<?php
include (get_template_directory() . '/library/includes/universal/utms-superinclude-topnav.php');
?>
View gist:5526395
BASE:
<?php
include (get_template_directory() . '/includes/universal/utms-superinclude-topnav.php');
?>
View Ben Folds Five Poster - Cityscape Generator
// Ben Folds Five Poster - Cityscape Generator by Brendan Dawes
// http://brendandawes.com/projects/benfoldsfive/
// Requires library from http://toxiclibs.org
import toxi.color.*;
import toxi.util.datatypes.*;
import processing.pdf.*;
final color BACKGROUND_COLOR = color(240);
View gist:5066952
// search text
$key = wp_specialchars($s, 1);
if ( have_posts() ) :
<p>The following pages contain your search term, <strong>"<?php echo $key;?>"</strong>.</p>
// date comparison
// if date value is greater than yesterday's value
if( strtotime($date) > time()-86400 ){
//do stuff
}
View gist:4687274
/* Display Background URLs */
function sidebar_feature( $post ) {
// Use nonce for verification
wp_nonce_field( plugin_basename( __FILE__ ), 'myplugin_noncename' );
$sidebar_feature = get_post_meta($post->ID, 'sidebar_feature', true);
?>
You can’t perform that action at this time.