Skip to content

Instantly share code, notes, and snippets.

View Siphion's full-sized avatar

Emanuele Casabona Siphion

View GitHub Profile
@Siphion
Siphion / PowerQuery Rest API JIRA with pagination (bypassing 1000 items limit)
Last active November 21, 2018 16:55
Exports Atlassian Jira Issues to Excel using PowerQuery using JIRA's Rest Api (with Pagination, No 1000 items limit) - Mandatory Json Issue "Schema" (example attached)
let
ExtractDataFromJIRA = (JiraRootUrl, Project, PathSchema) =>
let
BaseUrl = JiraRootUrl & "/rest/api/2/search?jql=project=" & Project,
EntitiesPerPage = 200,
GetJson = (Url) =>
let Options = [],
RawData = Web.Contents(Url, Options),
Json = Json.Document(RawData)
@Siphion
Siphion / circle.yml
Created July 6, 2016 21:23
MUP + CircleCI example. __ in file name mean '/' (subdirectory)
machine:
node:
version: 0.12.7
test:
override:
- echo "test"
dependencies:
pre:
- curl https://install.meteor.com/ | sh
- npm install -g git://github.com/Siphion/meteor-up.git#build-server-only
@Siphion
Siphion / fileWorker.js
Created July 4, 2016 10:19
not so sure about this
//// TODO: Use power queue to handle throttling etc.
//// Use observe to monitor changes and have it create tasks for the power queue
//// to perform.
/**
* @public
* @type Object
*/
FS.FileWorker = {};
@Siphion
Siphion / validateipn.js
Created December 18, 2015 22:09
meteor iron-router validate ipn paypal
let paypalProd = 'https://www.sandbox.paypal.com/cgi-bin/webscr';
let paypalSandbox = 'https://www.paypal.com/cgi-bin/webscr';
function validateIPN(data) {
try {
let url = (Meteor.settings.paypal.sandbox ? paypalSandbox : paypalProd) +
'?cmd=_notify-validate';
return HTTP.post(url, {params: data}) === 'VERIFIED';
} catch (err) {
log.error(err);