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
// [email protected] | |
// Inspired also by http://github.com/dieseltravis | |
(function () { | |
var trimLeft = /^\s+/, trimRight = /\s+$/; | |
// Verify that \s matches non-breaking spaces (IE fails on this test) | |
if ( !/\s/.test( "\xA0" ) ) { | |
trimLeft = /^[\s\xA0]+/; | |
trimRight = /[\s\xA0]+$/; | |
} | |
// Use native String.prototype.trim function wherever possible |
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
/* | |
(c) 2009 - 2011 by dbj.org | |
*/ | |
var isFunction = (function() { | |
var rx = /^\s*\bfunction\b/; | |
return function(f) { | |
return rx.test(f); | |
} | |
}()); | |
/* |
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
<!DOCTYPE html > | |
<!-- $Revision: 1 $ $Date: 22/12/09 17:10 $ $Author: Admin $ --> | |
<html> | |
<head> | |
<!-- Set document compatibility mode to IE8Mode --> | |
<!-- meta http-equiv="X-UA-Compatible" content="IE=edge" / --> | |
<script type="text/javascript" src="https://getfirebug.com/firebug-lite.js" onload="alert('Firebug Lite Loaded')"></script> | |
<title>dbj*Mutator $Revision: 1 $ $JustDate: 22/12/09 $</title> | |
<style type="text/css"> |
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 | |
/* | |
Copyright 2006 - 2018 [email protected] | |
Licensed under the Apache License, Version 2.0 (the "License"); | |
you may not use this file except in compliance with the License. | |
You may obtain a copy of the License at | |
http ://www.apache.org/licenses/LICENSE-2.0 |
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
if("object"==typeof dbj){var msg="dbj core object must be defined only once and only in here";throw console&&console.error&&console.error(msg),"function"==typeof alert&&alert(msg),msg}!function(r,t){"function"!=typeof String.format&&(String.prototype.format=function(){var r=arguments;return this.replace(/\{(\d|\d\d)\}/g,function(e){var n=1*e.match(/\d+/)[0];return r[n]!==t?r[n]:""===r[n]?"":e})});var e={GLOBAL:function(){var t=Object.prototype.toString;Object.prototype.hasOwnProperty;"function"!=typeof window.roleof&&(r.roleof=function(r){return t.call(r).match(/\w+/g)[1]}),"function"!=typeof window.isArray&&(r.isArray=function(r){return"Array"===roleof(r)}),"function"!=typeof window.isObject&&(r.isObject=function(r){return"Object"===roleof(r)}),"function"!=typeof window.isFunction&&(r.isObject=function(r){return"Function"===roleof(r)})}(),keep_inside:function(){var r=[0,1];return function(t,e){if(e&&(r=e.sort()),t-=0,isNaN(t))throw new Error(255,"dbj.keep_inside() received NaN value.");return t>r[1]?r[1]:t<r |
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
// IDE ONE link: https://ideone.com/X30oXu | |
#pragma once | |
#include <iostream> | |
using std::wostream; | |
namespace dbj { | |
namespace tree { | |
using namespace std; |
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 | |
/* | |
---------------------------------------------------------------------- | |
ACTUALLY: | |
http://archives.miloush.net/michkap/archive/2008/03/18/8306597.html | |
It seems this is very wizard like method? | |
Try this simeple test and see if it crashes your console: | |
<pre> | |
#include <fcntl.h> | |
#include <io.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 <iostreams> | |
// above should be enough | |
// dbjdbj 23 MAY 18 added | |
// this is VS2017 code | |
// linux twin is here | |
// https://wandbox.org/permlink/Wm3rtZhT3jCNfSXl | |
/// and behaves a bit better as in it manages to | |
// print the ARP value (see way bellow) |
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
/* | |
(c) 2018-2021 by [email protected] -- https://dbj.org/license_dbj | |
usage: | |
auto demangled_name = dbj::demang< int (&) [42] >() ; | |
This is both windows and linux code. | |
https://godbolt.org/z/7bTxazhTv | |
*/ | |
#ifndef _WIN32 |
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 | |
/* | |
Swappable Engine Factory, I think a better variation to the | |
Factory Pattern | |
Usage: | |
using namespace car_factory; | |
auto car_1 = |
OlderNewer