-
Uses native vim regexes (which are slightly different from the regexes used by grep, ack, ag, etc) so the patterns are the same as with vim's within-file search patterns.
You can do a normal within-file search first, then re-use the same pattern to
//----------------------------------------------------------- | |
// Play an audio stream on the default audio rendering | |
// device. The PlayAudioStream function allocates a shared | |
// buffer big enough to hold one second of PCM audio data. | |
// The function uses this buffer to stream data to the | |
// rendering device. The inner loop runs every 1/2 second. | |
//----------------------------------------------------------- | |
#include <iostream> | |
#include <windows.h> |
# Check gist comments to verify system PATH and or adapt it. | |
wget https://ftp.gnu.org/gnu/glibc/glibc-2.18.tar.gz | |
tar zxvf glibc-2.18.tar.gz | |
cd glibc-2.18 | |
mkdir build | |
cd build | |
../configure --prefix=/opt/glibc-2.18 | |
make -j4 | |
sudo make install | |
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/glibc-2.18/lib |
Uses native vim regexes (which are slightly different from the regexes used by grep, ack, ag, etc) so the patterns are the same as with vim's within-file search patterns.
You can do a normal within-file search first, then re-use the same pattern to
function agetostr(age) { | |
var txt; | |
count = age % 100; | |
if (count >= 5 && count <= 20) { | |
txt = 'лет'; | |
} else { | |
count = count % 10; | |
if (count == 1) { | |
txt = 'год'; | |
} else if (count >= 2 && count <= 4) { |
#pragma once | |
#include <windows.h> | |
#include <string> | |
inline std::wstring multi2wide(const std::string& str, UINT codePage = CP_THREAD_ACP) | |
{ | |
if (str.empty()) | |
{ | |
return std::wstring(); |
Here are the simple steps needed to create a deployment from your local GIT repository to a server based on this in-depth tutorial.
You are developing in a working-copy on your local machine, lets say on the master branch. Most of the time, people would push code to a remote server like github.com or gitlab.com and pull or export it to a production server. Or you use a service like deepl.io to act upon a Web-Hook that's triggered that service.
#include <windows.h> | |
#include <uxtheme.h> | |
#include <vssym32.h> | |
// window is a top-level HWND | |
static HFONT get_control_font_textstyle(void) | |
{ | |
HTHEME textstyle = OpenThemeData(window, VSCLASS_TEXTSTYLE); | |
if (!textstyle) |
#include "H264_Decoder.h" | |
H264_Decoder::H264_Decoder(h264_decoder_callback frameCallback, void* user) | |
:codec(NULL) | |
,codec_context(NULL) | |
,parser(NULL) | |
,fp(NULL) | |
,frame(0) | |
,cb_frame(frameCallback) | |
,cb_user(user) |