This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require("gulp"); | |
var rename = require("gulp-rename"); | |
gulp.task('default', function() { | |
return gulp.src("./*.md") | |
.pipe(rename(function(path) { | |
path.basename = path.basename.replace(/(\D*\d{4}-\D*\d{2}-\D*\d{2})(-)/, "$1."); | |
})) | |
.pipe(gulp.dest("./renamed")); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require('gulp'), | |
sass = require('gulp-sass'), | |
autoprefixer = require('gulp-autoprefixer'), | |
minifycss = require('gulp-minify-css'), | |
jshint = require('gulp-jshint'), | |
uglify = require('gulp-uglify'), | |
imagemin = require('gulp-imagemin'), | |
livereload = require('gulp-livereload'), | |
phpServer = require('php-built-in-server'), | |
scsslint = require('gulp-scsslint'), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// Sass (v3.4.9) | |
// Compass (v1.0.1) | |
// ---- | |
$purple: #7049A3; | |
// Turn rgba values to rgb values | |
@function rgba2rgb($color, $bg : 255) { | |
$a: alpha($color); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function($){ var props = ['Width', 'Height'], prop; | |
while (prop = props.pop()) { | |
(function (natural, prop) { | |
$.fn[natural] = (natural in new Image()) ? | |
function () { | |
return this[0][natural]; | |
} : | |
function () { | |
var | |
node = this[0], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var rex = /<img[^>]+src="?([^"\s]+)"?[^>]*\/>/g; | |
for (var i = 0; i < count; i++) { | |
var content = obj[i].content, | |
img = content.match(rex); | |
var results = rex.exec(content); | |
if (results != null) { | |
var source = results[1]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
podcast: /assets/podcasts/short.mp3 | |
title: Finding Creative Inspiration | |
tags: | |
- rad | |
- new | |
- awesome | |
--- | |
Today we discuss the importance of the global economy in our desktop jobs. How Squidword may just be onto something and why its important to always wear a towel around your head when entering and exiting public rest areas. |
NewerOlder