This file contains 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 | |
$_LW->REGISTERED_APPS['time_formatter']=array( | |
'title'=>'Time Formatter', | |
'handlers'=>array('onWidgetFormat'), | |
); | |
class LiveWhaleApplicationTimeFormatter { | |
public function onWidgetFormat($type, $handler, $variables) { // alter widget variables |
This file contains 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 | |
$_LW->REGISTERED_APPS['short_summary']=array( | |
'title'=>'Short Summary', | |
'handlers'=>array('onWidgetFormat'), | |
); | |
class LiveWhaleApplicationShortSummary { | |
public function onWidgetFormat($type, $handler, $variables) { // alter widget variables |
This file contains 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 | |
$_LW->REGISTERED_APPS['community_public_group'] = array( // configure this application module | |
'title' => 'Community Public Group', | |
'handlers' => array( | |
'onLoad', | |
'onLoginSuccess', | |
'onLoginFailure', | |
'onSubnavs', | |
'onManagerQuery', |
This file contains 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
// Generated by CoffeeScript 1.4.0 | |
(function() { | |
var PreProcessor; | |
PreProcessor = (function() { | |
/* | |
from: https://github.com/sockjs/sockjs-node/commit/e0e7113f0f8bd8e5fea25e1eb2a8b1fe1413da2c | |
from: https://github.com/sockjs/sockjs-client/blob/a571c94e051de7af489b4fc541194956e1d171fe/lib/utils.js | |
*/ |
This file contains 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
... | |
<xphp content="true"> | |
<if var="profiles_edit_link"/> | |
<content> | |
<div class="profiles_edit_link"> | |
<xphp var="profiles_edit_link" inner="true"/> | |
</div> | |
</content> | |
</xphp> |
This file contains 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 | |
/* | |
This is a sample application designed to demonstrate how to add an additional custom field to a backend editor. | |
The example provided adds a "Dress Code" field to the existing event editor in LiveWhale. To add a custom field to the news editor, for example, follow the same example but change all references from events to news below. | |
*/ |
This file contains 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
# Inside the repo root | |
$ mkdir svg-collected | |
$ find . -type f -iname '*_48px.svg' -exec cp {} ~/Desktop/material-design-icons-2.0/svg-collected/ \; | |
# Rename the Filenames | |
$ for i in *_48px.svg; do mv -- "$i" "${i/_48px/}"; done | |
$ for i in ic_*; do mv -- "$i" "${i/ic_/}"; done | |
$ for i in *_*; do mv -- "$i" "${i/_/ }"; done |
This file contains 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
# Services # | |
############ | |
*.sassc | |
.sass-cache | |
# Generic # | |
########### | |
/log/* | |
/tmp/* | |
/pids/* |
This file contains 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
# GET /entries/:hashtag/receiver | |
# POST /entries/:hashtag/receiver.json | |
def receiver | |
if request.method == 'GET' and !params['hub.challenge'].blank? and params['hub.mode'] == 'subscribe' | |
if !params['hub.verify_token'].blank? | |
game = Game.find_by_token(params['hub.verify_token']) | |
if !game.nil? and game.hashtag == params[:hashtag] | |
render :status => 200, :text => params['hub.challenge'] | |
else | |
InstagaMe::Log.rails "bad token match for #{params['hub.verify_token']}; returning status 406" |
This file contains 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 | |
$_LW->REGISTERED_APPS['public_notifier']=array( | |
'title'=>'PublicNotifier', | |
'handlers' => array('onAfterPublicSubmission') | |
); | |
class LiveWhaleApplicationPublicNotifier { | |
// These two arrays are for including the users and/or groups that |
OlderNewer