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 'dart:async'; | |
class Deferrer { | |
final int milliseconds; | |
Future? _next; | |
Deferrer(this.milliseconds); | |
void defer(void Function() toDo) { | |
Future? next_; |
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 'dart:async'; | |
import 'package:flutter/widgets.dart'; | |
class FutureOrBuilder<T> extends StatelessWidget { | |
final FutureOr<T?> future; | |
final Widget Function(BuildContext context, AsyncSnapshot<T?> snapshot) builder; | |
const FutureOrBuilder({super.key, required this.builder, required this.future}); |
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 'dart:math'; | |
import 'dart:typed_data'; | |
import 'dart:ui' as ui; | |
import 'package:flutter/material.dart'; | |
class ColorPicker extends StatefulWidget { | |
final ValueNotifier<Color?> color; | |
const ColorPicker({super.key, required this.color}); |
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 'package:sqflite_common_ffi/sqflite_ffi.dart'; | |
import '../../map/utils/geojson.dart'; | |
import 'objs.dart'; | |
class Event extends DbObject { | |
String? asset; | |
int? surface; | |
int? regna; | |
int? event; |
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; |
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; |
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; |
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> { |
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; |
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); |
NewerOlder