This file contains 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. |
This file contains 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 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 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 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 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 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
// Alert if there are any stuck jobs | |
let stuck_jobs = Jobs.find(‘_id’, { | |
status: {$in: [‘ready’, ‘running’]} | |
}, {fields: { | |
type: 1, | |
data: 1 | |
}}).fetch(); | |
if (stuck_jobs.length > 0) | |
Raven.log(3, ‘There are stuck jobs’, stuck_jobs); |
This file contains 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
{ // A View item | |
"_id" : "abc123_view_id", | |
"page" : "/some/page", | |
"site" : "www.example.com", | |
"bounce" : false, | |
"token" : "7a13d56", | |
"end" : ISODate("2017-03-23T18:29:22.137Z"), | |
"start" : ISODate("2017-03-23T18:21:22.156Z"), | |
"browser" : false, | |
"session" : true, |
This file contains 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 extend(objects) { | |
var result = {}; | |
for (var i = 0; i < objects.length; i++) { | |
var object = objects[i]; | |
for (var key1 in object) { | |
if (result.hasOwnProperty(key1)) { | |
for (var key2 in object[key1]) { | |
result[key1][key2] = object[key1][key2]; |
This file contains 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
{# Let folks know this wasn't a manual configuration #} | |
# This configuration file was generated with mechanic. | |
{% macro server(site, settings, options) %} | |
include "{{ settings.overrides }}/{{ site.shortname }}/top"; | |
server { | |
gzip on; |
OlderNewer