Skip to content

Instantly share code, notes, and snippets.

View rileyhawk1417's full-sized avatar
😁
grinding

Sean Riley Hawkins rileyhawk1417

😁
grinding
  • Victoria Falls, Zimbabwe
  • 05:37 (UTC +02:00)
View GitHub Profile
@rileyhawk1417
rileyhawk1417 / appVersions.xml
Last active November 4, 2023 17:39
Testing the upgrader package
?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:sparkle="http://www.andymatuschak.org/xml-namespaces/sparkle">
<channel>
<title>Debt Now App - Appcast</title>
<item>
<title>Version 3.0.0</title>
<description>Minor updates and improvements.</description>
<pubDate>Sun, 29 Dec 2018 12:00:00 +0000</pubDate>
<enclosure url="https://play.google.com/store/apps/details?id=com.moonwink.treasury" sparkle:version="3.0" sparkle:os="android" />
</item>
@rileyhawk1417
rileyhawk1417 / bulletNodeList_suggestion.dart
Created September 15, 2023 11:33
Bulleted List node suggestion for handling children
//NOTE: Helper functions
String childNode(String node) {
String tmpWord = '';
final spacesRegex = RegExp(r'(\s+)- ');
const spacesPerLevel = 2;
int level = 1;
if (node.startsWith(' ') && node.contains('- ')) {
final spaces = spacesRegex.firstMatch(node)!.group(1)!.length;
level = (spaces / spacesPerLevel).ceil();
class UploadImageMenu extends StatefulWidget {
const UploadImageMenu({
Key? key,
this.backgroundColor = Colors.white,
this.headerColor = Colors.black,
this.width = 300,
required this.onSubmitted,
required this.onUpload,
}) : super(key: key);
Caused by:
process didn't exit successfully: `D:\a\appflowy\appflowy\frontend\rust-lib\target\release\build\openssl-sys-9ed1bd5f6aad83eb\build-script-main` (exit code: 101)
--- stdout
cargo:rustc-cfg=const_fn
cargo:rustc-cfg=openssl
cargo:rerun-if-env-changed=AARCH64_LINUX_ANDROID_OPENSSL_NO_VENDOR
AARCH64_LINUX_ANDROID_OPENSSL_NO_VENDOR unset
cargo:rerun-if-env-changed=OPENSSL_NO_VENDOR
OPENSSL_NO_VENDOR unset
cargo:rerun-if-env-changed=CC_aarch64-linux-android
@rileyhawk1417
rileyhawk1417 / color.dart
Created December 12, 2021 15:02
Color file for flutter-quill
import 'dart:ui';
import 'package:flutter/material.dart';
Color stringToColor(String? s) {
switch (s) {
case 'transparent':
return Colors.transparent;
case 'black':
return Colors.black;
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">