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 <SDL2/SDL.h> | |
#define MUS_PATH "Roland-GR-1-Trumpet-C5.wav" | |
// prototype for our audio callback | |
// see the implementation for more information | |
void my_audio_callback(void *userdata, Uint8 *stream, int len); | |
// variable declarations | |
static Uint8 *audio_pos; // global pointer to the audio buffer to be played |
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 <stdio.h> | |
#include <SDL2/SDL.h> | |
#include <SDL2/SDL_image.h> | |
#define WIDTH 800 | |
#define HEIGHT 600 | |
#define IMG_PATH "exit.png" | |
int main (int argc, char *argv[]) { |
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
<!-- | |
BOILERPLATE FOR TUMBLR THEME DEVELOPMENT | |
Based on the code from <https://buildthemes.tumblr.com/> | |
Available under the 0BSD license (https://opensource.org/license/0bsd/) | |
--> | |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta name="Description" content="{MetaDescription}" /> | |
<title>{block:SearchPage}{lang:Search results for SearchQuery} - {/block:SearchPage}{block:PostTitle}{PostTitle} - {/block:PostTitle}{Title}</title> | |
<link rel="shortcut icon" href="{Favicon}" /> | |
<link rel="apple-touch-icon" href="{PortraitURL-128}"/> |
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 { Preset, Rule } from 'unocss' | |
const displayRules: Rule[] = | |
['none','inline','inline-block','block','grid','inline-grid','flex','inline-flex','table','table-row','table-cell'] | |
.map(display => [`d-${display}`, { display }]); | |
const flexDirectionRules: Rule[] = | |
['row','row-reverse','column','column-reverse'] | |
.map(direction => [`flex-${direction}`, { 'flex-direction': direction }]); | |
const textAlignRules: Rule[] = | |
['left','right','center'].map(alignment => [`text-${alignment}`, { 'text-align': alignment }]); |
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
:root { | |
/* font families */ | |
--font-body: Verdana,sans-serif; | |
--font-heading: "Segoe UI",Arial,sans-serif; | |
/* Colors */ | |
--color-amber: #ffc107; | |
--color-aqua: #00ffff; | |
--color-blue: #2196F3; | |
--color-light-blue: #87CEEB; | |
--color-brown: #795548; |
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 <SDL2/SDL.h> | |
#include <SDL2/SDL_mixer.h> | |
#define WAV_PATH "Roland-GR-1-Trumpet-C5.wav" | |
#define MUS_PATH "HR2_Friska.ogg" | |
// Our wave file | |
Mix_Chunk *wave = NULL; | |
// Our music file | |
Mix_Music *music = NULL; |
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
unit AppUtils; | |
{$mode objfpc}{$H+} | |
interface | |
uses | |
SysUtils; | |
function CheckDir(path:string):Boolean; |
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
:root { | |
/* Colors > Slate */ | |
--tw-slate-50: #f8fafc; | |
--tw-slate-100: #f1f5f9; | |
--tw-slate-200: #e2e8f0; | |
--tw-slate-300: #cbd5e1; | |
--tw-slate-400: #94a3b8; | |
--tw-slate-500: #64748b; | |
--tw-slate-600: #475569; |
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
/* | |
List and load Control Panel applets | |
Based on this article: | |
https://blogs.msdn.microsoft.com/oldnewthing/archive/2003/12/26/45979.aspx | |
And this section of MSDN: | |
https://msdn.microsoft.com/en-us/library/windows/desktop/cc144185(v=vs.85).aspx | |
KNOWN BUGS: |
NewerOlder