This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"net/http" | |
"github.com/gorilla/mux" | |
) | |
type httpHandlerFunc func(http.ResponseWriter, *http.Request) |