Skip to content

Instantly share code, notes, and snippets.

View sunzhuoshi's full-sized avatar

sunzhuoshi sunzhuoshi

  • Shanghai, China
View GitHub Profile
@sunzhuoshi
sunzhuoshi / gist:86f2d5a7f3330e227762b0909372ca60
Last active October 11, 2017 05:42
google-closure-compiler-js webpack/gulp plugin externs issue quick fix
// add following code into webpack.config.js or gulpfile.js or webpack/gulp plugin file
// sample options
var options = {
languageIn: 'ECMASCRIPT6',
languageOut: 'ECMASCRIPT5',
compilationLevel: 'ADVANCED',
warningLevel: 'VERBOSE',
externs: ['externs.js']
}
#include <iostream>
#include <io.h>
#include <fcntl.h>
#include <Windows.h>
void print_last_error()
{
LPVOID lpMsgBuf;
DWORD dw = GetLastError();