Skip to content

Instantly share code, notes, and snippets.

View ydrea's full-sized avatar
💭
innit :D

Andrija Vranic ydrea

💭
innit :D
View GitHub Profile
@ydrea
ydrea / App.js
Created June 22, 2025 20:18 — forked from jamesgpearce/App.js
Modified version of TinyBase Expo example to demonstrate synchronization. This updates https://github.com/expo/examples/tree/master/with-tinybase
import { useCallback, useState } from 'react';
import * as SQLite from 'expo-sqlite';
import {
FlatList,
Platform,
StyleSheet,
Text,
TextInput,
TouchableOpacity,
} from 'react-native';
@ydrea
ydrea / thumbnailer.py
Created May 21, 2025 00:30 — forked from aarongundel/thumbnailer.py
Arches Simple Thumbnailer
from PIL import Image
import filetype
class SimpleThumbnailer(ThumbnailGenerator):
IMAGES = (
'png', 'jpg', 'jpeg', 'jpe', 'gif', 'bmp', 'dib', 'dcx',
'eps', 'ps', 'im', 'pcd', 'pcx', 'pbm', 'pbm', 'ppm',
'psd', 'tif', 'tiff', 'xbm', 'xpm',
)
def make_thumbnail(self, inputfile_path, outputfile_path, **kwargs):