Skip to content

Instantly share code, notes, and snippets.

View ghankerson's full-sized avatar

Geoff Hankerson ghankerson

  • American Public Media
View GitHub Profile
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /Users/ghankerson/Sites/arw
ServerName arw.geoff
<Directory /Users/ghankerson/Sites/arw>
AllowOverride All
Options FollowSymLinks
DirectoryIndex index.html index.php
Require all granted
</Directory>
/**
* @name nowplaying_ws.js
*/
/**
* @name APMNowPlaying
* @description protoype pattern to allow
* @class
*/
var APMNowPlaying = function(websocketurl) {
$(this.config.audio).apmplayer_ui({
playables: [{
"identifier": "adswizz_mpr_news",
"title": "MPR News",
"description": "live stream",
"flash_server_url": "rtmp://wowza.stream.publicradio.org/news/",
"flash_file_path": "news.stream",
"http_file_path": "http://nis.stream.publicradio.org/nis.mp3",
"buffer_time": 6,
"type": "live_audio"
#!/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
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)
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;
describe("Isolation", function() {
var obj = {
save: function() {
this.getQuantity();
},
getQuantity: function () {
console.log('returning 5');
return 5;
}
};
(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');
(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",
<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>