Skip to content

Instantly share code, notes, and snippets.

Ben Edmunds benedmunds

Block or report user

Report or block benedmunds

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Result
<li class="gig ng-scope">
<div class="month september-2014">
<div class="info-container">
<div class="info">
<div class="calendar">
<div class="monthtop ng-binding">Apr
<img ng-src="/dist/img/flags/GB.png" src="/dist/img/flags/GB.png">
View gist:10500084
$scope.$on('ngRepeatFinished', function(ngRepeatFinishedEvent) {
//grab the classes
var classes = $(this).attr('class').split(/\s+/);
for (var i=0; i<classes.length; i++) {
//only check against the date classes
if (/\w*-\d{4}/.test(classes[i])) {
//show the first matching element
View gist:2a84a0410f81aea33281
* ----------------------------------------------------
* Info:
* ----------------------------------------------------
* @author Tim Joosten
* @package Ion Auth 3
* Description: The english language file for Ion Auth 3
View gist:b6f532e331cf9577aaec
public function onData($data, MessageInterface $message = null, callable $onMessage, callable $onControl = null, $context = null) {
$overflow = '';
$onControl ?: $this->noop;
$message ?: $message = $this->newMessage();
$prevFrame = null;
$frameCount = count($message);
if ($frameCount > 0) {
$frame = $message[$frameCount - 1];
if ($frame->isCoalesced()) {
View gist:6b2d4a148233334e6865
$(element).find('input[type=radio], input[type=checkbox]').each(function()
var tIndexChangeHandler = function()
var selected_element = $(this);
var tab = $(selected_element).closest('div[data-role=page]');
var idx = Number($(tab).attr('t_index'));
View sendNotification.php
require_once(__DIR__ . '/vendor/autoload.php');
use PhpAmqpLib\Connection\AMQPStreamConnection;
use PhpAmqpLib\Message\AMQPMessage;
//connect to rabbit server
$connection = new AMQPStreamConnection(
View processNotifications.js
function processCalendarData(cb) {
}, 1000);
var amqp = require('amqplib/callback_api');
You can’t perform that action at this time.