Skip to content

Instantly share code, notes, and snippets.

http://www.microsoft.com/express/download/default.aspx#webInstall
.then( (data, status) =>
alert 'sucess' + status
@removeListModelById(id)
, (info, code) =>
alert 'sucess' + status
)
/*
Fluid App Userscript
FastMail web interface
URL pattern: *fastmail.fm/mail/*
*/
setTimeout(updateDockBadge, 3000);
setInterval(updateDockBadge, 5000);
INBOX_ONLY = true;
### 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:
@chroder
chroder / fluidapp.fastmail.js
Last active September 17, 2020 13:16
Userscript you can use with Fluid App to add a counter to the dock.
/*
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.
--- /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;
{
"widget": {
"type": "bubble",
"position": "right",
"enabled": true
},
"button": {
"translations": [
{
"language": 1,

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:

@chroder
chroder / App.js
Created September 17, 2018 12:53
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,
};
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" &&