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 com.agroneo.web; | |
public class Since { | |
public static String since(long durationInit, String lng, int level) { | |
double DAYS_PER_YEAR = 365.24225D; | |
double M_PER_SECOND = 1000D; | |
double M_PER_MINUTE = 60D * M_PER_SECOND; | |
double M_PER_HOUR = 60D * M_PER_MINUTE; |
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
var copy = function () { | |
var article = document.getElementById('article'); | |
if (article != null) { | |
article.addEventListener('copy', function (e) { | |
e.preventDefault(); | |
try { | |
var selection = window.getSelection(); | |
e.clipboardData.setData('text/plain', $('<div/>').html(selection + "").text() + "\n\n" + 'Source: ' + document.location.href); | |
e.clipboardData.setData('text/html', selection + '<br /><br />Source: <a href="' + document.location.href + '">' + document.title + '</a>'); |
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 live.page.base.blobstore.utils; | |
import com.mongodb.client.MongoCursor; | |
import com.mongodb.client.model.Filters; | |
import com.mongodb.client.model.Sorts; | |
import live.page.base.db.Db; | |
import live.page.base.utils.Json; | |
import live.page.base.utils.Settings; | |
import org.bson.conversions.Bson; | |
import org.bson.types.Binary; |
NewerOlder