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
#define _CRT_SECURE_NO_WARNINGS | |
#include <stdio.h> | |
#define STB_IMAGE_IMPLEMENTATION | |
#include "stb_image.h" | |
int w, h, channels; | |
unsigned char *data; | |
FILE *file; |
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
bl_info = { | |
"name": "My-Craft Export (.mce)", | |
"description": "NexusNul is cool", | |
"author": "NexusNul", | |
"version": (2, 0, 0, 0), | |
'blender': (2, 80, 0), | |
"location": "File > Import-Export", | |
"wiki_url": "", | |
"category": "Import-Export"} |
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
// ---- loading a font | |
static void load_font(void) | |
{ | |
hb_blob_t *blob; | |
hb_face_t *face; | |
size_t filelen = 0; | |
void *filedata = stb_file("c:/windows/fonts/arial.ttf", &filelen); | |
if (filedata == 0) stbpg_fatal("Couldn't load font"); |
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 "Winning.h" | |
#include <sstream> | |
LRESULT CALLBACK WindowProc( | |
_In_ HWND hwnd, | |
_In_ UINT msg, | |
_In_ WPARAM wparam, | |
_In_ LPARAM lparam) | |
{ | |
switch (msg) { |
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
/* ----------------------------------------------------------------------- */ | |
/* | |
Easy embeddable cross-platform high resolution timer function. For each | |
platform we select the high resolution timer. You can call the 'ns()' | |
function in your file after embedding this. | |
*/ | |
#include <stdint.h> | |
#if defined(__linux) | |
# define HAVE_POSIX_TIMER | |
# include <time.h> |
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 <float.h> | |
#include <math.h> | |
// Takes a float in the range [-1.0, 1.0] and converts to an int in the range [INT_MIN, INT_MAX] | |
// NOTE: Floats outside of this range will be clamped | |
int normalized_ftoi(float f) | |
{ | |
// Clamp float to [-1.0, 1.0f] | |
if (f > 1.0f) f = 1.0f; |
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
// Link with psapi.lib | |
#define NOMINMAX | |
#define WIN32_LEAN_AND_MEAN | |
#include <Windows.h> | |
#include <Psapi.h> | |
int main (void) | |
{ |
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
#---------------------------------------------------------------------------------------- | |
# Example Usage (RSpec) | |
#---------------------------------------------------------------------------------------- | |
# Define a trace object. Syntax is as follows: | |
# | |
# let (:trace) { | |
# SpecTrace.new({ | |
# Module::ClassA => { exclude: [:method_to_ignore, :another_method_to_ignore] } | |
# Module::ClassB => { include: [:method_to_trace, :another_method_to_trace] }, | |
# }) |
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
nadir | |
ossification | |
acme | |
zenith | |
selcouth | |
solivagant | |
assay | |
anosmic | |
fomented | |
tacit |
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
<div class="post-summary"> | |
{{ with .Description }} | |
{{ (markdownify .) }} | |
{{ else }} | |
{{ ((delimit (findRE "(<.*?>(.|\n)*?</.*?>\\s*)+" .Content) "") | truncate (default 200 .Site.Params.summary_length) (default "" .Site.Params.text.truncated ) | replaceRE "&" "&" | safeHTML) }} | |
{{ end }} | |
</div> |