Skip to content

Instantly share code, notes, and snippets.

View ialexpovad's full-sized avatar
:electron:
I may be slow to respond.

nystagmus ialexpovad

:electron:
I may be slow to respond.
View GitHub Profile
@maximecharriere
maximecharriere / CGAL_installation_MSVC.md
Last active May 3, 2024 13:36
This tutorial will guide you through the different steps to install CGAL and its third party libraries

Installation of CGAL using MSVC on Windows

by @maximecharriere

This tutorial will guide you through the different steps to install CGAL and its third party libraries.
The purpose of this tutorial is that you don't have to spend weeks like me fighting to make them all work.

Feel free to comment on the gist comment section to make corrections or improvements !


@jeremymaya
jeremymaya / dotnet-macOS.md
Last active April 12, 2024 11:36
ASP.NET Core Development with macOS
@pb111
pb111 / Support Vector Machines with Python and Scikit-Learn.ipynb
Created May 13, 2019 00:51
Support Vector Machines with Python and Scikit-Learn
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

The PATH is an important concept when working on the command line. It's a list of directories that tell your operating system where to look for programs, so that you can just write script instead of /home/me/bin/script or C:\Users\Me\bin\script. But different operating systems have different ways to add a new directory to it:

Windows

  1. The first step depends which version of Windows you're using:
  • If you're using Windows 8 or 10, press the Windows key, then search for and
@superlucky8848
superlucky8848 / GetFileVersion.cpp
Created April 4, 2016 02:25
C++ Get file version and return formatted string(Windows)
#pragma comment(lib,"Version.lib")
#define MAX_LINE_LENGTH 4096
CString GetFileVersion(LPCTSTR filePath)
{
CString ret(_T(""));
DWORD dummy;
DWORD dwSize = GetFileVersionInfoSize(filePath, &dummy);
if (dwSize == 0) ret = _T("Error retriving version(Module Not Found)");
@wontoncc
wontoncc / notification.cpp
Created February 10, 2014 09:28
An executable to popup a balloon tip in notification area on Windows, written in C++.
// To popup a balloon tip in notification area.
//
// Usage:
// notification.exe [title] [content] [timeout]
// * custom icon can be used when named "notify.ico", which should stay
// in the current directory.
//
// How to compile:
// g++ notification.cpp -o notification.exe -lshlwapi
// Passed on mingw(http://nuwen.net/mingw.html).
@propella
propella / MyModel.cpp
Created July 3, 2011 06:11
Qt drag and drop test
#include "MyModel.h"
MyModel::MyModel(const QStringList &strings, QObject *parent)
: QAbstractListModel(parent)
{
_list = strings;
}
// columnCount はデフォルトの実装があるので rowCount のみ実装します。
int MyModel::rowCount(const QModelIndex &) const