View list-fonts.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fontCheck = new Set([ | |
// Windows 10 | |
'Arial', 'Arial Black', 'Bahnschrift', 'Calibri', 'Cambria', 'Cambria Math', 'Candara', 'Comic Sans MS', 'Consolas', 'Constantia', 'Corbel', 'Courier New', 'Ebrima', 'Franklin Gothic Medium', 'Gabriola', 'Gadugi', 'Georgia', 'HoloLens MDL2 Assets', 'Impact', 'Ink Free', 'Javanese Text', 'Leelawadee UI', 'Lucida Console', 'Lucida Sans Unicode', 'Malgun Gothic', 'Marlett', 'Microsoft Himalaya', 'Microsoft JhengHei', 'Microsoft New Tai Lue', 'Microsoft PhagsPa', 'Microsoft Sans Serif', 'Microsoft Tai Le', 'Microsoft YaHei', 'Microsoft Yi Baiti', 'MingLiU-ExtB', 'Mongolian Baiti', 'MS Gothic', 'MV Boli', 'Myanmar Text', 'Nirmala UI', 'Palatino Linotype', 'Segoe MDL2 Assets', 'Segoe Print', 'Segoe Script', 'Segoe UI', 'Segoe UI Historic', 'Segoe UI Emoji', 'Segoe UI Symbol', 'SimSun', 'Sitka', 'Sylfaen', 'Symbol', 'Tahoma', 'Times New Roman', 'Trebuchet MS', 'Verdana', 'Webdings', 'Wingdings', 'Yu Gothic', | |
// macOS | |
'American Typewriter', 'Andale Mono', 'Arial', 'Aria |
View v2.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"kind": "drive#fileList", | |
"etag": "\"dNzmxTQXf93-URXXV2e6HTjz4Uc\"", | |
"selfLink": "https://www.googleapis.com/drive/v2/files", | |
"nextPageToken": "~!!~AI9FV7TLkZbjkzrcrQWqhRUpOMAeA1WkjFDTn3zHXVv9Bigb-9iLCYw1O-ezzFljevtOfWIZHjy_rDWE0T7_taMq9ue72WfcfGr4r8VKaM-pqUFxxBP0o8rc8qCJPeQv_jatR0rlEjSnK8kw0WwyrsH5TniY5bdOrXh-_I1ikH26dtRCjTXQcQBAfaKhQapG63E5TNk4UdOcuvp3pGlIxKA7IP59ycgYEHFfGEN7cF3DUz9JnuCbjBjK3eS6XB1J8UqBVzgeL1kdRZo5j9lfMIC6sQHihLH9-haQR7pfqT6dbm-ffNtoCITzTuv4aCrP21Qbq5LqdzcZ", | |
"nextLink": "https://www.googleapis.com/drive/v2/files?pageToken=~!!~AI9FV7TLkZbjkzrcrQWqhRUpOMAeA1WkjFDTn3zHXVv9Bigb-9iLCYw1O-ezzFljevtOfWIZHjy_rDWE0T7_taMq9ue72WfcfGr4r8VKaM-pqUFxxBP0o8rc8qCJPeQv_jatR0rlEjSnK8kw0WwyrsH5TniY5bdOrXh-_I1ikH26dtRCjTXQcQBAfaKhQapG63E5TNk4UdOcuvp3pGlIxKA7IP59ycgYEHFfGEN7cF3DUz9JnuCbjBjK3eS6XB1J8UqBVzgeL1kdRZo5j9lfMIC6sQHihLH9-haQR7pfqT6dbm-ffNtoCITzTuv4aCrP21Qbq5LqdzcZ", | |
"incompleteSearch": false, | |
"items": [ | |
{ | |
"kind": "drive#file", |
View cppcheck.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
src\utils\ScopedWin.h:223:9: performance: When an object of a class is created, the constructors of all member variables are called consecutively in the order the variables are declared, even if you don't explicitly write them to the initialization list. You could avoid assigning 'prevPen' a value by passing the value to the constructor in the initialization list. [useInitializationList] | |
prevPen = (HPEN)SelectObject(hdc, pen); | |
^ | |
src\utils\ScopedWin.h:237:9: performance: When an object of a class is created, the constructors of all member variables are called consecutively in the order the variables are declared, even if you don't explicitly write them to the initialization list. You could avoid assigning 'prevBrush' a value by passing the value to the constructor in the initialization list. [useInitializationList] | |
prevBrush = (HBRUSH)SelectObject(hdc, pen); | |
^ | |
src\mui\TextRender.h:108:5: warning: Member variable 'TextRenderGdiplus::measureAlgo' is not initialized in the co |
View TabsCtrl.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Copyright 2022 the SumatraPDF project authors (see AUTHORS file). | |
License: Simplified BSD (see COPYING.BSD) */ | |
#include "utils/BaseUtil.h" | |
#include "utils/ScopedWin.h" | |
#include "utils/Dpi.h" | |
#include "utils/WinUtil.h" | |
#include "wingui/Layout.h" | |
#include "wingui/Window.h" |
View main.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
All crashes | |
ntdll.dll!RtlRaiseStatus+0x36 | |
ntdll.dll!RtlUnwindEx+0x5b3 | |
ntdll.dll!RtlUnwind+0xcd | |
libmupdf.dll!__longjmp_internal+0xe9 D:\a\_work\1\s\src\vctools\crt\vcruntime\src\eh\amd64\longjmp.asm+141 | |
libmupdf.dll!throw+0x54 mupdf\source\fitz\error.c+183 | |
libmupdf.dll!fz_rethrow+0xf mupdf\source\fitz\error.c+292 | |
libmupdf.dll!pdf_process_contents+0x1ea mupdf\source\pdf\pdf-interpret.c+1085 | |
libmupdf.dll!pdf_run_page_contents_with_usage_imp+0x3c1 mupdf\source\pdf\pdf-run.c+155 | |
libmupdf.dll!pdf_run_page_contents_with_usage+0xb8 mupdf\source\pdf\pdf-run.c+187 |
View main.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
All crashes | |
libmupdf.dll!pdf_cycle+0x24 mupdf\source\pdf\pdf-object.c+2420 | |
libmupdf.dll!pdf_load_colorspace_imp+0x35 mupdf\source\pdf\pdf-colorspace.c+365 | |
libmupdf.dll!load_indexed+0xaa mupdf\source\pdf\pdf-colorspace.c+209 | |
libmupdf.dll!pdf_load_colorspace_imp+0x31e mupdf\source\pdf\pdf-colorspace.c+446 | |
libmupdf.dll!pdf_load_image_imp+0x253 mupdf\source\pdf\pdf-image.c+124 | |
libmupdf.dll!pdf_load_image+0x59 mupdf\source\pdf\pdf-image.c+318 | |
libmupdf.dll!pdf_process_Do+0x159 mupdf\source\pdf\pdf-interpret.c+372 | |
libmupdf.dll!pdf_process_keyword+0x958 mupdf\source\pdf\pdf-interpret.c+803 | |
libmupdf.dll!pdf_process_stream+0x1eb mupdf\source\pdf\pdf-interpret.c+979 |
View main.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"github.com/gomarkdown/markdown" | |
"github.com/gomarkdown/markdown/parser" | |
) | |
const md = ` | |
- [level-1-b](#level-1) |
View main.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"encoding/json" | |
"github.com/tidwall/pretty" | |
) | |
var prettyOpts = pretty.Options{ | |
Width: 80, |
View main.cc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> // std::cout | |
#include <atomic> // std::atomic, std::memory_order_relaxed | |
#include <thread> // std::thread | |
std::atomic_int foo (0); | |
void set_foo(int x) { | |
foo.store(x); // set value atomically | |
} |
View main.cc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <algorithm> // std::sort | |
#include <iostream> | |
#include <vector> // std::vector | |
using namespace std; | |
int main() | |
{ | |
vector<int> a{3, 8, 1, 5, -8, 33, 4}; | |
sort( a.begin(), a.end() ); | |
int const n = a.size(); |
NewerOlder