Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
webroot_symbolic_dir="webroot"
if [ $# != 1 ]; then
echo "This shell script deploys the specified build of this website by creating a symbolic link from the date-stamped build folder"
echo "to the new folder of ${webroot_symbolic_dir}/ . Please also note that this deployment script must be run within the directory"
echo "the symbolic link folder will be created in."
echo ""
echo "Usage: ./deploy.sh [folder to be deployed]"
echo ""
@yllus
yllus / gist:4162281
Created November 28, 2012 16:17
Sportsnet theme and SCSS/LESS conversion info

Sportsnet Theme Directory Details

  • The root directory of the sportnet theme templates is found at:

      sportsnet_theme/sportsnet/
    

    All the editable templates are found in this directory. Current templates of note are:

      * header.php (contains the stylesheet enqueues, and all the top header including the navsystem and scoreboard)
    
  • scoreboard.php (contains all the code for the scoreboard found in the main nav).
@yllus
yllus / gist:4437870
Last active December 10, 2015 12:58
Shortcode creation workflow

Shortcode Creation Workflow

Shortcodes are completed in order of when they are needed to complete a particular page template. For the purposes of this example, we will mimic the creation of the League Landing Page template, whose JIRA item exists at http://jira.rogersdigitalmedia.com/browse/SPNETREBRAND-414 .

  1. Check the list of sub-tasks for the JIRA item and find the items that start with "STATS:". Open the sub-task, where the Description of the task should list the shortcode used and a screenshot of a mockup of the properly themed shortcode's output.

  2. Click "Edit" on the sub-task and assign the sub-task to yourself. Next, update the sub-task's Description field by creating a simple point-form list of the pieces of information required by that shortcode, and an example of the returned info. To use the Team "Next Game" (NHL)

http://int-www.chatelaine.com/wp-admin/admin-ajax.php?action=get_newsletter_edit_info&newsletterid=38
PHP/WordPress Developer – Sportsnet.ca lead
Description:
Do you love mobile, streaming video, and online radio? Do you read your favorite magazines on your iPad or catch up on sports scores while on the go?
We are looking for talented individuals to join our exciting team at Rogers Digital Media. Our team is responsible for the apps, sites, and platforms behind some of Canada’s most influential media brands including Sportsnet, Citytv, Macleans, and 680 News.
We are currently seeking a developer to take the lead in developing Sportsnet.ca!
The site is built in WordPress and requires experience in creating themes and building custom plug-ins. Successful candidates will lead a team of 2 to 6 developers focused on Sportsnet and report directly to the Manager of Web Development. You will also work closely with the rest of our talented WordPress team who are designing and implementing a growing collection of sites to support our Television, Radio, and Publishing business.
Primary Function:
Work within the Ro

GRAMMY.ca (WordPress 3)

GRAMMY.ca (WordPress 3) was a project undertaken in 2013 to set create a Canadian website similar to grammy.com. The project was headed by project manager James Wood ( James.Wood@rci.rogers.com ).

Site Environment

Basic site environment:

// Workaround for a WordPress v3.5.2 change that blocks internal IP addresses (see http://core.trac.wordpress.org/ticket/24646 ).
add_filter( 'http_request_args', function( $args ) {
$args['reject_unsafe_urls'] = false;
return $args;
} );
<script type="text/javascript">
// SiteCatalyst Code
var analyticsProtocol = (("https:" == document.location.protocol) ? "https://" : "http://");
var analyticsHostServer = "analytics.rogersmedia.com";
</script>
<script type="text/javascript">
document.write(unescape("%3Cscript src='" + analyticsProtocol + analyticsHostServer + "/js/js_version/rdm_analytics_js_base.js' type='text/javascript'%3E%3C/script%3E"));
</script>
KA+6fdZDbp3qs/V4Hv5srWSnlYhYsjCS4Nsjucr0CgLL5R26uNvXlCYjl0TX7CzEYlz6XOQ+gVwnuRtUHgwosuY+O3uOWm0qAb/kNGekpwzlYNLnZWDLYxTbXodkEj2HkLu3ubjKzMYOUOIm1OV3DarCtVnr6lVRpJMCy45aTQk11yq7Wg/0X17oFLbez4f8kYe4JjI33vBf9wbPNuRTu06cm/3ehfV6JPD2OoJaAGYWTkeFTl98FewsfLWGYt6e4RR7FCGQFRf3cNXSQ/9zPWC3bf7h6C87DnZE6eC6LjG2OlCaXOkzafFLbNx3RwoKBQPoB6cZW45ClGjbAH6f2zb65Q+M9qZpZIE5GChAi3BcmneusEvpR2xy6q+ZdcV79rjKttfyvj+8DUGDKbSgtB4L8VI+MsJTBH2fuc2C38+dTbsodB1JWZFxQxOhzJuFF6ZFnVlJijO5btOQsvgASlUTpvQUWuaOOcQRspYK1UYvOBiwEsC7lUSmJnff8vWdMJFe8l+PkPP0xKvrBQQ6gjVcTLjBpyUHOw/8Q5remPcZAErdAsCz3FfwkF3nba/1Z5mv419RkUmhuYZBAaauipUB8yPAiPHeGdfw6GiDcjvEdxolukbHKO/9nJYSLs1MlUaUMQJBCK/fjfdaf+wfd1BXYubXIkad2SdE/GbTuJQ=
@yllus
yllus / gist:11191934
Created April 22, 2014 19:46
Analytics for MLB Live Tracker
<script type="text/javascript">
// SiteCatalyst Code
var analyticsProtocol = (("https:" == document.location.protocol) ? "https://" : "http://");
var analyticsHostServer = "analytics.rogersmedia.com";
</script>
<script type="text/javascript">
document.write(unescape("%3Cscript src='" + analyticsProtocol + analyticsHostServer + "/js/js_version/rdm_analytics_js_base.js' type='text/javascript'%3E%3C/script%3E"));
</script>