Skip to content

Instantly share code, notes, and snippets.

View j2doll's full-sized avatar
πŸ’­
1️⃣ πŸ˜„ 2️⃣ 😭

Jay Two j2doll

πŸ’­
1️⃣ πŸ˜„ 2️⃣ 😭
View GitHub Profile
@j2doll
j2doll / CArchiveInternals.cpp
Created March 30, 2018 03:12
CArchive Internal
template< typename BaseType, class StringTraits >
CArchive& CArchive::operator<<(const ATL::CStringT<BaseType, StringTraits>& str)
{
AfxWriteStringLength(*this, str.GetLength(), sizeof(BaseType) == sizeof(wchar_t));
Write(str, str.GetLength()*sizeof(BaseType));
return *this;
}
@j2doll
j2doll / AfxWriteStringLength.cpp
Created March 30, 2018 03:13
AfxWriteStringLength
void AFXAPI AfxWriteStringLength(CArchive& ar, UINT_PTR nLength, BOOL bUnicode)
{
if (bUnicode)
{
// Tag Unicode strings
ar<<(BYTE)0xff;
ar<<(WORD)0xfffe;
}
if (nLength < 255)
@j2doll
j2doll / gist:cc582c983daa04294d5191387af3da21
Last active July 25, 2024 07:18 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

gist 원본 : https://gist.github.com/rxaviers/7360908

People

:bowtie: :bowtie: πŸ˜„ :smile: πŸ˜† :laughing:
😊 :blush: πŸ˜ƒ :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
πŸ˜† :satisfied: 😁 :grin: πŸ˜‰ :wink:
@j2doll
j2doll / GitDeleteCommands.ps1
Created May 25, 2018 00:12 — forked from cmatskas/GitDeleteCommands.ps1
Git Delete Branch commands
## Delete a remote branch
$ git push origin --delete <branch> # Git version 1.7.0 or newer
$ git push origin :<branch> # Git versions older than 1.7.0
## Delete a local branch
$ git branch --delete <branch>
$ git branch -d <branch> # Shorter version
$ git branch -D <branch> # Force delete un-merged branches
## Delete a local remote-tracking branch
@j2doll
j2doll / check-qt-version.pro
Created June 1, 2018 04:43
check Qt version
lessThan(QT_MAJOR_VERSION, 5) {
error("Cannot build current Qt MQTT sources with Qt version $${QT_VERSION}.")
}
@j2doll
j2doll / configure_muliple_gcc.sh
Created June 9, 2018 14:46 — forked from SunnyRaj/configure_muliple_gcc.sh
Configure multiple GCC versions on ubuntu
#!/usr/bin/env bash
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt update
sudo update-alternatives --remove-all gcc
sudo update-alternatives --remove-all g++
sudo apt-get install -y gcc-4.8 g++-4.8 gcc-4.9 g++-4.9 gcc-5 g++-5 gcc-6 g++-6 gcc-7 g++-7
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 10
// STL-exception-sample-example.cpp
// STL exception sample
// How to build:
// 1) gcc
// g++ -lstdc++ main.cpp
// 2) visual studio (visual c++)
// just do it!
//
@j2doll
j2doll / Template-metaprogramming.cpp
Last active June 15, 2018 00:08
Template metaprogramming
//
// Template metaprogramming
//
/* ν…œν”Œλ¦Ώ λ©”νƒ€ν”„λ‘œκ·Έλž˜λ°(template metaprogramming)은 ν…œν”Œλ¦Ώμ„ μ‚¬μš©ν•˜λŠ” ν”„λ‘œκ·Έλž˜λ° κΈ°λ²•μœΌλ‘œ,
μ»΄νŒŒμΌλŸ¬μ—κ²Œ ν”„λ‘œκ·Έλž¨ μ½”λ“œλ₯Ό μƒμ„±ν•˜λ„λ‘ ν•˜λŠ” 방식이닀. μ΄λŸ¬ν•œ 기법은 컴파일 μ‹œμ μ— λ§Žμ€ 것을
κ²°μ •ν•˜λ„λ‘ ν•˜μ—¬, μ‹€ν–‰ μ‹œμ μ˜ 계산을 쀄여쀀닀. */
#include <cstdio>
#include <cstdlib>
@j2doll
j2doll / opencv_basic.cpp
Created June 15, 2018 00:09
Hello, OpenCV
// opencv_basic.cpp
//
#include "stdafx.h"
// Test environment (Feb 26, 2018)
// - OpenCV 3.4.0
// - Visual Studio 2017 win64(x64)
// environment value 'OPENCV_DIR' is 'D:\opencv\build\x64\vc15' (for example)
@j2doll
j2doll / Makefile
Last active June 15, 2018 00:12
Jump to ncurses
#
# Makefile
#
all:
gcc -o curhello curhello.cpp -lncurses
gcc -o curin1 curin1.cpp -lncurses
clean: