I hereby claim:
- I am nikclayton on github.
- I am nikclayton (https://keybase.io/nikclayton) on keybase.
- I have a public key ASCRey6SasnDBnE4E4zKvduWDqN5mRKOHCa0hROou9ZMYQo
To claim this, I am signing this object:
Sample text |
diff --git a/Squeezer/src/main/java/uk/org/ngo/squeezer/NowPlayingFragment.java b/Squeezer/src/main/java/uk/org/ngo/squeezer/NowPlayingFragment.java | |
index 92c53eb..f527064 100644 | |
--- a/Squeezer/src/main/java/uk/org/ngo/squeezer/NowPlayingFragment.java | |
+++ b/Squeezer/src/main/java/uk/org/ngo/squeezer/NowPlayingFragment.java | |
@@ -49,6 +49,7 @@ import android.view.ViewGroup; | |
import android.widget.ArrayAdapter; | |
import android.widget.ImageButton; | |
import android.widget.ImageView; | |
+import android.widget.PopupMenu; | |
import android.widget.ProgressBar; |
I hereby claim:
To claim this, I am signing this object:
/** | |
* Language badges for ox-html. | |
* | |
* The generated HTML for a | |
* | |
* #+BEGIN_SRC <lang> | |
* ... | |
* #+END_SRC | |
* | |
* block looks like: |
/* | |
* Copyright 2023 Tusky Contributors | |
* | |
* This file is a part of Tusky. | |
* | |
* This program is free software; you can redistribute it and/or modify it under the terms of the | |
* GNU General Public License as published by the Free Software Foundation; either version 3 of the | |
* License, or (at your option) any later version. | |
* | |
* Tusky is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even |
import 'dart:math'; | |
enum GameResult { win, lose, draw } | |
enum Move { | |
rock, | |
paper, | |
scissors; | |
/// Create a [Move] from the string [s]. Returns [null] if [s] |
Created with <3 with dartpad.dev.
Took a little play with this, and there's some stuff you might want to try.
Let's think about the type of data in the game.
You already know types like int, string, etc (more on types in https://nikclayton.writeas.com/on-values-types-variables-functions-and-function-hoisting).
We can also create our own types, and decide what are legal values for those types to have. This is especially useful when we're trying to model something like a game, where there's generally a restricted set of values that are valid at any given time.
You already know that it's possible for types to have a limited number of possible values. Whether it's an integer type that can't be used for floating point values, or a boolean type that can only be used for the values true
and false
.
One of the release tasks is putting together the release notes.
This involves going back through all the merged PRs, figuring out what they did, and boiling that down to a one or two sentence summary.
This is significantly easier if the PR is self-contained. This means: