...with the content like this:
A ICON MOVEABLE PURE LOADONCALL DISCARDABLE "./hc05.ico"
windres -i ./res.rc --input-format=rc -o icon.res -O coff
`
{ | |
"cmd": ["g++", "./*.cpp", "-o", "${file_base_name}.exe"], | |
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$", | |
"working_dir": "${file_path}", | |
"selector": "source.c, source.c++", | |
"variants": | |
[ | |
{ | |
"name": "Run(native)", | |
"cmd": ["git-bash", "-c", "./${file_base_name}.exe;echo -e '\\e[0;32m- press any key to continue -';read;"], |
Windows Registry Editor Version 5.00 | |
[HKEY_CLASSES_ROOT\Directory\Background\shell\open_msys2] | |
@="Open MSYS2 here" | |
[HKEY_CLASSES_ROOT\Directory\Background\shell\open_msys2\command] | |
@="c:\\msys64\\usr\\bin\\mintty.exe /bin/sh -lc 'cd \"$(cygpath \"%V\")\"; exec bash'" | |
[HKEY_CLASSES_ROOT\Folder\shell\open_msys2] | |
@="Open MSYS2 here" |
#include <boost/asio.hpp> | |
#include <boost/property_tree/ptree.hpp> | |
#include <boost/property_tree/json_parser.hpp> | |
#include <boost/filesystem.hpp> | |
#include <iostream> | |
#include "apiKey.h" | |
using namespace boost::asio::ip; | |
using namespace boost::asio; | |
using namespace std; | |
using namespace boost::filesystem; |
// init function, just a test | |
function init() { | |
$(".accordion").on("click", ".accordion-header", function() { | |
$(this).toggleClass("active").next().slideToggle(); | |
}); | |
return true; | |
} | |
// run it when it;s ready | |
$(document).ready(init); |
If you are using this style and when you erase()
items in vector, be careful dont perform ++iterator
.
Since the pointer to the item that you erase()
, it already release, so the pointer target will become unknown,
and causing undefined behaviour if the iteration keep going.
It is possible cause the vector iteration out-of-bound.
template <class T>
void Container<T>::removeValue(T *value, bool deletePointer)
{
for (iterator i = values.begin(); i != values.end(); ) {
Based on some tinkering I was doing with qemu for some ARM dev, I think I may have found a technique to allow general 32-bit support in WSL. Hat-tip to @therealkenc for the concept 😁
Edit: requires "Fall Creators Update", 1709, build 16299 or newer (I think)
Presuming a fresh Ubuntu WSL instance, you'll need to install the qemu-user-static package, add the i386 binfmt, enable the i386 architecture, update your package lists, and install some i386 packages:
Install qemu and binfmt sudo apt update sudo apt install qemu-user-static
The class data model is a binding type for javafx bar chart.
public static class DataModel {
private final SimpleStringProperty title;
private final SimpleStringProperty price;
private final SimpleStringProperty url;
private final SimpleStringProperty postedd;