Skip to content

Instantly share code, notes, and snippets.

View DirkWillem's full-sized avatar

Dirk van Wijk DirkWillem

View GitHub Profile
import 'package:flutter/material.dart';
void main() {
runApp(new MaterialApp(home: new TestApplication()));
}
class TestApplication extends StatelessWidget {
final PageController _pageController = new PageController(initialPage: 1);
final int _pageIndex = 1;
#include <wiringPi.h>
#include <wiringPiSPI.h>
#include <iostream>
#include <stdint.h>
int main() {
wiringPiSetup();
if(wiringPiSPISetup(0, 6000000) < 0) {
std::cerr << "wiringPiSPISetup failed" << std::endl;
}
#include "audio.hpp"
#include <algorithm>
#include <iostream>
AudioHandler::AudioHandler() {
//Initialize SDL mixer
if(Mix_OpenAudio(44100, MIX_DEFAULT_FORMAT, 2, 2048) < 0) {
std::cerr << "Mix_OpenAudio Error: " << Mix_GetError() << std::endl;
return;
package main
import (
"fmt"
"net/http"
"github.com/gorilla/mux"
)
type httpHandlerFunc func(http.ResponseWriter, *http.Request)