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 datetime | |
from dataclasses import dataclass | |
from typing import Optional, TypedDict, Union | |
from utils.cast import safe_int | |
from utils.convert import from_json, to_json | |
from utils.db import get | |
import models.queries | |
from language.feeds import repliers_badge |
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 'package:flutter/gestures.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:flutter/rendering.dart'; | |
import 'package:linkify/linkify.dart'; | |
/// Simplified variant of the [Text] widget which accepts both a primary string | |
/// for the raw text body, and a secondary `sentAt` string which annotates the | |
/// former with a timestamp, similar to how popular chat apps like WhatsApp |
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
-- This file defines pgTAP, a collection of functions for TAP-based unit | |
-- testing. It is distributed under the revised FreeBSD license. | |
-- | |
-- The home page for the pgTAP project is: | |
-- | |
-- http://pgtap.org/ | |
CREATE OR REPLACE FUNCTION pg_version() | |
RETURNS text AS 'SELECT current_setting(''server_version'')' | |
LANGUAGE SQL IMMUTABLE; |