Skip to content

Instantly share code, notes, and snippets.

@xni06
xni06 / main.dart
Created April 8, 2022 11:38
Double precision
void main() {
print(0.2 + 0.1);
}
// The purpose of this example is hightlight that there is no point
// using a try/catch block to catch an exception only to simply
// throw/rethrow it. Only catch it if you intend to do something with it.
void main() async {
final test = TryCatchExample();
try { test.methodThatThrowsException(); } catch (e) { print(e); }
try { test.methodWithoutTryCatch(); } catch (e) { print(e); }
{
"meta": {
"theme": "elegant"
},
"basics": {
"name": "Rhisiart ap Gwilym",
"label": "Software Engineer",
"summary": "I'm an experienced software engineer who designs/develops solutions using technologies such as Amazon Web Services (AWS), Java, Android and now Google Flutter. Clients include the BBC, DVLA, IBM, Hewlett-Packard, The AA, The Wildlife Trusts, Intel and Rolls-Royce in countries such as the UK, Ireland, New Zealand, Switzerland, Belgium and Italy.",
"phone": "+44 7981 756 521",
"picture": "https://hiafi-cv.s3.eu-west-2.amazonaws.com/headshot.png",
<div id="wrapper">
<canvas id="canvas" width="450" height="450"></canvas>
</div>