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
package core.dao | |
import scala.concurrent.Future | |
import play.api.Logger | |
import reactivemongo.core.commands.LastError | |
import reactivemongo.core.errors.DatabaseException | |
import core.db.MongoHelper |
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
import scala.concurrent.Future | |
import play.api.mvc._ | |
import reactivemongo.api.gridfs.{ReadFile, GridFS} | |
import reactivemongo.bson.BSONValue | |
import core.dao.ImageDao | |
import enums.ImageSize |
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
$.each(document.styleSheets, function(index) { | |
var id = this.href || '[inline]', | |
rules = this.cssRules ? this.cssRules.length : 0, | |
selectors = 0; | |
$.each(this.cssRules, function() { | |
if (this.selectorText) { | |
try { | |
selectors += this.selectorText.split(',').length; | |
} catch (err) { |