This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
var request = require('request-promise'), | |
Table = require('cli-table'); | |
var jiraUrl = 'http://jira.yourcompany.com', // change this | |
rapidViewId = 1, // get this from the rapid board URL | |
url = jiraUrl + '/rest/greenhopper/1.0/xboard/plan/backlog/epics?rapidViewId=' + rapidViewId, | |
interestingEpics = []; // add epic IDs to restrict what's included | |
var progressBar = function (percentageCompleted) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- DOES NOT COMPILE | |
import String (toInt, toList) | |
data Node = Op String Node Node | Value Int | |
listToInt l = case toInt (join "" l) of | |
Just x -> x | |
tokeniseOp hd tl tokenAccum partialAccum = |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import List | |
import String (toList, words, lines, length) | |
text = """Four loko cred dreamcatcher, blog cliche umami Cosby sweater before | |
they sold out bitters drinking vinegar. Keytar four loko occupy, gastropub | |
keffiyeh Pitchfork paleo. Small batch ennui irony pop-up narwhal tousled | |
sustainable meh Thundercats gastropub, bicycle rights Echo Park sartorial. | |
Next level hoodie seitan, scenester Portland 3 wolf moon Neutra master | |
cleanse art party. Pour-over yr distillery, McSweeney's chambray pickled | |
brunch salvia. Dreamcatcher Bushwick polaroid viral asymmetrical chia. Ennui |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <reference path="module.ts" /> | |
/// <reference path="angularjs/angular-mocks.d.ts" /> | |
/// <reference path="angular-protractor/angular-protractor.d.ts" /> | |
/// <reference path="jasmine/jasmine.d.ts" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// FastClick - courtesy of https://gist.github.com/yaakaito/6267527 | |
interface FastClickStatic { | |
attach(element: HTMLElement): void; | |
} | |
declare var FastClick: FastClickStatic; | |
// add a custom Jasmine matcher to the standard set | |
// the matcher requires a momentjs object, so let's enforce that | |
// TypeScript module and interface definitions are open, so can be extended | |
declare module jasmine { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find app/src -name '*.ts' | xargs tsc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find app/src -path '*/js/*/*.ts' -and -not \( -path '*/js/*/*.spec.ts' -or -path '*/js/*/*.scenario.ts' \) -exec sed -i '1i/// <reference path="../../../../../references/module.ts" />' {} \; | |
find app/src -path '*/js/*/*.spec.ts' -exec sed -i '1i/// <reference path="../../../../../references/test.ts" />' {} \; | |
find app/src -path '*/js/*.scenario.ts' -exec sed -i '1i/// <reference path="../../../../references/test.ts" />' {} \; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <reference path="angularjs/angular.d.ts" /> | |
/// <reference path="hammerjs/hammerjs.d.ts" /> | |
/// <reference path="moment/moment.d.ts" /> | |
/// <reference path="lodash/lodash.d.ts" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <reference path="angularjs/angular.d.ts" /> | |
/// <reference path="angularjs/angular-mocks.d.ts" /> | |
/// <reference path="jasmine/jasmine.d.ts" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find app/src -name "*.js" -exec sh -c 'mv "$0" "${0%.js}.ts"' {} \; |