Originally from http://keeper.lubie.org/dk1_docs/
Dungeon Keeper Map Files Format Reference v1.1
Created by fans
| import sys | |
| import json | |
| import datetime | |
| sys.path.append('/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/platform/google_appengine/') | |
| from google.appengine.api.files import records | |
| from google.appengine.datastore import entity_pb | |
| from google.appengine.api import datastore | |
| def extract(index): | |
| raw = open('backups/2020-11-10T18:54:56_95621/default_namespace/all_kinds/output-'+str(index), 'r') |
| #!/usr/bin/env ruby | |
| # Read MH-Z14 CO2 sensor readings connected via serial port | |
| require 'bundler/inline' | |
| gemfile do | |
| source 'https://rubygems.org' | |
| gem "rubyserial", "0.6.0" | |
| end |
| // Based on http://devlog-martinsh.blogspot.com/2011/03/glsl-dithering.html | |
| shader_type canvas_item; | |
| uniform float scale = 1.0; | |
| float find_closest(int x, int y, float c0) | |
| { | |
| mat4 dither = mat4(vec4( 1.0, 33.0, 9.0, 41.0), | |
| vec4(49.0, 17.0, 57.0, 25.0), |
| [package] | |
| name = "image-iter-panic-demo" | |
| version = "0.1.0" | |
| edition = "2018" | |
| [dependencies] | |
| image = { git = "https://github.com/image-rs/image" } | |
| [lib] | |
| path = "lib.rs" |
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 |