Skip to content

Instantly share code, notes, and snippets.

View muhleder's full-sized avatar

Mark Muhleder muhleder

View GitHub Profile
@muhleder
muhleder / gist:10749ba741b477297f0a9b47161a89fe
Created September 14, 2023 06:16
Build script to add clang compilers to codemagic VM for building flutter apps with rive on windows
wget https://aka.ms/vs/17/release/vs_community.exe;
$process = Start-Process -FilePath vs_community.exe -ArgumentList "modify", "--productId", "Microsoft.VisualStudio.Product.Community", "--channelId", "VisualStudio.17.Release", " --add", " Microsoft.VisualStudio.Component.VC.Llvm.ClangToolset", "Microsoft.VisualStudio.Component.VC.Llvm.Clang", "--passive", "--wait" -Wait -PassThru;
Write-Output $process.ExitCode;
@muhleder
muhleder / chart_memory_leak.dart
Created January 3, 2020 20:13
Chart memory leak example
// Flutter code sample for Scaffold
// This example shows a [Scaffold] with an [AppBar], a [BottomAppBar] and a
// [FloatingActionButton]. The [body] is a [Text] placed in a [Center] in order
// to center the text within the [Scaffold]. The [FloatingActionButton] is
// centered and docked within the [BottomAppBar] using
// [FloatingActionButtonLocation.centerDocked]. The [FloatingActionButton] is
// connected to a callback that increments a counter.
//
// ![](https://flutter.github.io/assets-for-api-docs/assets/material/scaffold_bottom_app_bar.png)
@muhleder
muhleder / main.dart
Created January 3, 2020 15:58
Memory leak demo
// Flutter code sample for Scaffold
// This example shows a [Scaffold] with an [AppBar], a [BottomAppBar] and a
// [FloatingActionButton]. The [body] is a [Text] placed in a [Center] in order
// to center the text within the [Scaffold]. The [FloatingActionButton] is
// centered and docked within the [BottomAppBar] using
// [FloatingActionButtonLocation.centerDocked]. The [FloatingActionButton] is
// connected to a callback that increments a counter.
//
// ![](https://flutter.github.io/assets-for-api-docs/assets/material/scaffold_bottom_app_bar.png)
@muhleder
muhleder / basicauth.js
Created May 13, 2012 09:56
Basic auth for Meteor
Meteor.startup(function() {
var require = __meteor_bootstrap__.require
var connect = require('connect')
__meteor_bootstrap__.app.use(connect.basicAuth('username', 'password'))
var basicAuth = __meteor_bootstrap__.app.stack.pop()
__meteor_bootstrap__.app.stack.unshift(basicAuth)
})