Skip to content

Instantly share code, notes, and snippets.

View passy's full-sized avatar
😷
Wear a mask.

Pascal Hartig passy

😷
Wear a mask.
View GitHub Profile
rust/web-view/webview-examples is 📦 v0.1.0 via 🦀 v1.73.0
❯ cargo run --example minimal
Compiling libc v0.2.154
Compiling once_cell v1.19.0
Compiling cfg-if v1.0.0
Compiling version_check v0.9.4
Compiling proc-macro2 v1.0.82
Compiling log v0.4.21
Compiling unicode-ident v1.0.12
Compiling memchr v2.7.2
@passy
passy / mp3chapters.py
Created November 30, 2023 11:00
Export mp3 chapter markers into an Adobe-Audition compatible CSV
import subprocess
import re
import csv
import sys
# Function to convert seconds to "MM:SS.sss" format
def format_time(seconds):
minutes = int(seconds // 60)
seconds %= 60
return "{:02d}:{:06.3f}".format(minutes, seconds)
# Maintainer: Pascal Hartig <[email protected]>
pkgname=dust-bin
pkgver="0.4.41"
pkgrel=1
pkgdesc="A more intuitive version of du in rust"
arch=('x86_64')
url="https://github.com/bootandy/dust"
license=('Apache')
depends=()
source=("https://github.com/bootandy/dust/releases/download/v0.4.41/dust-v${pkgver}-x86_64-unknown-linux-musl.tar.gz")
~/D/react-native    ./gradlew :ReactAndroid:tasks 9.3s  Tue 26 Nov 14:58:29 2019
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
-----------
* Where:
Build file '/Users/realpassy/Downloads/react-native/ReactAndroid/build.gradle' line: 101
* What went wrong:
/home/realpassy/local/fbsource/xplat/sonar/android/src/main/java/com/facebook/flipper/plugins/inspector/descriptors/ViewDescriptor.java:44: error: package com.facebook.stetho.common.android does not exist
import com.facebook.stetho.common.android.ResourcesUtil;
^
/home/realpassy/local/fbsource/xplat/sonar/android/src/main/java/com/facebook/flipper/plugins/inspector/descriptors/ActivityDescriptor.java:17: error: package com.facebook.stetho.common.android does not exist
import com.facebook.stetho.common.android.FragmentActivityAccessor;
^
/home/realpassy/local/fbsource/xplat/sonar/android/src/main/java/com/facebook/flipper/plugins/inspector/descriptors/ActivityDescriptor.java:18: error: package com.facebook.stetho.common.android does not exist
import com.facebook.stetho.common.android.FragmentCompat;
^
/home/realpassy/local/fbsource/xplat/sonar/android/src/main/java/com/facebook/flipper/plu
Error ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ src/plugins/network/ManageMockResponsePanel.js:22:9
Cannot import the type Route as a value. Use import type instead.
19│ ContextMenu,
20│ } from 'flipper';
21│
22│ import {Route} from './types';
23│
24│ import {MockResponseDetails} from './MockResponseDetails';
$ unzip -l android/build/outputs/aar/sonar-release.aar | rg jni
0 02-01-1980 00:00 jni/
0 02-01-1980 00:00 jni/arm64-v8a/
1005520 02-01-1980 00:00 jni/arm64-v8a/libc++_shared.so
276584 02-01-1980 00:00 jni/arm64-v8a/libevent.so
182056 02-01-1980 00:00 jni/arm64-v8a/libevent_core.so
276584 02-01-1980 00:00 jni/arm64-v8a/libevent_extra.so
3062960 02-01-1980 00:00 jni/arm64-v8a/libfolly.so
161680 02-01-1980 00:00 jni/arm64-v8a/libglog.so
961288 02-01-1980 00:00 jni/arm64-v8a/librsocket.so
@passy
passy / collapse.hs
Last active February 3, 2018 19:27
data Tree a = Empty | Node a (Tree a) (Tree a)
deriving Show
type IntTree = Tree Int
collapse :: IntTree -> [Int]
collapse t =
case t of
Empty -> [-1]
Node a Empty r -> a : -1 : collapse r
data Tree a = Empty | Node a (Tree a) (Tree a)
deriving Show
type IntTree = Tree Int
collapse :: IntTree -> [Int]
collapse t =
case t of
Empty -> [-1]
Node a Empty r -> a : -1 : collapse r
#!/usr/bin/env python
import sys
import argparse
parser = argparse.ArgumentParser()
parser.add_argument("file")
args = parser.parse_args()