Skip to content

Instantly share code, notes, and snippets.

View phillipskevin's full-sized avatar

Kevin Phillips phillipskevin

View GitHub Profile
@phillipskevin
phillipskevin / auto-automount.md
Last active January 8, 2018 21:14
auto-automount test

This tests the performance impact of "automount"ing automatically.

@phillipskevin
phillipskevin / index.html
Last active February 6, 2018 22:26
onteardown-test
<!doctype html>
<script src="./node_modules/steal/steal.js"></script>
@phillipskevin
phillipskevin / index.html
Last active February 7, 2018 20:37
can-view-live memory leak
<!doctype html>
<script src="./node_modules/steal/steal.js"></script>
@phillipskevin
phillipskevin / 0-readme.md
Last active September 11, 2024 07:16
chrome-extension-accessing-dom-and-window

Description

This gist shows two techniques for (simultaneously) accessing the DOM and the window from a Chrome extension

solution 1: eval aka the easy way

You can run arbitrary code in the page using chrome.devtools.inspectedWindow.eval( ... )

This solution is shown in the files below prefixed with 1-.

@phillipskevin
phillipskevin / index.html
Last active May 8, 2019 21:53
can-observe/make-prototype with stache
<!doctype html>
<button>-</button>
<script src="./node_modules/steal/steal.js" main></script>
@phillipskevin
phillipskevin / approaches.md
Last active July 22, 2019 18:04
CanJS marketing approaches

Easy all the way down

Easy to get started

  • Load an mjs file, no build
  • Create a class
  • customElements.define
  • Works with everything

Easy to do the right thing