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
<?php | |
/* | |
* Copyright (C) 2014 Deciso B.V. | |
* Copyright (C) 2009 Scott Ullrich <[email protected]> | |
* | |
* Redistribution and use in source and binary forms, with or without | |
* modification, are permitted provided that the following conditions are met: | |
* | |
* 1. Redistributions of source code must retain the above copyright notice, |
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
#pragma once | |
#ifdef _DEBUG | |
#define FMTLOG_ENABLE | |
#endif | |
#include <string> | |
#include <functional> | |
#define FMT_HEADER_ONLY |
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
!"#$%&'()*+,-./0 | |
123456789:;<=>?@ | |
ABCDEFGHIJKLMNOP | |
QRSTUVWXYZ[\]^_` | |
abcdefghijklmnop | |
qrstuvwxyz{|}~©® | |
°´·ºáéòúōǝɔɞɥʘʚΟ | |
ΨίειλμπωАВДЕЗЛМН | |
ОПРСТХЧабвгдежзи | |
йклмнопрстуфхцчш |
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
{ | |
'"': '"', | |
'#': '#', | |
'%': '%', | |
'&': '&', | |
'*': '*', | |
':': ':', | |
'<': '<', | |
'>': '>', | |
'?': '?', |
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
import collections | |
import io | |
import json | |
import logging | |
import logging.handlers | |
import math | |
import os | |
import shutil | |
import struct | |
import subprocess |
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
using System; | |
using System.Runtime.InteropServices; | |
namespace CSProgressBar | |
{ | |
public class ProgressBar | |
{ | |
private readonly int maxLength; | |
private int lastLen; |
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
// SMAGL is 0 or 2 | |
// PixelType is uint8_t | |
static void warp_c(const uint8_t *srcp8, const uint8_t *edgep8, uint8_t *dstp8, int src_stride, int edge_stride, int dst_stride, int width, int height, int depth, int bits_per_sample) | |
{ | |
const uint8_t *srcp = (const uint8_t *)srcp8; | |
const uint8_t *edgep = (const uint8_t *)edgep8; | |
uint8_t *dstp = (uint8_t *)dstp8; | |
src_stride /= sizeof(uint8_t); | |
edge_stride /= sizeof(uint8_t); |
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
import mxnet as mx | |
import onnx | |
import numpy as np | |
import mxnet.contrib.onnx as onnx_mxnet | |
model_name = 'somemodel' | |
model_file = model_name + '.onnx' | |
onnx_model = onnx.load(model_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
import os | |
import re | |
import json | |
import subprocess | |
import argparse | |
class Args(object): | |
def __init__(self, **kwargs): | |
for k, v in kwargs.items(): | |
setattr(self, k, v) |
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
import os | |
import argparse | |
import json | |
parser = argparse.ArgumentParser() | |
parser.add_argument('-f', '--format', default='', type=str) | |
parser.add_argument('-a', '--all', default=False, action='store_true') | |
args = parser.parse_args() | |
is_bsp_file = lambda fn: any(fn.endswith(ext) for ext in ['.bsp']) |
NewerOlder