Skip to content

Instantly share code, notes, and snippets.

View ThomasAunvik's full-sized avatar
💼
Working...

Thomas Aunvik ThomasAunvik

💼
Working...
View GitHub Profile
@ThomasAunvik
ThomasAunvik / geojson.dart
Last active January 21, 2025 13:31
Why not work
import 'dart:convert';
void main() {
final data = {
"data": {
"statistics": {
"activitiesMap": [
{
"startTime": "2025-01-02T07:11:09+00:00",
"location": {"lat": 0, "lon": 0},
@ThomasAunvik
ThomasAunvik / build.yml
Created October 27, 2024 16:48
Build Action
name: Build and Publish
on:
push:
branches:
- release
- staging
workflow_dispatch:
inputs:
version-code:
description: "Optional. Build number to use. Overrides default of GitHub run number."
#!/bin/bash +x
deactivate () {
if [ -n "${_OLD_PATH:-}" ] ; then
export PATH="${_OLD_PATH}"
unset _OLD_PATH
fi
if [ -n "${_OLD_VIRTUAL_PS1:-}" ] ; then
PS1="${_OLD_VIRTUAL_PS1}"
import 'package:flutter/material.dart';
import 'package:flutter_hooks/flutter_hooks.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends HookWidget {
const MyApp({super.key});
This file has been truncated, but you can view the full file.
2/16/2023 10:48:53 PM : ==========================================================
2/16/2023 10:48:53 PM : INFO - Started Async Task - UID: kiBoBYfqvTvXJGZ
2/16/2023 10:48:53 PM : INFO - Input: F:\Video\My Great Game\2023-02-16 18-16-07 - My Great Game - My Great Capture\My Great Game - My Great Capture.mp4
2/16/2023 10:48:53 PM : INFO - Output: F:\Video\finalbarline2.mkv
2/16/2023 10:48:53 PM : INFO - Temp Folder: F:\Video\Temp\NEAV1E\kiBoBYfqvTvXJGZ
2/16/2023 10:48:53 PM : ==========================================================
2/16/2023 10:48:53 PM : DEBUG - GetFrameCount()
2/16/2023 10:48:53 PM : INFO - GetFrameCount() => 628324
2/16/2023 10:48:53 PM : DEBUG - ExtractSubtitles.Extract()
2/16/2023 10:48:53 PM : WARN - ExtractSubtitles.Extract() => File already exist - Resuming?
@ThomasAunvik
ThomasAunvik / server.js
Created June 13, 2022 11:34
RunKit Server Code
var express = require("@runkit/runkit/express-endpoint/1.0.0");
var { graphqlHTTP } = require('express-graphql');
var { graphql, buildSchema } = require('graphql');
var cors = require('cors')
// Construct a schema, using GraphQL schema language
var schema = buildSchema(`
"""
The GenericScalar scalar type represents a generic
GraphQL scalar value that could be:
[27/05/2021 23:03:31 - INFO] Discord Presence activated
[27/05/2021 23:03:32 - INFO] Successfully connected to Discord
[27/05/2021 23:03:32 - DEBUG] Loading git extension
[27/05/2021 23:03:32 - TRACE] VSCode language id: typescript
[27/05/2021 23:03:32 - DEBUG] Discord Presence being sent to discord:
{
"details": "Editing index.ts",
"startTimestamp": 1622149412057,
"largeImageKey": "typescript",
"largeImageText": "Editing a TYPESCRIPT file",
==> Making package: powershell 7.0.3-1 (ma. 26. okt. 2020 kl. 11.24 +0100)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Installing missing dependencies...
resolving dependencies...
looking for conflicting packages...
Packages (5) dotnet-host-3.1.8.sdk108-1 dotnet-runtime-3.1.8.sdk108-1 dotnet-targeting-pack-3.1.8.sdk108-1 netstandard-targeting-pack-3.1.8.sdk108-1 dotnet-sdk-3.1.8.sdk108-1
Total Installed Size: 255,57 MiB
2020-06-24 04:00:07 INFO mdnet.base.ServerHandler - Pinging the control server
2020-06-24 04:00:07 INFO mdnet.base.MangaDexClient - Server settings received: ServerSettings(imageServer=https://s2.mangadex.org, latestBuild=10, url=https://15vdakprz1v6r.2pwrp3y5gjp22.mangadex.network:44300, compromised=false, tls=null)
2020-06-24 04:00:52 INFO mdnet.base.ServerHandler - Pinging the control server
2020-06-24 04:00:52 INFO mdnet.base.MangaDexClient - Server settings received: ServerSettings(imageServer=https://s2.mangadex.org, latestBuild=10, url=https://15vdakprz1v6r.2pwrp3y5gjp22.mangadex.network:44300, compromised=false, tls=null)
2020-06-24 04:01:37 INFO mdnet.base.ServerHandler - Pinging the control server
2020-06-24 04:01:37 INFO mdnet.base.MangaDexClient - Server settings received: ServerSettings(imageServer=https://s2.mangadex.org, latestBuild=10, url=https://15vdakprz1v6r.2pwrp3y5gjp22.mangadex.network:44300, compromised=false, tls=null)
2020-06-24 04:02:23 INFO mdnet.base.ServerHandler - Pinging
Error: Argument for '--target' option must be: 'es3', 'es5', 'es6', 'es2015', 'es2016', 'es2017', 'es2018', 'esnext'.
Argument for '--lib' option must be: 'es5', 'es6', 'es2015', 'es7', 'es2016', 'es2017', 'es2018', 'esnext', 'dom', 'dom.iterable', 'webworker', 'scripthost', 'es2015.core', 'es2015.collection', 'es2015.generator', 'es2015.iterable', 'es2015.promise', 'es2015.proxy', 'es2015.reflect', 'es2015.symbol', 'es2015.symbol.wellknown', 'es2016.array.include', 'es2017.object', 'es2017.sharedmemory', 'es2017.string', 'es2017.intl', 'es2017.typedarrays', 'es2018.intl', 'es2018.promise', 'es2018.regexp', 'esnext.array', 'esnext.asynciterable'.
Argument for '--lib' option must be: 'es5', 'es6', 'es2015', 'es7', 'es2016', 'es2017', 'es2018', 'esnext', 'dom', 'dom.iterable', 'webworker', 'scripthost', 'es2015.core', 'es2015.collection', 'es2015.generator', 'es2015.iterable', 'es2015.promise', 'es2015.proxy', 'es2015.reflect', 'es2015.symbol', 'es2015.symbol.wellknown', 'es2016.array.include', 'es2017.object',