Skip to content

Instantly share code, notes, and snippets.

View danielfarrell's full-sized avatar

Daniel Farrell danielfarrell

View GitHub Profile
BackSupport.Preventable = (object) ->
prototype = object.prototype
init = prototype.initialize
prototype.initialize = ->
if @preventable
_.each @preventable, (func) =>
@[func] = _.wrap @[func], (func, e) =>
e.preventDefault()
func = _.bind func, @
@danielfarrell
danielfarrell / gist:2870306
Created June 4, 2012 19:24
pdf2image patch for osx
diff --git a/src/pdf2image.cc b/src/pdf2image.cc
index d0d5c95..4a8d359 100644
--- a/src/pdf2image.cc
+++ b/src/pdf2image.cc
@@ -295,12 +295,6 @@ int main(int argc, char *argv[]) {
globalParams->setPSPaperHeight(h);
globalParams->setPSNoText(gFalse);
- psOut = new PSOutputDev(psFileName->getCString(), doc->getXRef(),
- doc->getCatalog(), firstPage, lastPage, psModePS);
@danielfarrell
danielfarrell / gist:35816a5cdf6add5bec57
Last active December 1, 2019 21:31
Scrumban Process

Scrumban Process

Description of document

The purpose of this document is to outline the Scrumban process for use in Mobelux projects. This is a living document, and subject to change.

Overview

Some teams may choose to implement a Scrumban(Hybrid Scrum and Kanban) process on development projects. This is a good fit for new products and other projects that could have lots of changes or team availability inconsistencies.

timezone = forms.ChoiceField(choices=[('', 'Timezone')] + [(x, x) for x in common_timezones])

Keybase proof

I hereby claim:

  • I am danielfarrell on github.
  • I am danielfarrell (https://keybase.io/danielfarrell) on keybase.
  • I have a public key ASBB3j1toJr6T5Hl_UWECdXAnBmGajjX23ib78qAwWnZ2Qo

To claim this, I am signing this object:

@danielfarrell
danielfarrell / graphene-interface.py
Created June 4, 2017 15:38
Graphene Interface Example
import graphene
from graphene_django.types import DjangoObjectType
class Customer(graphene.Interface):
id = graphene.Int()
email = graphene.String()
name = graphene.String()
first_name = graphene.String()
last_name = graphene.String()
phone = graphene.String()