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
$('article:last').after(more, function () { | |
D.attachBehaviors($('#more')); | |
}); |
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
$('#sltds-social_link_that_dont_suck').clone().appendTo('#node_content', function() { | |
Drupal.attachBehaviors($('#node_content')); | |
} | |
).attr('id', 'sltds-2'); |
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
<?php | |
get_header(); | |
$lede_id = get_option('home_lede'); | |
die($lede_id); | |
?> | |
<h1>You Suck!</h1> | |
<header> | |
<div class="left"> | |
Lede Image here |
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
<div class="panel-pane pane-hosts" id="hosts"> | |
<h2 class="pane-title"><span>Marketplace Hosts</span> | |
</h2> | |
<div class="pane-content"> | |
<div class="host_wrapper kai-on-monday-host-sidebar-block"> | |
<img class="lazy" width="112" src="http://dev.marketplace.org/sites/default/files/styles/112x112/public/20140305_arcade_fire_33_0.jpg?itok=h4Cb8D1V" height="112" alt="" style="display: inline;"> | |
<h3><a href="/topics/kai-monday">Kai Ryssdal</a></h3> | |
<ul> |
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 ($, D, W, undefined){ | |
// Module pattern see http://learn.jquery.com/code-organization/concepts/ | |
var dapp = (function (){ | |
var config= { | |
dataRef : new Firebase("https://boiling-fire-4861.firebaseio.com/"), | |
childDataRef : new Firebase("https://boiling-fire-4861.firebaseio.com/" + "loggedUsers"), | |
disqusdiv : "disqus_thread", | |
sociallogin: "#sociallogin", | |
logout: '.logout', | |
DISQUS_SECRET : "eMN5rithDmeqq20bqM0QbTXHUsAhoCy5HhQ2rngHC6pkXwYBL23xMrTsBBVvlIta", |
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($){ | |
Drupal.behaviors.popupplayer = { | |
attach: function(context, settings) { | |
$(".views-field-title span").click( function(e){ | |
// Get track info from the views row | |
var identifier = $(this).parents('.views-row').find('.views-field-field-file-podcast .field-content').text(); | |
var description = $(this).parents('.views-row').find('.views-field-field-lede .field-content').html(); | |
var title = $(this).parents('.views-row').find('.views-field-title .field-content a').text(); | |
var link = $(this).parents('.views-row').find('.views-field-title .field-content a').attr('href'); |
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
describe("Isolation", function() { | |
var obj = { | |
save: function() { | |
this.getQuantity(); | |
}, | |
getQuantity: function () { | |
console.log('returning 5'); | |
return 5; | |
} | |
}; |
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 disqus_shortname; | |
// Module pattern see http://learn.jquery.com/code-organization/concepts/ | |
window.Dapp = function (){ | |
'use strict'; | |
var commentUser; | |
var thread_id; | |
var comment_count; | |
var comments_closed = false; | |
var dconfig = {}; | |
var that = this; |
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
if ($(this.e.currentTarget).hasClass('npr')) { | |
playable = APMPlayerFactory.getPlayable({ | |
title: title, | |
identifier: 'npr:' + $(this.e.currentTarget).data('nprid'), | |
flash_server_url: $(this.e.currentTarget).data('flashserverurl'), | |
flash_file_path: $(this.e.currentTarget).data('flashfilepath'), | |
http_file_path: $(this.e.currentTarget).data('mp3'), | |
type: 'audio' | |
}); | | |
} else { //from APM (not from NPR) |
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
#!/bin/bash | |
ENV='dev' | |
SITE='XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX' | |
while [ 1 ] | |
do | |
rsync --partial -rlvz --size-only --ipv4 --progress -e 'ssh -p 2222' ./files/* $ENV.$SITE@appserver.$ENV.$SITE.drush.in:files/ | |
if [ "$?" = "0" ] ; then | |
echo "rsync completed normally" | |
exit |
OlderNewer