Skip to content

Instantly share code, notes, and snippets.

View drewdaemon's full-sized avatar

Drew Tate drewdaemon

  • Elastic
View GitHub Profile
@drewdaemon
drewdaemon / issues.js
Created April 16, 2024 15:43
Builds a list of GH issues for work log
console.log(Array.from(document.querySelectorAll('.Link--primary')).map(a => `${a.innerText} (${a.href})`).join('\n'))

INotificationRequest

Comes off the queue.

interface INotificationRequest {
	templateId: string;
	templateContext: any;
	subject: string;
	message?: string;
	groupId?: string;
	users: string | string[]
@drewdaemon
drewdaemon / reading_list_2021.md
Last active October 23, 2020 21:13
2021 Tech Reading List

2021 Technical Reading List

Title Description Reason for Choice
The Pragmatic Programmer: Your Journey To Mastery, 20th Anniversary Edition The updated edition of one of the most influential books ever written about being a good programmer. Heavy on principles and lighter on code. Seems like a good introduction to the year... and it's the book that gave me this idea.
Design Patterns: Elements of Reusable Object-Oriented Software The classic OO design patterns text. I've read this one piecemeal, but want to cover all the patterns in one fell swoop. I also want to get more familiar with UML and similar diagramming techniques.
Forge Your Future with Open Source: Build Your Skills. Build Your Network. Build the Future of Technology. Looks like a good how-to for open source project development. I've long had an interest in getting involved with open source projects, but I've found it to be a bit difficult. This book looks like a good orientation.
Java By Comparis
@drewdaemon
drewdaemon / app.scss
Last active September 19, 2019 02:14
#app-root {
width: 400px;
height: 100px;
padding: 2px;
h1 {
text-align: center;
color: darkblue;
font-weight: bold;
font-family: Helvetica;
{
"plugins": [
["@babel/plugin-transform-react-jsx", { "pragma":"h" }]
]
}
module.exports = {
mode: 'production',
entry: {
popup: './src/popup.jsx',
},
output: {
filename: '[name].js',
path: __dirname + '/dist'
},
module: {
@drewdaemon
drewdaemon / app.jsx
Last active September 18, 2019 04:35
import { h, Component } from 'preact';
class App extends Component {
render() {
return <div id="app-root"><h1>Preact Chrome Extension Starter</h1></div>
}
}
export default App;
import { h, render } from 'preact';
import App from './app/app';
render(<App />, document.body);
<!DOCTYPE html>
<html>
<head></head>
<body>
<script src="popup.js"></script>
</body>
</html>
{
"name": "Chrome Extension with Preact and Webpack",
"description": "",
"version": "0.0.0.1",
"browser_action": {
"default_title": "My Chrome Extension",
"default_popup": "popup.html"
},
"manifest_version": 2
}