Skip to content

Instantly share code, notes, and snippets.

@anatolinicolae
anatolinicolae / dabblet.css
Created June 19, 2012 08:31
Stylish Gradient Buttons
/**
* Stylish Gradient Buttons
*/
/**
* Designed and coded by Anatoli Nicolae
* http://dribbble.com/anatolinicolae
*/
body {
background: #f5f5f5;
@oliveratgithub
oliveratgithub / made-with-love.html
Last active November 11, 2024 18:59
Various snippets to add "Made with love" to your website using HTML, CSS and JavaScript
<!-- Example #1 - no styling -->
Made with ❤ in Switzerland
Made with ♥ in Switzerland
Made with ♡ in Switzerland
Made with ❤️ in Switzerland
Made with ♥️ in Switzerland
<!-- Example #2 - inline-styled ❤ -->
Made with <span style="color: #e25555;">&#9829;</span> in Switzerland
Made with <span style="color: #e25555;">&hearts;</span> in Switzerland
class MyAudioCallback : public AudioIODeviceCallback
{
public:
MyAudioCallback() {}
void audioDeviceIOCallback(const float **inputChannelData, int numInputChannels,
float **outputChannelData, int numOutputChannels, int numSamples) override
{
for (int i = 0; i < numSamples; ++i)
{
float sample = jmap(m_rnd.nextFloat(), 0.0f, 1.0f, -0.1f, 0.1f);
class MyAudioSource : public AudioSource
{
public:
MyAudioSource() {}
void prepareToPlay(int samplesPerBlockExpected, double sampleRate) override
{}
void releaseResources() override
{}
void getNextAudioBlock(const AudioSourceChannelInfo & bufferToFill) override
{
// Requires the Juce audio_utils module for AudioProcessorPlayer
class MyAudioProcessor : public AudioProcessor
{
public:
MyAudioProcessor() {}
const String getName() const override { return "MyAudioProcessor"; }
void prepareToPlay(double sampleRate, int maximumExpectedSamplesPerBlock) override {}
void releaseResources() override {}
void processBlock(AudioBuffer<float>& buffer, MidiBuffer & midiMessages) override