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
.filter('fromUnix', function() { | |
return function (date) { | |
return moment.unix(date).format("DD/MM/YYYY"); | |
} | |
}) |
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
.filter('capitalize', function() { | |
return function(input, all) { | |
var reg = (all) ? /([^\W_]+[^\s-]*) */g : /([^\W_]+[^\s-]*)/; | |
return (!!input) ? input.replace(reg, function(txt){return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase();}) : ''; | |
} | |
}) |
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
.filter('placeholdEmpty', function($timeout) { | |
var incre = 0 | |
$timeout(function(){ | |
incre = 0; | |
}, 5000); | |
return function (input) { | |
if (!(input == undefined || input == null)) { | |
return input; | |
} else { | |
incre += 1; |
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
.item-to-align { | |
&:before { | |
content: ""; | |
display: inline-block; | |
height: 100%; | |
vertical-align: middle; | |
} | |
} |
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
Subscription.where([ | |
"user_id NOT IN (?) OR channel_id NOT IN (?)", | |
User.pluck("id"), | |
Channel.pluck("id") | |
]).destroy_all |
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
// Returns a list of emails for every page on the domains of the URL list | |
var EightyApp = function() { | |
this.processDocument = function(html, url, headers, status, jQuery) { | |
var app = this; | |
$ = jQuery; | |
var $html = app.parseHtml(html, $); | |
var object = {}; | |
// Get emails |