Skip to content

Instantly share code, notes, and snippets.

👻
Codin'

Christopher Nadeau chroder

👻
Codin'
Block or report user

Report or block chroder

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Type String.kmmacros
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<array>
<dict>
<key>Activate</key>
<string>Normal</string>
<key>CreationDate</key>
<real>587466904.02408898</real>
<key>Macros</key>
View simple-phrase-formatter.js
const phrases = {
"new_messages": "You have 1 new message",
"new_messages_plural": "You have {{count}} new messages"
}
function formatPhrase(id, vars = {}) {
// If there's a count, then we
// we need to select the plural variant
if (
typeof vars.count != "undefined" &&
View App.js
import React from 'react';
import PropTypes from 'prop-types';
// Import the standard Button from the default component library
import { Button } from '@deskpro/apps-components';
class App extends React.Component {
static propTypes = {
dpapp: PropTypes.object.isRequired,
};
View keybase.md

Keybase proof

I hereby claim:

  • I am chroder on github.
  • I am chroder (https://keybase.io/chroder) on keybase.
  • I have a public key whose fingerprint is 5861 88D8 5AEE A202 27FA 2573 4B78 9729 FE2D 4D72

To claim this, I am signing this object:

View widget_options.json
{
"widget": {
"type": "bubble",
"position": "right",
"enabled": true
},
"button": {
"translations": [
{
"language": 1,
View pt-online-schema-change.patch
--- /a/pt-online-schema-change 2016-03-07 09:09:45.000000000 +0000
+++ /b/pt-online-schema-change 2016-06-15 12:51:38.635743830 +0100
@@ -10031,11 +10031,7 @@
# This is in contrast to previous behavior were we added underscores
# indefinitely, sometimes exceeding the allowed name limit
# https://bugs.launchpad.net/percona-toolkit/+bug/1215587
- if ( $sql =~ /CONSTRAINT `_/ ) {
- $sql =~ s/^ CONSTRAINT `_/ CONSTRAINT `/gm;
- } else {
- $sql =~ s/^ CONSTRAINT `/ CONSTRAINT `_/gm;
@chroder
chroder / fluidapp.fastmail.js
Last active Sep 22, 2018
Userscript you can use with Fluid App to add a counter to the dock.
View fluidapp.fastmail.js
/*
Fluid App Userscript
FastMail web interface
URL pattern: *www.fastmail.com*
*/
// For best results, make sure to turn on desktop notifications
// in fastmail. Otherwise the counter will only update every 90s
// instead of instantly.
View gist:2b4701cf283fff531149
### Keybase proof
I hereby claim:
* I am chroder on github.
* I am chroder (https://keybase.io/chroder) on keybase.
* I have a public key whose fingerprint is DAB6 AD99 DEEA 3B9A AB13 0578 03C3 32FE DCBC 4B47
To claim this, I am signing this object:
View fluidapp-fastmail.js
/*
Fluid App Userscript
FastMail web interface
URL pattern: *fastmail.fm/mail/*
*/
setTimeout(updateDockBadge, 3000);
setInterval(updateDockBadge, 5000);
INBOX_ONLY = true;
View f.coffee
.then( (data, status) =>
alert 'sucess' + status
@removeListModelById(id)
, (info, code) =>
alert 'sucess' + status
)
You can’t perform that action at this time.