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 <stdlib.h> | |
#include <stdint.h> | |
#include <assert.h> | |
// Dynamic Array: | |
// A stretchy buffer datastructure and a macro interface for both the buffers and static arrays. | |
// Structure idea by Sean Barrett: | |
// https://github.com/nothings/stb/blob/master/deprecated/stretchy_buffer.h | |
typedef struct BufHdr BufHdr; |
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
// Audio device management functions | |
@foreign func InitAudioDevice(); | |
@foreign func CloseAudioDevice(); | |
@foreign func IsAudioDeviceReady(): bool; | |
@foreign func SetMasterVolume(volume: float); | |
// Wave/loading: Sound/unloading functions | |
@foreign func LoadWave(fileName: char* const): Wave; | |
@foreign func LoadWaveFromMemory(fileType: char* const, fileData: uchar* const, dataSize: int): Wave; | |
@foreign func LoadSound(fileName: char* const): Sound; |
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
<head> | |
<title>Collision</title> | |
<style> | |
canvas { | |
border: 1px solid #333; | |
} | |
</style> | |
</head> |
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
<head> | |
<meta charset="utf-8"> | |
<title>Pågåendelistan</title> | |
<link rel="stylesheet" type="text/css" href="style.css"> | |
</head> | |
<body onload="main()"> | |
<nav> | |
<div id="nav-title"> | |
<h2>Affektiva: Index</h2> |
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
<head> | |
<title>Calendar</title> | |
<meta charset="utf-8"> | |
<style> | |
:root { | |
--nav-height: 120px; | |
} | |
body { | |
margin: auto; |
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
<head> | |
<title>Sommar 2020</title> | |
<meta charset="utf-8"> | |
<style> | |
:root { | |
--width: 825px; | |
} | |
body { | |
margin: auto; |
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
<head> | |
<title>Lista</title> | |
<meta charset="utf-8"> | |
<script src="https://d3js.org/d3.v5.min.js"></script> | |
<style> | |
:root { | |
--width: 1005px; | |
--top: 35px; | |
} |
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 ( | |
"flag" | |
"html/template" | |
"log" | |
"os/exec" | |
"net/http" | |
"strings" | |
"database/sql" |
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 ( | |
"flag" | |
"html/template" | |
"log" | |
"net/http" | |
"github.com/gorilla/websocket" | |
) |
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
<head> | |
<meta charset="utf-8"> | |
<title>Hello</title> | |
<style> | |
canvas { | |
background: #ddd; | |
outline: none; | |
} | |
</style> | |
</head> |
NewerOlder