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
| db.profile.find({ns:'school2.students'}).sort({millis:-1}).pretty() |
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 (ng) { | |
| 'use strict'; | |
| ng.module('jquery', ['jquery.directives']); | |
| var jqdir = ng.module('jquery.directives', []); | |
| function tokenInput($parse, $timeout) { | |
| return { | |
| restrict: 'A', | |
| require: '?ngModel', |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| $photoName = $_GET['photo']; | |
| $s3ImgUri = S3_IMG_URL . $photoName; | |
| $localImg = IMAGES . 'email_image' . DS . $photoName; | |
| // Create the image in local | |
| copy($s3ImgUri, $localImg); |
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
| scope.resetImageSearch = function () { | |
| scope.advancedImageSearch = {}; | |
| $timeout(function () { | |
| element.find('.filter-panel select').trigger('chosen:updated'); | |
| }); | |
| }; | |
| scope.$watch('advancedImageSearch', function (newVal) { | |
| if (Object.keys(newVal).length) { | |
| scope.getApiCall(); |
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
| duAsync4 = (dir,cb) -> | |
| total = 0 | |
| file_counter = 1 #starts at one because of the initial directory | |
| async_running = 0 | |
| again = (current_dir) -> | |
| fs.lstat current_dir, (err, stat) -> | |
| if err then file_counter--; return | |
| if stat.isFile() | |
| file_counter-- |
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 readDir(start, callback) { | |
| // Use lstat to resolve symlink if we are passed a symlink | |
| fs.lstat(start, function(err, stat) { | |
| if(err) { | |
| return callback(err); | |
| } | |
| var found = {dirs: [], files: []}, | |
| total = 0, | |
| processed = 0; | |
| function isDir(abspath) { |
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 if (!$this->request->is('mobile')) { ?> | |
| <a href="<?php echo $host.'/events/trace_share/'.$event_email_id.'/?media=ig&share_url='.$ig_share. '&image_url='.$share_url; ?>" | |
| style="margin: 0;padding: 0;color: #2BA6CB;"><img | |
| alt="Share on Instagram" | |
| src="http://www.pixta.com.au/img/email_image/def-ig-share.png" | |
| style="display: block;margin: 0;padding: 0;font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;max-width: 100%;"></a> | |
| <?php } ?> |
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 tasks = [{ | |
| name: 'asdf', | |
| status: 'scheduled' | |
| },{ | |
| name: 'asdf1', | |
| status: 'open' | |
| },{ | |
| name: 'asdf2', | |
| status: 'scheduled' | |
| },{ |
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 dns = require('dns'), | |
| timer; | |
| var exec = require('child_process').exec; | |
| function checkInternet() { | |
| console.log('Checking internet again at ' + getTime()); | |
| dns.resolve('www.google.com', function(err, c) { | |
| if (err || c[0] === '204.13.161.111') { | |
| console.log(err); | |
| console.log('Internet connection is not available at ' + getTime()); |