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
package fr.gendarmerie.docpro.settings.shortcuts; | |
import android.content.Context; | |
import android.content.Intent; | |
import android.content.pm.ShortcutInfo; | |
import android.graphics.drawable.Icon; | |
import androidx.annotation.Nullable; | |
import org.apache.commons.lang3.StringUtils; |
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
package live.page.base.db; | |
import com.mongodb.client.model.Accumulators; | |
import com.mongodb.client.model.BsonField; | |
import live.page.base.utils.Json; | |
import java.util.ArrayList; | |
import java.util.List; | |
public class Aggregator extends ArrayList<BsonField> { |
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
package gaia.mobot; | |
import com.google.gson.JsonArray; | |
import com.google.gson.JsonElement; | |
import com.google.gson.JsonObject; | |
import com.google.gson.JsonParser; | |
import com.mongodb.client.MongoCursor; | |
import com.mongodb.client.model.Accumulators; | |
import com.mongodb.client.model.Aggregates; | |
import com.mongodb.client.model.Filters; |
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 since(from, level) { | |
var durationInit = sys.time - new Date(from).getTime(); | |
var DAYS_PER_YEAR = 365.24225; | |
var M_PER_SECOND = 1000; | |
var M_PER_MINUTE = 60 * M_PER_SECOND; | |
var M_PER_HOUR = 60 * M_PER_MINUTE; | |
var M_PER_DAY = 24 * M_PER_HOUR; | |
var M_PER_WEEKS = 7 * M_PER_DAY; | |
var M_PER_MONTH = Math.floor((DAYS_PER_YEAR / 12) * M_PER_DAY); | |
var M_PER_YEAR = Math.floor(DAYS_PER_YEAR * M_PER_DAY); |
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
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 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 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 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
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