Skip to content

Instantly share code, notes, and snippets.

@emmeowzing
emmeowzing / inverter.c
Created April 27, 2017 14:22
Example matrix inversion using the GNU Scientific Library
/* A simple example of inverting a matrix using the gsl */
#include <stdio.h>
#include <time.h>
#include <stdlib.h>
#include <gsl/gsl_matrix_double.h>
#include <gsl/gsl_linalg.h>
@kuccello
kuccello / MainActivity.java
Last active August 28, 2023 10:14
An example MusicPlayer class that demonstrates how to use AudioFocus and a BroadcastReceiver to play audio cleanly on Android.
/*
Copyright 2013 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software