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
//! A not so great way to show an SVG in egui. | |
//! | |
//! This keeps the SVG as vector graphics to make it scalable, | |
//! but it has a few problems: | |
//! | |
//! * There is no anti-aliasing (would require MSAA backend) | |
//! * No support for gradients and text in SVG | |
//! * Has some bugs in it | |
//! * It is slow | |
//! * It is a lot of code |
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
# | |
# Building V8 for alpine is a real pain. We have to compile from source, because it has to be | |
# linked against musl, and we also have to recompile some of the build tools as the official | |
# build workflow tends to assume glibc by including vendored tools that link against it. | |
# | |
# The general strategy is this: | |
# | |
# 1. Build GN for alpine (this is a build dependency) | |
# 2. Use depot_tools to fetch the V8 source and dependencies (needs glibc) | |
# 3. Build V8 for alpine |
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
#include <Servo.h> | |
Servo myservo; | |
const int servoPin = 9; | |
const int buttonPin = 12; | |
const int ledPin = 13; | |
void setup() { | |
myservo.attach(servoPin); |
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 yaml | |
import yaml.constructor | |
try: | |
# included in standard lib from Python 2.7 | |
from collections import OrderedDict | |
except ImportError: | |
# try importing the backported drop-in replacement | |
# it's available on PyPI | |
from ordereddict import OrderedDict |