Skip to content

Instantly share code, notes, and snippets.

View jkleinsc's full-sized avatar
😎

John Kleinschmidt jkleinsc

😎
  • Microsoft
View GitHub Profile
@jkleinsc
jkleinsc / child.html
Last active December 17, 2018 22:28
Electron Fiddle Gist
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Child Window</title>
</head>
<body>
<h1>Child Window</h1>
<!-- All of the Node.js APIs are available in this renderer process. -->
We are using Node.js <script>document.write(process.versions.node)</script>,
@jkleinsc
jkleinsc / index.html
Created November 1, 2018 15:50
Electron Fiddle Gist
<html>
<head>tester</head>
<body>
Click on the page to trigger print.
</body>
<script>
document.addEventListener('click', function(evt) {
window.print();
})
</script>
@jkleinsc
jkleinsc / index.html
Created September 13, 2018 13:30
Electron Fiddle Gist
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Hello World!</title>
</head>
<body>
<h1>Hello World!</h1>
<!-- All of the Node.js APIs are available in this renderer process. -->
We are using Node.js <script>document.write(process.versions.node)</script>,
@jkleinsc
jkleinsc / a.html
Last active September 5, 2018 19:57
Electron Fiddle Gist
<html>
<link rel="icon" type="image/png" href="/favicon.png"/>
<link rel="icon" type="image/png" href="http://test.com/favicon.png"/>
<meta http-equiv="content-security-policy" content="script-src 'self' 'unsafe-inline'" />
<body>
<script type="text/javascript" charset="utf-8">
console.log('a');
document.title = "test"
</script>
</body>
@jkleinsc
jkleinsc / chromebook.log
Created September 26, 2013 15:10
File write times for https://github.com/creationix/git-browser chrome extension using HTML5 FileSystem api. Deskconsole.log - Chrome 29.0.1547.76 on Ubuntu 12.04 with Xeon Processor X5550 2.66 GHz Chromebook.log - Samsung Chromebook 550 running chrome 29.0.1547.74
write github.com_creationix_conquest.git/objects/39/a63c86fed320e06c84af7cf311c38f4395ff00: 13.377ms app.js:7141
write github.com_creationix_conquest.git/objects/ed/c154eab21edfcda42e2087dcba02eeffd6550d: 10.454ms app.js:7141
write github.com_creationix_conquest.git/objects/70/9d18d775cf6f970db26fa771da347fbb7d9151: 11.923ms app.js:7141
write github.com_creationix_conquest.git/objects/2a/0008d86420559d2ebe1cf8962e92b31d75d73c: 8.872ms app.js:7141
write github.com_creationix_conquest.git/objects/5d/6eca688224279ffaaa8f3675521f00c6696936: 6.208ms app.js:7141
write github.com_creationix_conquest.git/objects/17/0ac70fd9f119c808eb860d7d76418544daf433: 10.208ms app.js:7141
write github.com_creationix_conquest.git/objects/ac/9582c7e108d09d61de6260d9fea7f3730a9fb3: 4.473ms app.js:7141
write github.com_creationix_conquest.git/objects/5e/a500d3c9415af778c6d3643244f6fdb27d4507: 13.736ms app.js:7141
write github.com_creationix_conquest.git/objects/2c/55ff9bb056ea3a35cc001a08a8c1e8e4e71593: 14.624ms app.js:7141
write gith