Skip to content

Instantly share code, notes, and snippets.

@geekflyer
geekflyer / constants.ts
Last active October 7, 2018 01:43
pulumi gke utils
export const packageName = require(__dirname + '/../package.json').name;
@geekflyer
geekflyer / AMDShim.ts
Last active March 6, 2017 16:37
UI5 AMD Shim
sap.ui.define([], function () {
function jsInteropDefaultRequire(importedModule) {
if (importedModule && importedModule.__esModule) {
const exportedProps = Object.keys(importedModule);
if (exportedProps.length === 1 && exportedProps[0] === 'default') {
return importedModule.default;
}
}
return importedModule;
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@geekflyer
geekflyer / .regiignore
Created June 27, 2014 09:19
example .regignore file
{"exclude":["node/.*","node_modules/.",".idea/.*","localtest/.*"]}