View EntityClassReflectionExtension.php
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 declare(strict_types = 1); | |
namespace App\PHPStan; | |
use PHPStan\Reflection\ClassReflection; | |
use PHPStan\Reflection\MethodReflection; | |
use PHPStan\Reflection\MethodsClassReflectionExtension; | |
use PHPStan\Analyser\OutOfClassScope; | |
use PHPStan\Type\ObjectType; |
View mqstandards.js
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
// Doing the same as https://mqgem.wordpress.com/2019/03/11/attributes-standards-mqscx/ | |
// But using JavaScript and MQWeb (https://www.mqweb.org) | |
var http = require('http'); | |
var options = { | |
hostname : '127.0.0.1', | |
port : 8081, | |
path : '/api/queue/inquire/PIGEON', | |
method : 'GET', | |
headers : { |
View clusview.html
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
<html> | |
<head> | |
<link rel="stylesheet" href="/node_modules/vis/dist/vis.min.css"></link> | |
<script type="text/javascript" src="/node_modules/vis/dist/vis.min.js"></script> | |
<script type="text/javascript" src="/node_modules/axios/dist/axios.min.js"></script> | |
<title>CLuster View</title> | |
</head> | |
<body> | |
<h1>Cluster View</h1> | |
<div id="clusterView"></div> |
View mqstats.py
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
''' | |
Get/browse all queue statistic messages from a queue (default is SYSTEM.ADMIN.STATISTICS.QUEUE). | |
MQWeb (http://www.mqweb.org) is used to translate the MQADMIN message to JSON. | |
It is assumed that MQWeb is running on localhost. | |
''' | |
import json | |
import httplib | |
import socket | |
import argparse |
View MongoDBMT.cpp
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 "Poco/MongoDB/MongoDB.h" | |
#include "Poco/MongoDB/Connection.h" | |
#include "Poco/MongoDB/Database.h" | |
#include "Poco/MongoDB/Cursor.h" | |
#include "Poco/MongoDB/Array.h" | |
#include "Poco/Mutex.h" | |
#include <Poco/MongoDB/PoolableConnectionFactory.h> |
View UTF8Escape.cpp
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 "Poco/UTF8Escape.h" | |
#include "Poco/UTF8Encoding.h" | |
#include "Poco/NumberFormatter.h" | |
#include "Poco/Ascii.h" | |
namespace Poco { | |
std::string UTF8Escape::escape(const std::string &s) | |
{ | |
return escape(s.begin(), s.end()); |