Skip to content

Instantly share code, notes, and snippets.

View schneidan's full-sized avatar

Daniel J. Schneider schneidan

View GitHub Profile
@schneidan
schneidan / dp-whitelabel-template.html
Last active January 6, 2016 22:16
A scrappy whitelabel template for DenverPost.com-esque pages (Bartertown look, rev 3.0)
<!-- ################################################################################################ -->
<!-- -->
<!-- THIS FILE IS FAR FROM COMPLETE -- DON'T USE IT WITHOUT FIXING EVERYTHING!! -->
<!-- -->
<!-- Things to fix: -->
<!-- Everything in the meta twitter: tags! -->
<!-- Everything in the Facebook og: meta tags -->
<!-- All the other meta tags! -->
<!-- The Title! -->
<!-- The Omniture tags!
# Aliases muthafucka
alias cdmj='cd ~/code/cannabist'
alias cdsd='cd ~/Sites/schneidan/wp-content/themes/schneidan'
alias cdef='cd ~/Sites/expired-film-day/wp-content/themes/expi'
alias cdsdd='cd ~/Sites/schneidan/wp-content/themes/sd17'
alias cdtk='cd ~/Sites/the-know/wp-content/themes/reverb'
alias cdgt='cd ~/Sites/gametracker'
alias cdelex='cd ~/code/election'
alias cdS='cd ~/Sites'
alias cdG='cd ~/Google\ Drive'
<?php
/*/
Plugin Name: Denver Post RSS feed additions
Plugin URI: www.denverpost.com
Description: Alters Wordpress RSS feeds to include additional information used for Blogs Rotator & Simplepie Widgets, and Stubs. Set feeds to 'excerpt' and you can still get the full-text feeds with blog.url/?feed=full.
Version: 0.7b
Author: Daniel J. Schneider
Author URI: schneidan.com
/*/
@schneidan
schneidan / how-big.html
Last active December 28, 2015 07:09
The "How big is the wildfire?" comparator developed by Joe Murphy and Daniel J. Schneider during the 2012 Colorado wildfire season.
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script language="javascript" type="text/javascript">
document.write('<style type="text/css"> \n\
td.region3, td.region6, td.region7, td.region14 { display:none!important; } \n\
td.region2b { width:985px; } \n\
td.articleBox { padding:10px!important; } \n\
</style>');
document.write('<style type="text/css"> \n\
.fire { width:960px;min-height:90px;clear:both; } \n\
@schneidan
schneidan / gas-bus-checker.html
Created November 14, 2013 05:23
A simple calculator to help decide whether it's more efficient to take the bus than drive. (for Dave Burdick, 2013)
<script type="text/javascript" src="http://extras.denverpost.com/media/js/jquery-min.js"></script>
<style type="text/css">
#gasbusparent {
width:100%;
text-align:center;
}
#gasbus {
width:330px;
border:1px #ebebeb solid;
@schneidan
schneidan / theater-shooting-victims-bar.html
Created October 31, 2013 23:13
HTML and CSS for the "Remembering the victims..." bar at the top of the Denver Post's Aurora theater shooting page at denverpost.com/theatershooting.
<script type="text/javascript" src="http://extras.denverpost.com/media/js/jquery-min.js"></script>
<link type='text/css' rel='stylesheet' href='theater-shooting-victims.css'>
<!-- <link type='text/css' rel='stylesheet' href='http://extras.mnginteractive.com/live/css/site36/theater-shooting-victims.css'> -->
<div id="shootingfeature">
<div id="victimnav">
<div class="victimphoto" name="boxblunk" style="background:url('http://extras.mnginteractive.com/live/media/site36/2012/0724/20120724_124353_jonathan-blunk-81.jpg');">
@schneidan
schneidan / campaign-tracker-how-to-update
Created October 31, 2013 04:21
Campaign tracker 2008-2012 -- KML file and instructions for updating. (by Joe Murphy)
How to update the 2012 campaign visit tracker
The candidate tracker map is made up of three components
Parent file: DenverPost/media/maps/kml/visits-vs-wins-colorado-2008-2012.kml
2008 results: DenverPost/media/maps/kml/2008-election-results.kml
2012 visits: DenverPost/media/maps/kml/campaigning-in-colorado-07102012
To update the candidate tracker map that you see on the Obama and Romney pages, you only need to update one file. You can download the most recent version of the file from the FTP server and save it on your desktop: Denver Post/media/maps/kml/campaigning-in-colorado-07102012.kml (July 10, 2012 was the creation date. Do not change this in the file name unless you change it in the parent KML file.)
-------------------------------------------------------------------------------------------------------------------
To add a new point to the map, you need to add a "placemark" to the KML file. Every placemark ends in <placemark> and ends in </placemark>. For your convenience, I've put the visits in chro
@schneidan
schneidan / titanic-section-page-css
Created October 31, 2013 03:09
This is the CSS for the Denver Post's 100-year-later Titanic section at denverpost.com/titanic
/* [file] redesign_sectionpage.css */
/* css for SECTION PAGE LAYOUT */
body.bodyStyle {
background-color: #0A1F40;
}
div#masthead_section {
height:auto!important;
@schneidan
schneidan / dp.com-media-mini-rotator
Created October 31, 2013 02:51
Allows manual curation of a rotating list of multimedia items for special sections.
<script src="http://extras.denverpost.com/media/js/jquery-min.js"></script>
<script type="text/javascript">
document.write('<style type="text/css"> \n\
#ssrotate { width:300px; height:270px; overflow:hidden; background:#f5f5f5; color:#222; position:relative; border:1px solid #bbb; -moz-border-radius:5px; border-radius:5px; display:block; margin: 10px 0 5px; } \n\
#ssrotate .rotating-item { width:298px; height:324px; margin-bottom:20px; display: none; position: absolute; top: 0; left: 0; } \n\
#ssrotate .rotating-item img { width:280px; height:200px; margin:5px 10px 10px; } \n\
#ssrotate .rotating-item h2 { font-family:Georgia,Times,"Times New Roman",serif; font-size:14px; color:#568; width:280px; font-weight:600; padding:0; margin:0 10px 5px; } \n\
#ssrotate .rotating-item h2.ssover { font-family:Georgia,Times,"Times New Roman",serif; font-size:12px; text-transform:uppercase; color:#568; width:280px; font-weight:600; padding:0; margin:10px 10px 0; } \n\
</style>');
@schneidan
schneidan / NGPS-article-pagination-examples
Created October 31, 2013 02:48
An early example of code designed to create manually-paginated stories from multiple NGPS articles.
//---------------------------------//
// PAGINATION FOR ARTICLE BOTTOM //
//---------------------------------//
<ul>
<hr size="1">
<center>
<a href="http://www.denverpost.com/diego/ci_16370328">PREVIOUS</a> |