Skip to content

Instantly share code, notes, and snippets.

View niihelium's full-sized avatar
👽
Beam me up, Scotty

Nikita Unkovsky niihelium

👽
Beam me up, Scotty
View GitHub Profile
@niihelium
niihelium / Program.cs
Last active January 8, 2023 11:43
Example Effects Manager in C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Timers;
namespace EffectsManager
{
class Program
{
static void Main(string[] args)
fun <B, T : B, R : B> Flow<T>.exceptionTransform(errorHandler: suspend (exception: Exception) -> R): Flow<B> {
return flow {
var fromDownstream = false
try {
collect { value ->
try {
emit(value)
} catch (e: Exception) {
fromDownstream = true
throw e
Privacy policy
YaPlace will record camera sensor and microphone data, which is used for the purpose of taking photos and recording videos.
YaPlace requires permission to "access photos, media and files on your devices", as this permission is required for Android to save resultant photos and videos to your device.
Location permission is required for geotagging of photos. If enabled, your location is encoded in the saved image and video files (and it is only used for this purpose).
Internet acess is used for communicating with our database server to recognise objects on taken pictures.
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "https://solus-project.com/standard/pisi-spec.dtd">
<PISI>
<Source>
<Name>teamviewer</Name>
<Homepage>https://www.teamviewer.com/</Homepage>
<Packager>
<Name>Automated Packaging</Name>
<Email>noreply@solus-project.com</Email>
</Packager>
module func !Для того, чтобы где-то содержать функцию - объявим модуль
implicit none !как обычно
contains !модуль содержит, используется один раз за модуль
function deg(number,power) result(product) !обявим функцию
real*8, intent(in) :: number, power !входные данные, intent(in) указывает,
! что эти переменные мы не имеем права
! менять их внутри функции
real*8 product !переменная должна называтсья так же как и в объявлении
product = number**power !дальше пишем что функция делает