Skip to content

Instantly share code, notes, and snippets.

@pascalpp
pascalpp / Pivotal Tracker Fluid JS
Last active June 22, 2016 21:17
A userscript for Pivotal Tracker (http://www.pivotaltracker.com) as a Fluid app (http://fluidapp.com).
(function() {
'use strict';
var exports = this, tracker = _.namespace(exports, 'tracker');
/////////////////////////////
// automatically resize all open panels to fill the window when resizing
// or when toggling the side bar
var resizePanels = function() {
@pascalpp
pascalpp / Pivotal Tracker Fluid CSS
Last active August 29, 2015 13:57
A CSS userstyle for Pivotal Tracker (http://www.pivotaltracker.com) as a Fluid app (http://fluidapp.com).
body * {
font-family: Helvetica !important;
}
header.main {
min-width: 0 !important;
padding-right: 11px !important;
}
.epic_stories .preview .label.epic {
@pascalpp
pascalpp / backbone.when.js
Last active August 29, 2015 13:57
Backbone.When
define(function(require) {
'use strict';
/* MODULE DEPENDENCIES */
var Backbone = require('backbone'),
_ = require('underscore');
/*
Backbone.When
2014-02-20 by pascal
@pascalpp
pascalpp / backbone.promise.js
Created March 20, 2014 16:51
A promise system built on top of Backbone.When
define(function(require) {
'use strict';
/* MODULE DEPENDENCIES */
var
Backbone = require('backbone'),
When = require('lib/backbone.when'),
var log = console.log;
@pascalpp
pascalpp / keybase.md
Created September 24, 2014 04:20
Keybase Github Verification

Keybase proof

I hereby claim:

  • I am pascalpp on github.
  • I am pascalpp (https://keybase.io/pascalpp) on keybase.
  • I have a public key whose fingerprint is 06AE F2C0 2BCC 3213 2E94 D6D5 828C 5AD8 E278 C9F9

To claim this, I am signing this object:

@pascalpp
pascalpp / router
Last active August 29, 2015 14:10
Dynamic router idea
define(function(require) {
'use strict';
// override Backbone.History.prototype.route
// to allow for handlers to have a router associated with them
// this allows us to remove routes dynamically e.g. in router.destroy (see below)
Backbone.History.prototype.route = function(route, callback, router) {
this.handlers.unshift({router: router, route: route, callback: callback});
};
@pascalpp
pascalpp / mocha-custom.css
Last active August 29, 2015 14:10
Prettier Mocha Stats
/* load after mocha.css */
body {
margin: 0;
padding: 0;
}
#mocha {
margin: 75px 15px;
}
ul#mocha-stats {
Verifying I am +pascalpp on my passcard. https://onename.com/pascalpp
@pascalpp
pascalpp / styles.less
Last active August 24, 2017 02:22
my styles.less for Atom
/*
* Your Stylesheet
*
* This stylesheet is loaded when Atom starts up and is reloaded automatically
* when it is changed.
*
* If you are unfamiliar with LESS, you can read more about it here:
* http://www.lesscss.org
*/
@pascalpp
pascalpp / myview.js
Last active November 23, 2015 02:40
using a CSS module 'scope' with less and webpack's css loader
'use strict';
var styles = require('./styles.less');
// styles => { 'scope': 'oasduf98aus9df8ja9s8d' }
// this view uses the given scope as its classname
// so buttons in my view will be gold and green
// the color of buttons outside my view will not be affected
module.exports = Marionette.LayoutView.extend({