Skip to content

Instantly share code, notes, and snippets.

@zhyupe
zhyupe / gist:b6f9f8aa649fa0add741fa468553e0ef
Created February 1, 2022 08:29
FFCafe Individual Contributor License Agreement
Thank you for your interest in contributing to open source software projects (“Projects”) made available by FFCafe or its affiliates (“FFCafe”). This Individual Contributor License Agreement (“Agreement”) sets out the terms governing any source code, object code, bug fixes, configuration changes, tools, specifications, documentation, data, materials, feedback, information or other works of authorship that you submit or have submitted, in any form and in any manner, to FFCafe in respect of any of the Projects (collectively “Contributions”).
You agree that the following terms apply to all of your past, present and future Contributions. Except for the licenses granted in this Agreement, you retain all of your right, title and interest in and to your Contributions.
**Copyright License.** You hereby grant, and agree to grant, to FFCafe a non-exclusive, perpetual, irrevocable, worldwide, fully-paid, royalty-free, transferable copyright license to reproduce, prepare derivative works of, publicly display, publicly
@zhyupe
zhyupe / ormconfig-loader.js
Created October 14, 2018 12:54
TypeORM ormconfig.json loader
const glob = require('glob');
const jsValidJson = (value) => JSON.stringify(value)
.replace(/\u2028/g, '\\u2028')
.replace(/\u2029/g, '\\u2029');
module.exports = function(source) {
const obj = typeof source === 'string' ? JSON.parse(source) : source;
// loadFileClasses is copied from TypeORM, MIT License, Copyright (c) 2015-2016 Yakdu. http://typeorm.github.io