Skip to content

Instantly share code, notes, and snippets.

View lukemadera's full-sized avatar

Luke Madera lukemadera

View GitHub Profile
@lukemadera
lukemadera / index.html
Last active November 29, 2021 18:35
Flutter cards
<!DOCTYPE html>
<html>
<head>
<!--
If you are serving your web app in a path other than the root, change the
href value below to reflect the base path you are serving from.
The path provided below has to start and end with a slash "/" in order for
it to work correctly.
@lukemadera
lukemadera / index.html
Created November 29, 2021 18:00
flutter dartpad 2
<!DOCTYPE html>
<html>
<head>
<!--
If you are serving your web app in a path other than the root, change the
href value below to reflect the base path you are serving from.
The path provided below has to start and end with a slash "/" in order for
it to work correctly.
For more details:
* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base
@lukemadera
lukemadera / IosPostBuild.cs
Created March 4, 2020 19:25
Unity WebRTC Video Chat iOS build fix.
/** watch out: UnityEditor.iOS.Xcode is missing if iOS builds are not installed
*
* There is also no reliable compiler flag to check for this that works
* on 2017 LTS and new versions. We have two options:
*
* a) Check if UNITY_IOS is set
* * Means it must be available thus there is no risk of errors
* if ios unity is not installed
* * builds will fail to run the post processing step and generate
* invalid iOS builds IF the user builds the iOS version without
@lukemadera
lukemadera / docker-create-swarm.sh
Created September 25, 2015 15:56
jwilder/nginx-proxy using Compose + Swarm + Machine attempt 1
#!/bin/bash
set -e
if [ -z "$DIGITALOCEAN_ACCESS_TOKEN" ]; then
echo >&2 "ERROR: You must export DIGITALOCEAN_ACCESS_TOKEN"
exit 1
fi
docker pull swarm > /dev/null