Useful tip from the late creator of matplotlib, John Hunter.
http://matplotlib.1069221.n5.nabble.com/dynamically-add-subplots-to-figure-td23571.html
import matplotlib.pyplot as plt
# start with one
fig = plt.figure()
ax = fig.add_subplot(111)
## This Script is intended to be used for Querying remaining time and resetting Terminal Server (RDS) Grace Licensing Period to Default 120 Days. | |
## Developed by Prakash Kumar ([email protected]) May 28th 2016 | |
## www.adminthing.blogspot.com | |
## Disclaimer: Please test this script in your test environment before executing on any production server. | |
## Author will not be responsible for any misuse/damage caused by using it. | |
Clear-Host | |
$ErrorActionPreference = "SilentlyContinue" | |
## Display current Status of remaining days from Grace period. |
Useful tip from the late creator of matplotlib, John Hunter.
http://matplotlib.1069221.n5.nabble.com/dynamically-add-subplots-to-figure-td23571.html
import matplotlib.pyplot as plt
# start with one
fig = plt.figure()
ax = fig.add_subplot(111)
This is a step-by-step guide for porting an application from MFC to wxWidgets based on my experience in porting Hippy.
:: adapted from http://stackoverflow.com/a/10945887/1810071 | |
@echo off | |
for /f "skip=1" %%x in ('wmic os get localdatetime') do if not defined MyDate set MyDate=%%x | |
for /f %%x in ('wmic path win32_localtime get /format:list ^| findstr "="') do set %%x | |
set fmonth=00%Month% | |
set fday=00%Day% | |
set today=%Year%-%fmonth:~-2%-%fday:~-2% | |
echo %today% |
#include "wx/wx.h" | |
#include "wx/dataview.h" | |
///////// | |
// Implement a simple model with 2 columns | |
// FileName FileSize | |
///////// | |
class DataModelNode; | |
WX_DEFINE_ARRAY_PTR(DataModelNode *, DataModelNodePtrArray); |
#include "wx/wx.h" | |
#include "wx/dataview.h" | |
///////// | |
// Implement a simple model with 2 columns | |
// FileName FileSize | |
///////// | |
class DataModelNode; | |
WX_DEFINE_ARRAY_PTR(DataModelNode *, DataModelNodePtrArray); |
/* fix_fft.c - Fixed-point in-place Fast Fourier Transform */ | |
/* | |
All data are fixed-point short integers, in which -32768 | |
to +32768 represent -1.0 to +1.0 respectively. Integer | |
arithmetic is used for speed, instead of the more natural | |
floating-point. | |
For the forward FFT (time -> freq), fixed scaling is | |
performed to prevent arithmetic overflow, and to map a 0dB | |
sine/cosine wave (i.e. amplitude = 32767) to two -6dB freq |
[mergetool] | |
prompt = false | |
keepBackup = false | |
keepTemporaries = false | |
[merge] | |
tool = winmerge | |
[mergetool "winmerge"] | |
name = WinMerge |
#include <iostream> | |
#include <vector> | |
#include <cstring> | |
#include <fstream> | |
#include <sstream> | |
#include <stdexcept> | |
#include <opencv2/opencv.hpp> | |
extern "C" { | |
#include <libavutil/imgutils.h> |