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 NewsWidget = (function(window, document, undefined){ | |
| // private | |
| var name = ‘Chris’; | |
| function createMember() { | |
| } | |
| // public | |
| return { |
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
| directives.directive('jbclock', function(){ | |
| return { | |
| scope: { | |
| startDate: '=', | |
| endDate: '=', | |
| }, | |
| link: function(scope, elm, attrs, controller) { | |
| JBCountDown({ | |
| secondsColor: attrs.secondsColor || "#ffdc50", |
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 mod; | |
| mod = angular.module('infinite-scroll', []); | |
| mod.directive('infiniteScroll', [ | |
| '$rootScope', '$timeout', function($rootScope, $timeout) { | |
| return { | |
| link: function(scope, elem, attrs) { | |
| var checkWhenEnabled, handler, scrollDistance, scrollEnabled; |
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
| <tr> | |
| <td | |
| class='pointer' | |
| ng-repeat='goal in main.goals' | |
| ng-click='loadCenter(goal)'> | |
| <div | |
| ng-class='{ | |
| "grass-light": goal.progress >= 100, | |
| "aqua-light": goal.progress < 100 | |
| }' |
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
| /** | |
| * Thanks to @philsturgeon for pointing this package | |
| * and Filipe Dobreira "https://github.com/filp" for creating it ^^ | |
| * Github : https://github.com/filp/whoops | |
| * How to: | |
| * Step 1 : Setup composer for Laravel 3 | |
| * Step 2 : Add this code to your application/start.php or anywhere u like | |
| * as long its after laravel registers its own error handlers | |
| * so NOT in : index.php, paths.php or laravel/** | |
| * |
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 | |
| ng-repeat='goal in userGoals[user.id]' | |
| ng-class='{ | |
| "grass-light": | |
| ( | |
| goal.recurrence == "daily" && | |
| goal.progress >= 100 && | |
| goal.timeframe.indexOf(main.day - 1) > -1 | |
| ) || | |
| ( |
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
| $('.redactor-editable').on('click', function(){ | |
| var target = $(this).data('target'), | |
| pk = $(this).data('pk'), | |
| name = $(this).data('name'), | |
| url = $(this).data('url'); | |
| if ($(this).html() == 'Save') { | |
| var value = $(target).getCode(); | |
| $(target).destroyEditor(); |
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
| public function get_check($queue_id = 0) | |
| { | |
| $options = array( | |
| 'queue_id' => $queue_id | |
| ); | |
| $status = Polling::forResult(function($options) { | |
| $queue = Queue::find($options['queue_id']); | |
| has_access($queue); |
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
| $chunks = array_chunk($mailgun_emails, 1000); | |
| foreach ($chunks as $chunk) { | |
| $emails = implode($chunk, ","); | |
| $ch = curl_init(); | |
| curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC); | |
| curl_setopt($ch, CURLOPT_USERPWD, 'api:frommyaccount'); | |
| curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); | |
| curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST'); |
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
| 'use strict'; | |
| angular.module('highcharts',[]) | |
| .directive('chart', function () { | |
| return { | |
| restrict: 'E', | |
| scope: { | |
| data: "=" | |
| }, |