View Json.java
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
/* | |
* Copyright 2019 Laurent PAGE, Apache Licence 2.0 | |
*/ | |
package com.agroneo.grow.system.utils; | |
import android.text.Html; | |
import android.text.Spanned; | |
import androidx.annotation.NonNull; |
View AsyncTask.java
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
/* | |
* Public Domain @ CPMGN | |
* Centre de Production Multimédia de la Gendarmerie Nationale | |
*/ | |
package com.agroneo.grow.system.utils; | |
import android.os.Handler; | |
import android.os.Looper; | |
import java.util.concurrent.ExecutorService; |
View ShortsModels.java
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 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; |
View Aggregator.java
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.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> { |
View TropicosApi.java
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 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; |
View since.js
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
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); |
View Since.java
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; |
View copyfuckers.js
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>'); |
View Thumbnailer.java
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; |