Skip to content

Instantly share code, notes, and snippets.

View Bill77's full-sized avatar

Bill Chen Bill77

  • Elekta
  • Sunnyvale, CA
View GitHub Profile
@Bill77
Bill77 / _.md
Last active August 29, 2015 14:10
Line Graph Vis
@Bill77
Bill77 / _.md
Last active August 29, 2015 14:10
Line Graph Vis
@Bill77
Bill77 / svg-embed.js
Created October 22, 2015 17:54
A conversion of (an older version of) svg4everybody to an angular directive. Since the functional testing was flaky, we decided to always embed the svg, thus the naming. :)
// Conversion of svg4Everybody into angular format by Bill Chen
// https://github.com/jonathantneal/svg4everybody
(function() {
'use strict';
angular.module('webApp')
.directive('use', svgEmbed);
svgEmbed.$inject = ['$http'];
@Bill77
Bill77 / index.html
Created August 4, 2023 22:33
Electron browserView.webContents.close() error
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<!-- https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP -->
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'">
<link href="./styles.css" rel="stylesheet">
<title>Hello World!</title>
</head>
<body>