Skip to content

Instantly share code, notes, and snippets.

View mlippens's full-sized avatar

Michael Lippens mlippens

View GitHub Profile
/// <reference path="node-cidr.d.ts" />
import { cidr } from 'node-cidr';
<?xml version='1.0' encoding='UTF-8'?>
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:flowable="http://flowable.org/bpmn" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI" typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="http://www.activiti.org/processdef">
<message id="testmessage" name="testmessage"/>
<process id="ec7ca606-a4f2-11e7-abc4-cec278b6b50a" name="bug-end-event-terminates-subscriptions" isExecutable="true">
<startEvent id="sid-68AB1FA5-A6A3-4FC3-BAF9-287F523D28FD"/>
<userTask id="sid-AEC348F2-DC13-4EF0-AD2F-0D2A4263986C" name="task 1"/>
<sequenceFlow id="sid-5AF1E880-8880-4EC2-BD54-299BA0081D4A" sourceRef="sid-68AB1FA5-A6A3-4FC3-BAF9-287F523D28FD" targetRef="sid-AEC348F2
/**
* iCheck integration bindingHandler
*
* This handler will initialise checkboxes and update them accordingly in both ways
*
*/
ko.bindingHandlers.iCheck = {
/**
* We set an event listener: if a checkbox is changed, we update the observable accordingly.
* @param el
# bar.coffee
root = exports ? this
C = root['contracts-js']
{id,hi} = C.use root['foo'], "bar"
console.log id 3#ok
console.log hi 2
#foo.coffee
root = exports ? this
define = root.app.define._define
define 'foo',['contracts-js'],(C)->
exports =
hello: (x)-> x*x
foo: (x)-> x*x*x
exports.hello.__contract__ = C.fun(C.Num,C.Num)
if (typeof define === "function" && define.amd) {
__define = function (name, deps, callback) {
var d, e;
if (typeof name !== "string") {
d = deps
} else {
d = callback
}
//wrapper fun
e = function () {