Skip to content

Instantly share code, notes, and snippets.

View philipp-spiess's full-sized avatar

Philipp Spiess philipp-spiess

View GitHub Profile
@philipp-spiess
philipp-spiess / README.md
Last active March 12, 2024 15:44
Creating VS Code Extension Profiles

Creating VS Code Extension Profiles

The VS Code extension runtime uses Node.js (via Electron) and you can thus use Node.js related debugging tool.

Here's a quick guide on how to record performances traces of VS Code extensions:

  1. You have to start VS Code with a special runtime flag. In macOS, you can do so via the terminal like this:

/Applications/Visual\ Studio\ Code.app/Contents/MacOS/Electron --inspect-extensions=9333

@philipp-spiess
philipp-spiess / PSPDFKit.js
Created October 17, 2017 15:11
PSPDFKit for Web Code Example
import PSPDFKit, { Geometry } from "pspdfkit"
const instance = await PSPDFKit.load({
container: "#pdf-view",
pdf: "/sales-report.pdf"
});
instance.setViewState(viewState => viewState.zoomIn());
const annotations = await instance.getAnnotations(0);
@philipp-spiess
philipp-spiess / First-Time Contributors - 25 Oct 2019.md
Last active October 25, 2019 13:17
First-Time Contributors - This Week in React ⚛️- Issue 42 - 25 Oct 2019

🔥 85 New First-Time Contributors 🔥

New contributors land their first PR in the react or documentation repositories every week.

Thank you to all these amazing people that help to jump-start our internationalization effort and push React forward every week. You are incredible. 💕

@philipp-spiess
philipp-spiess / First-Time Contributors - 27 Sept 2019.md
Created September 27, 2019 15:16
First-Time Contributors - This Week in React ⚛️- Issue 41 - 27 Sept 2019

🔥 45 New First-Time Contributors 🔥

New contributors land their first PR in the react or documentation repositories every week.

Thank you to all these amazing people that help to jump-start our internationalization effort and push React forward every week. You are incredible. 💕

@philipp-spiess
philipp-spiess / fix.js
Last active September 22, 2019 08:39
Safari Zoom Issue
// "Reminder" for mobile Safari to not enable default user scaling. When
// testing a PSPDFKit release we noticed that iOS 12.4.1 on _some_ devices
// (iPhone X) was ignoring the user-scalable part causing it to zoom in
// whenever a node is focused with a below 16px font-size.
//
// We found out that updating the content meta tag's user-scalable part from
// 0 to no (which is equivalent and also supported on iOS) after a bit would
// be enough to get the desired behavior.
setTimeout(function() {
const viewport = document.querySelector('meta[name="viewport"]');
@philipp-spiess
philipp-spiess / First-Time Contributors - 6 Sept 2019.md
Created September 6, 2019 14:33
First-Time Contributors - This Week in React ⚛️- Issue 40 - 6 Sept 2019

🔥 69 New First-Time Contributors 🔥

New contributors land their first PR in the react, devtools, or documentation repositories every week.

Thank you to all these amazing people that help to jump-start our internationalization effort and push React forward every week. You are incredible. 💕

@philipp-spiess
philipp-spiess / First-Time Contributors - 9 Aug 2019.md
Created August 9, 2019 14:16
First-Time Contributors - This Week in React ⚛️- Issue 39 - 9 Aug 2019

🔥 37 New First-Time Contributors 🔥

New contributors land their first PR in the react, devtools, or documentation repositories every week.

Thank you to all these amazing people that help to jump-start our internationalization effort and push React forward every week. You are incredible. 💕

@philipp-spiess
philipp-spiess / First-Time Contributors - 26 Jul 2019.md
Created July 26, 2019 15:14
First-Time Contributors - This Week in React ⚛️- Issue 38 - 26 Jul 2019

🔥 20 New First-Time Contributors 🔥

New contributors land their first PR in the react, devtools, or documentation repositories every week.

Thank you to all these amazing people that help to jump-start our internationalization effort and push React forward every week. You are incredible. 💕

@philipp-spiess
philipp-spiess / First-Time Contributors - 12 Jul 2019.md
Created July 12, 2019 14:17
First-Time Contributors - This Week in React ⚛️- Issue 37 - 12 Jul 2019

🔥 54 New First-Time Contributors 🔥

New contributors land their first PR in the react, devtools, or documentation repositories every week.

Thank you to all these amazing people that help to jump-start our internationalization effort and push React forward every week. You are incredible. 💕

@philipp-spiess
philipp-spiess / First-Time Contributors - 28 Jun 2019.md
Created June 28, 2019 15:06
First-Time Contributors - This Week in React ⚛️- Issue 36 - 28 Jun 2019

🔥 31 New First-Time Contributors 🔥

New contributors land their first PR in the react, devtools, or documentation repositories every week.

Thank you to all these amazing people that help to jump-start our internationalization effort and push React forward every week. You are incredible. 💕