git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
// Just before switching jobs: | |
// Add one of these. | |
// Preferably into the same commit where you do a large merge. | |
// | |
// This started as a tweet with a joke of "C++ pro-tip: #define private public", | |
// and then it quickly escalated into more and more evil suggestions. | |
// I've tried to capture interesting suggestions here. | |
// | |
// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_, | |
// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant, |
#pragma once | |
#include <stdint.h> | |
#pragma pack(push, 8) | |
#if __cplusplus >= 201103L || (__cplusplus && _MSC_VER >= 1900) | |
#define GOB_DISALLOW_COPYING(type) type(const type&) = delete; | |
#else | |
#define GOB_DISALLOW_COPYING(type) |
// Sample custom iterator. | |
// By perfectly.insane (http://www.dreamincode.net/forums/index.php?showuser=76558) | |
// From: http://www.dreamincode.net/forums/index.php?showtopic=58468 | |
#include <iostream> | |
#include <vector> | |
#include <algorithm> | |
#include <iterator> | |
#include <cassert> |
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
ID: 00007FFC8D287130 | |
NAME: Conv (Convolution) | |
CREATION | |
NAME: InputResource | |
Type: GPU DESCRIPTOR HANDLE CBV SRV UAV | |
Input/Output: | |
STRUCTOFFSET: 0 | |
NAME: FilterResource |
// float->half variants. | |
// by Fabian "ryg" Giesen. | |
// | |
// I hereby place this code in the public domain, as per the terms of the | |
// CC0 license: | |
// | |
// https://creativecommons.org/publicdomain/zero/1.0/ | |
// | |
// float_to_half_full: This is basically the ISPC stdlib code, except | |
// I preserve the sign of NaNs (any good reason not to?) |
/* dependencies */ | |
#pragma comment(lib, "dxva2") | |
#pragma comment(lib, "user32") | |
#include <lowlevelmonitorconfigurationapi.h> | |
typedef struct _MONITORPOWERPARAM | |
{ | |
LPCWSTR szPhysicalMonitorDescription; | |
BOOL bPowerOn; | |
} MONITOR_POWER_PARAM, *PMONITOR_POWER_PARAM; |
using System.Windows.Automation; | |
// WINDOWS CREDENTIAL UI AUTOMATION by 3735943886 | |
/* | |
Credential Dialog Xaml Host | |
- TextBlock / WindowLogo / | |
- TextBlock / / Windows 보안 | |
- Button / CloseButton / 닫기 | |
- ScrollViewer / / |
/* for Devpkey */ | |
#define INITGUID | |
/* dependencies */ | |
#pragma comment (lib, "SetupAPI") | |
#include <windows.h> | |
#include <SetupAPI.h> | |
#include <Devpkey.h> | |
VOID SetDeviceState(LPCWSTR lpszHardwareId, DWORD dwState) |