Skip to content

Instantly share code, notes, and snippets.

View marc-hughes's full-sized avatar

Marc Hughes marc-hughes

  • Hughes Software Development LLC
  • Auburn, MA
View GitHub Profile
@marc-hughes
marc-hughes / 1loggingmixin.dart
Last active January 2, 2016 00:09
Some Dart Mixins I've been working on.
library loggermixins;
import 'package:logging/logging.dart';
import 'dart:mirrors';
abstract class LoggerMixin {
Logger _log;
Logger get log {
if( _log == null ) {
@marc-hughes
marc-hughes / ScrumDo___New_Kanban_Project-2.png
Last active December 28, 2015 03:49
How to do code in a Markdown list
ScrumDo___New_Kanban_Project-2.png
@marc-hughes
marc-hughes / example.py
Created October 31, 2013 15:56
Easily get records added / removed
old = set( some values )
new = set( some other values )
added = new.difference(old)
removed = old.difference(new)
class DisableMigrations(object):
def __contains__(self, item):
return True
def __getitem__(self, item):
return "notmigrations"
[
{
attachment_url: "",
created: "2015-10-14T08:46:05",
url: "https://scrumdo-attachments.s3.amazonaws.com:443/projects%2Fstory%2Fattachments_v2%2F169800_subtasks.png?Expires=1444828586&AWSAccessKeyId=AKIAJGOQ7F37VIQQCUYQ&Signature=F6CN3qbDUE%2F5ZrNAlI9dcgeki3Q%3D",
story_id: 169800,
id: 17506,
modified: "2015-10-14T08:46:05",
filename: "169800_subtasks.png",
attachment_name: "",
@marc-hughes
marc-hughes / gist:761938
Created January 1, 2011 19:25
Optional methods
def associate( self, project):
"called when an extra is first associated with a project."
def unassociate( self, project):
"called when an extra is removed from a project."
def initialSync( self, project):
""" Does whatever needs doing for an initial sync of the project.
An extra's configuration should add this event to the queue when
it's ready. """
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"
creationComplete="application1_creationCompleteHandler(event)"
>
<fx:Script>
<![CDATA[
import com.roguedevelopment.objecthandles.ObjectHandles;
import com.roguedevelopment.objecthandles.SelectionEvent;
@marc-hughes
marc-hughes / gist:487881
Last active September 5, 2015 11:54 — forked from ahoward/gist:487804
---
layout: default
title: ScrumDo - Some sub title
---
# Something Important
Include some source from a gist [here.](https://gist.github.com/marc-hughes/487881)
@NgController(
selector: '[kanban-cell]',
publishAs: 'cell'
)
class KanbanCell {
@NgTwoWay('card-id')
int cardId;
}
<tr>
<td>
<ul>
<li kanban-cell
card-id="state.card"
ng-repeat="state in ctrl.game.states | filter:{column:'backlog'} "
ng-include="/boardcomponents/kanbancell.html">
</li>
</ul>