Skip to content

Instantly share code, notes, and snippets.

View Ambitious4Ever's full-sized avatar

Anas Alabdali Ambitious4Ever

View GitHub Profile
@Ambitious4Ever
Ambitious4Ever / code-editor-rules.md
Created February 11, 2025 13:34 — forked from yifanzz/code-editor-rules.md
EP12 - The One File to Rule Them All

[Project Name]

Every time you choose to apply a rule(s), explicitly state the rule(s) in the output. You can abbreviate the rule description to a single word or phrase.

Project Context

[Brief description ]

  • [more description]
  • [more description]
  • [more description]
@Ambitious4Ever
Ambitious4Ever / Helper Method - releaseMediaPlayer()
Created October 26, 2018 14:37 — forked from udacityandroid/Helper Method - releaseMediaPlayer()
Miwok app: Cleaning up MediaPlayer resources
/**
* Clean up the media player by releasing its resources.
*/
private void releaseMediaPlayer() {
// If the media player is not null, then it may be currently playing a sound.
if (mMediaPlayer != null) {
// Regardless of the current state of the media player, release its resources
// because we no longer need it.
mMediaPlayer.release();