Skip to content

Instantly share code, notes, and snippets.

View pjdicke's full-sized avatar

Paul Dickerson pjdicke

View GitHub Profile

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@pjdicke
pjdicke / Paint slack black.md
Created February 19, 2018 18:25 — forked from tadast/Paint slack black.md
Update the Mac Desktop slack CSS

In the console

export SLACK_DEVELOPER_MENU=true
open /Applications/Slack.app

In slack UI

right-click on anything -> inspect element

@pjdicke
pjdicke / postgres-cheatsheet.md
Created October 5, 2017 18:20 — forked from Kartones/postgres-cheatsheet.md
PostgreSQL command line cheatsheet

PSQL

Magic words:

psql -U postgres

Some interesting flags (to see all, use -h):

  • -E: will describe the underlaying queries of the \ commands (cool for learning!)
  • -l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)
@pjdicke
pjdicke / EmberChartComponent.js
Last active August 29, 2015 14:26 — forked from cybrox/EmberChartComponent.js
Use Chart.js as a simple Ember.js component
/**
* This is a very simple example of an ember component to integrate
* nnick/chart.js in an ember.js application. Basically, it is simply
* using the components hook to create a ChartJS canvas element.
* Additionally, it supports an update property that allows you to
* let the chart re-rendet if your data or options change. Chart.js
* doesn't support updating its data so this will just create a new
* chart on the given canvas.
*
* Example usage in a handlebars template:
@pjdicke
pjdicke / HTML5
Created May 28, 2012 19:03
HTML5: Starting Template
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Updte Title</title>
<link rel="stylesheet" href="css/somestyle.css">
</head>
<body>
<!-- start html -->
<script src="js/some.js"></script>