This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
tagName=$(curl --silent "https://api.github.com/repos/pineappleEA/pineapple-src/releases/latest" | | |
grep '"tag_name":' | | |
sed -E 's/.*"([^"]+)".*/\1/') | |
curl -JLO "https://github.com/pineappleEA/pineapple-src/releases/download/${tagName}/Linux-Yuzu-${tagName}.AppImage" | |
mv -f "Linux-Yuzu-${tagName}.AppImage" $HOME/Applications/yuzu.AppImage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:math'; | |
import 'package:flutter/material.dart'; | |
import 'package:flutter/rendering.dart'; | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
@override |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:math' as math; | |
import 'package:flutter/rendering.dart'; | |
import 'package:flutter/widgets.dart'; | |
class SliverFlexibleHeader extends SingleChildRenderObjectWidget { | |
const SliverFlexibleHeader({ | |
Key key, | |
@required Widget child, | |
this.floating = false, // pinned as default |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:async'; | |
import 'dart:ffi'; | |
import 'dart:io'; | |
import 'dart:math'; | |
import 'package:moor/backends.dart'; | |
import 'package:moor/moor.dart'; | |
import 'package:moor_ffi/moor_ffi.dart'; | |
import 'package:moor_ffi/open_helper.dart'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build_web: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# cmake /path/to/src \ | |
# -GXcode \ # or Ninja | |
# -DQt5_DIR=/path/to/Qt/5.13.0/ios/lib/cmake/Qt5 \ | |
# -DCMAKE_SYSTEM_NAME=iOS \ | |
# -DCMAKE_OSX_DEPLOYMENT_TARGET=11 \ | |
# -DCMAKE_INSTALL_PREFIX=/usr/local/frameworks \ | |
# -DCMAKE_OSX_ARCHITECTURES="arm64" \ # arm64 for device, x86_64 for simulator (but x86_64 not in installed Qt5 ios static libs?) | |
cmake_minimum_required (VERSION 3.14 FATAL_ERROR) | |
project (Foo VERSION 1.0 LANGUAGES C CXX) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# A bash script to update a Cloudflare DNS A record with the external IP of the source machine | |
# Used to provide DDNS service for my home | |
# Needs the DNS record pre-creating on Cloudflare | |
# Proxy - uncomment and provide details if using a proxy | |
#export https_proxy=http://<proxyuser>:<proxypassword>@<proxyip>:<proxyport> | |
# Cloudflare zone is the zone which holds the record |