Skip to content

Instantly share code, notes, and snippets.

@nikclayton
nikclayton / main.dart
Last active May 25, 2023 15:46
powerful-ritual-9413
import 'dart:math';
enum GameResult { win, lose, draw }
enum Move {
rock,
paper,
scissors;
/// Create a [Move] from the string [s]. Returns [null] if [s]
/*
* 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
@nikclayton
nikclayton / badges.css
Created October 12, 2018 15:07
CSS showing how to add badges to org-reveal exported files indicating the language of SRC blocks
/**
* Language badges for ox-html.
*
* The generated HTML for a
*
* #+BEGIN_SRC <lang>
* ...
* #+END_SRC
*
* block looks like:

Keybase proof

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:

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;
@nikclayton
nikclayton / diff.diff
Created June 20, 2015 11:29
Diff for moving to android.net.Uri
Sample text