Originally from http://keeper.lubie.org/dk1_docs/
Dungeon Keeper Map Files Format Reference v1.1
Created by fans
c++ -Wall -O2 -std=c++0x -I /Users/kolen/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/sassc-1.12.1/ext/libsass/include -stdlib=libc++ -fPIC -fPIC -c -o src/ast.o src/ast.cpp | |
In file included from src/ast.cpp:2: | |
In file included from src/ast.hpp:14: | |
In file included from src/ast_fwd_decl.hpp:11: | |
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/unordered_map:369: | |
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__hash_table:314:28: error: use of undeclared identifier '__get_db' | |
_LIBCPP_DEBUG_MODE(__get_db()->__insert_i(this)); | |
^ | |
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__hash_table:345:30: error: use of undeclared identifier '__get_const_db' | |
_LIBCPP_DEBUG_ASSERT(__get_const_db()->__dereferenceable(this), |
Originally from http://keeper.lubie.org/dk1_docs/
Dungeon Keeper Map Files Format Reference v1.1
Created by fans
meta: | |
id: zx_spectrum_tap | |
file-extension: tap | |
endian: le | |
license: CC0-1.0 | |
title: ZX Spectrum tape file format | |
xref: | |
justsolve: TAP_(ZX_Spectrum) | |
pronom: fmt/801 | |
doc-ref: https://faqwiki.zxnet.co.uk/wiki/TAP_format |
use std::boxed::Box; | |
use std::thread; | |
use std::mem; | |
trait Callback: Send { | |
fn callback(&mut self); | |
} | |
struct CallbackHolder<CB: Callback> { | |
userdata: Box<Option<CB>> |
#![allow(dead_code, | |
mutable_transmutes, | |
non_camel_case_types, | |
non_snake_case, | |
non_upper_case_globals, | |
unused_mut)] | |
#![feature(libc)] | |
extern crate libc; | |
#[no_mangle] | |
pub unsafe extern "C" fn send(mut to: *mut libc::c_char, |
#include <SDL.h> | |
int main(int argc, char *argv[]) { | |
SDL_Init(SDL_INIT_VIDEO|SDL_INIT_EVENTS); | |
SDL_Window *window = NULL; | |
window = SDL_CreateWindow("title", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, 512, 512, SDL_WINDOW_OPENGL); | |
SDL_Event event; | |
while(1) { | |
while(SDL_PollEvent(&event)) { |
export IDF_PATH=... | |
pip3 install -r $IDF_PATH/docs/requirements.txt | |
cd $IDF_PATH/docs/en | |
make html |
~/items/qengine/build % mv quake2.pal palette.pal | |
~/items/qengine/build % tools/pcx2wal quake2-generated-colormap.pcx | |
PCX2WAL (c) Iikka Keränen 1997-1998 | |
1 texture to be converted... | |
quake2-generated-colormap.pcx ... quake2-generated-colormap saved as quake2-generated-colormap.wal | |
~/items/qengine/build % ls -l quake2-generated-colormap.wal | |
-rw-r--r-- 1 kolen staff 108900 14 янв 21:06 quake2-generated-colormap.wal |
meta: | |
id: magic_and_mayhem_map | |
file-extension: map | |
endian: le | |
seq: | |
- id: version # 6 is correct | |
type: u4 | |
- id: size_x | |
type: u4 | |
- id: size_y |
require "ruby-prof" | |
RubyProf.measure_mode = RubyProf::ALLOCATIONS | |
RubyProf.start | |
result = RubyProf.stop | |
RubyProf::CallTreePrinter.new(result).print() |