Skip to content

Instantly share code, notes, and snippets.

View ericandrewlewis's full-sized avatar

Eric Lewis ericandrewlewis

View GitHub Profile
This file has been truncated, but you can view the full file.
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
require('./leaflet');
require('./mapbox');
},{"./leaflet":2,"./mapbox":3}],2:[function(require,module,exports){
window.L = require('leaflet/dist/leaflet-src');
},{"leaflet/dist/leaflet-src":6}],3:[function(require,module,exports){
// Hardcode image path, because Leaflet's autodetection
// fails, because mapbox.js is not named leaflet.js
commit 53cd7e1fe94addb4c67bd69d96ac32fe40c270ef
Author: Eric Andrew Lewis <eric.andrew.lewis@gmail.com>
Date: Wed Feb 19 11:39:03 2014 -0500
Hide newsletter signup form; add overlay for it
diff --git a/themes/times-journeys/css/base.css b/themes/times-journeys/css/base.css
index c7068c2..2f0dabc 100644
--- a/themes/times-journeys/css/base.css
+++ b/themes/times-journeys/css/base.css
@ericandrewlewis
ericandrewlewis / gist:9280241
Created February 28, 2014 21:24
Bayco Jewelry Collections JSON data
[
{
title: 'Chic Collection',
description: 'Finding the right melange of colors is the skill of a master artist. The Chic Collection jewels are a kaleidoscope of beautiful sapphires in every shade Mother Nature intended, creating a happy and vibrant look.',
slides: [
{
imageURL: 'http://bayco.com/beta/wp-content/themes/bayco/temp-images/jewelry-main-slide.jpg',
slideType: 'main'
},
{
window.TJMain = window.TJMain || {};
window.TJMain.singleJourney = (function(window, document, $, undefined){
'use strict';
// initiate object
var singleJourney = {};
var tj = window.TJMain;
singleJourney.init = function() {
// Add all event listeners in init.
/**
* Bayco
* http://www.bayco.com/
*
* Copyright (c) 2014 Fifty Fifty
* Licensed under the GPLv2+ license.
*/
(function($) {
var bayco = window.bayco || {};
/**
* When an activity post is created, parse the content for a semantic date,
* extract it, and store the UNIX timestamp of it as activity meta.
*
* @param string $content
* @param int $user_id
* @param int $activity_id
*/
function expext_parse_and_add_date_metadata_to_activity_post( $content, $user_id, $activity_id ) {
$date_info = date_parse( $content );
<?php
/**
* Return a human-readable date (e.g. April 4, 1968) given a unix timestamp.
*/
function unix_timestamp_to_human_readable_date( $unix_timestamp ) {
return date( 'F dS Y', $unix_timestamp );
}
/**
* Output the date of an expectation.
<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = 977693495;
var google_conversion_language = "en";
var google_conversion_format = "3";
var google_conversion_color = "ffffff";
var google_conversion_label = "XjOyCMGqgggQt9aZ0gM";
var google_conversion_value = 0;
var google_remarketing_only = false;
/* ]]> */
<?php
// ...<snip>...
<span class="milestone"><# wp.hooks.applyFilters('milestonerevs.metadata', data) #></span>
// ...<snip>...
add_action( 'admin_footer-revision.php', 'wpse151630_test' );
function wpse151630_test() {
?>
<script>
Error: Package: php54-pdo-5.4.11-1.ius.el6.x86_64 (centos6-dev-ius-x86)
Requires: php54-common = 5.4.11-1.ius.el6
Installed: php54-common-5.4.25-1.ius.el6.x86_64 (@centos6-dev-ius-x86)
php54-common = 5.4.25-1.ius.el6
php54-common = 5.4.25-1.ius.el6
Available: php54-common-5.4.7-2.ius.el6.x86_64 (centos6-dev-ius-x86)
php54-common = 5.4.7-2.ius.el6
Available: php54-common-5.4.8-1.ius.el6.x86_64 (centos6-dev-ius-x86)
php54-common = 5.4.8-1.ius.el6
Available: php54-common-5.4.11-1.ius.el6.x86_64 (centos6-dev-ius-x86)