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
<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>
@marc-hughes
marc-hughes / debouce.dart
Last active August 17, 2022 10:11
debounce function for dart
library debounce;
Map timeouts = {};
void debounce(int timeoutMS, Function target, List arguments) {
if(timeouts.containsKey(target)) {
timeouts[target].cancel();
}
Timer timer = new Timer(new Duration(milliseconds: timeoutMS), () {
@marc-hughes
marc-hughes / cdnrewriter.dart
Created January 3, 2014 16:21
Read in a JS variable called STATIC_URL and use that for static files loaded in an angular.dart application
import 'package:angular/angular.dart';
import 'package:js/js.dart' as js;
class CDNRewriter implements UrlRewriter {
String staticUrl;
CDNRewriter() {
var context = js.context;
staticUrl = js.context.STATIC_URL;
}
@marc-hughes
marc-hughes / main.html
Created January 2, 2014 17:50
Dynamically drawing on a canvas with an angular.dart component.
<div class="game_container" >
<game-timeline></game-timeline>
</div>
@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)
@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)