This file has been truncated, but you can view the full file.
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
| #ifndef UFBX_UFBX_C_INCLUDED | |
| #define UFBX_UFBX_C_INCLUDED | |
| #if defined(UFBX_HEADER_PATH) | |
| #include UFBX_HEADER_PATH | |
| #else | |
| #include "ufbx.h" | |
| #endif | |
| // -- User configuration |
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
| static const uint32_t ufbxi_number_start_mask = | |
| (((1u << 10) - 1) << ((uint32_t)'0' - 32u)) | | |
| (1u << ((uint32_t)'-' - 32u)) | | |
| (1u << ((uint32_t)'+' - 32u)) | | |
| (1u << ((uint32_t)'.' - 32u)) ; | |
| ufbx_static_assert(ufbxi_number_start_codepoint, | |
| ((uint32_t)'9' - (uint32_t)'0') == 9 && | |
| (uint32_t)'0' >= 32u && (uint32_t)'0' < 64u && |
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
| /** \file mikktspace/mikktspace.c | |
| * \ingroup mikktspace | |
| */ | |
| /** | |
| * Copyright (C) 2011 by Morten S. Mikkelsen | |
| * | |
| * This software is provided 'as-is', without any express or implied | |
| * warranty. In no event will the authors be held liable for any damages | |
| * arising from the use of this software. | |
| * |
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
| $ misc/check_dataset.py --exe build/check_fbx --root /mnt/fbx-files --host-url https://ufbx-dataset.b-cdn.net | |
| == 'Autodesk Telescope' by 'Roberto Ziche' (CC BY 4.0) == | |
| source url: https://github.com/Autodesk/Aurora#sample-data | |
| .json url: https://ufbx-dataset.b-cdn.net/github/autodesk/autodesk-telescope.json | |
| -- github/autodesk/autodesk-telescope.ufbx.obj -- | |
| .fbx url: https://ufbx-dataset.b-cdn.net/github/autodesk/autodesk-telescope.ufbx.obj |
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
| #define _CRT_SECURE_NO_WARNINGS | |
| #define STB_IMAGE_IMPLEMENTATION | |
| #include "stb_image.h" | |
| #define STB_IMAGE_RESIZE_IMPLEMENTATION | |
| #include "stb_image_resize.h" | |
| #include <stdint.h> | |
| #include <stdio.h> |
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 torch | |
| from torch import nn | |
| import torch.nn.functional as NNF | |
| from torch.utils.data import DataLoader, Dataset, ConcatDataset | |
| from torchvision import datasets | |
| from torchvision.transforms import ToTensor, PILToTensor, RandomResizedCrop | |
| import torchvision.transforms as TVT | |
| from torchvision.transforms.functional import to_pil_image, center_crop | |
| from torchvision.io import read_image, ImageReadMode | |
| import os |
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 htm from "https://unpkg.com/htm?module" | |
| // import { h, Fragment, render, createState, useState, useRef, useEffect } from "https://unpkg.com/kaiku" | |
| import { h, Fragment, render, createState, useState, useRef, useEffect, immutable } from "./kaiku.min.js" | |
| const html = htm.bind(h) | |
| function setupFormsDefaults() { | |
| return { | |
| settings: { | |
| enabled: true, |
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
| export const fail = Symbol("fail") | |
| export type Fail = typeof fail | |
| export function string(v: any): string | Fail { | |
| return typeof v === "string" ? v : fail | |
| } | |
| export function number(v: any): number | Fail { | |
| return typeof v === "number" ? v : fail | |
| return v |
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
| 0 0 | 4 | 1000 | 8 | CM=8 Compression method: DEFLATE | |
| 4 4 | 4 | 0111 | 7 | CINFO=7 Compression info: 32kB window size | |
| 8 8 | 5 | 11100 | 28 | FCHECK (CMF*256+FLG) % 31 == 0 | |
| 13 d | 1 | 0 | 0 | FDICT=0 Preset dictionary: No | |
| 14 e | 2 | 10 | 2 | FLEVEL=2 Compression level: Default | |
| 16 10 | 1 | 1 | 1 | BFINAL Final chunk: True | |
| 17 11 | 2 | 10 | 2 | BTYPE Chunk type: Dynamic Huffman | |
| 19 13 | 5 | 00011 | 3 | HLIT Number of Litlen codes: 260 (257 + 3) | |
| 24 18 | 5 | 00100 | 4 | HDIST Number of Distance codes: 5 (1 + 4) | |
| 29 1d | 4 | 1110 | 14 | HCLEN Number of Codelen codes: 18 (4 + 14) |
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 <stdint.h> | |
| #include <math.h> | |
| #include <stdlib.h> | |
| #include <assert.h> | |
| #include <stdio.h> | |
| #include <string.h> | |
| #include <time.h> | |
| #if defined(_MSC_VER) |