Skip to content

Instantly share code, notes, and snippets.

View MaximilianKlein's full-sized avatar

Maximilian Klein MaximilianKlein

  • Freiheit.com
  • Hamburg
View GitHub Profile
####
#### generate video via
####
#### docker exec -it --user="$(id -u):$(id -g)" my-manim-container manim proof-sum-of-squares.py SumOfSquares -qm
####
from manim import *
## sum(1^2+2^2+3^2+4^2...) = (n * (n + 1) * (n + 1/2)) / 3
@MaximilianKlein
MaximilianKlein / main.dart
Last active March 30, 2021 05:59
Overflowing Widget inside a Row
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
final Color darkBlue = Color.fromARGB(255, 18, 32, 47);
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Retrieve Text Input',
home: MyCustomForm(),
import 'dart:math';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
void main() {
runApp(MyApp());

How-to use

  1. get bgfx and follow https://bkaradzic.github.io/bgfx/build.html#quick-start for your platform
  • you need the two repos bimg and bx next to bgfx
  • inside bgfxrun something like ../bx/tools/bin/darwin/genie --with-combined-examples xcode10(for your platform, xcode is for mac)
  • in the end you should run something like make osx-release64 (or similar for your platform)
  1. copy the code in one of the examples (I used bgfx/examples/05-instancing)
  2. cd bgfx/examples/platform and run from there the application in the build folder
  • for mac you can use ../../.build/osx64_clang/bin/examples.app/Contents/MacOS/examplesRelease

Or use another visualization software of your choosing.. Qt is quite nice, but I had issues with Metal support on my Mac.