This file contains hidden or 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 hidden or 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 hidden or 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 { readFileSync, writeFileSync } from "node:fs"; | |
| import { marked } from "marked"; | |
| import { JSDOM } from "jsdom"; | |
| import { | |
| AlignmentType, Document, ExternalHyperlink, HeadingLevel, LevelFormat, | |
| Packer, Paragraph, ShadingType, Table, TableCell, TableRow, TextRun, | |
| WidthType | |
| } from "docx"; | |
| const INPUT_FILE = 'sample.md'; |
This file contains hidden or 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 hidden or 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
| /* | |
| HSV/HSL code based on Wikipedia algorithms | |
| Permission to use, copy, modify, and/or distribute this software for | |
| any purpose with or without fee is hereby granted. | |
| THE SOFTWARE IS PROVIDED “AS IS” AND THE AUTHOR DISCLAIMS ALL | |
| WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES | |
| OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE | |
| FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY |
This file contains hidden or 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
| /*: | |
| @plugindesc Simple crafting system. | |
| @author armornick | |
| ---------------------------------------------------- | |
| @help | |
| Adds a simple crafting system with a simple crafting menu. |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 }]); |
NewerOlder