Skip to content

Instantly share code, notes, and snippets.

@Villanuevand
Last active April 2, 2020 17:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Villanuevand/4178efad870e8397565c6944fc3d292d to your computer and use it in GitHub Desktop.
Save Villanuevand/4178efad870e8397565c6944fc3d292d to your computer and use it in GitHub Desktop.
HeroDevs Software Grant and Corporate Contributor License Agreement

In order to clarify the intellectual property license granted with Contributions from any person or entity, HeroDevs LLC ("HeroDevs") must have a Contributor License Agreement (CLA) on file that has been signed by each Contributor, indicating agreement to the license terms below. This license is for your protection as a Contributor as well as the protection of HeroDevs and its users; it does not change your rights to use your own Contributions for any other purpose.

This version of the Agreement allows an entity (the "Corporation") to submit Contributions to HeroDevs, to authorize Contributions submitted by its designated employees to HeroDevs, and to grant copyright and patent licenses thereto.

You accept and agree to the following terms and conditions for Your present and future Contributions submitted to HeroDevs. Except for the license granted herein to HeroDevs and recipients of software distributed by HeroDevs, You reserve all right, title, and interest in and to Your Contributions.

  1. Definitions.
  • "You" (or "Your") shall mean the copyright owner or legal entity authorized by the copyright owner that is making this Agreement with HeroDevs. For legal entities, the entity making a Contribution and all other entities that control, are controlled by, or are under common control with that entity are considered to be a single Contributor. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.

  • "Contribution" shall mean the code, documentation or any original work of authorship, including any modifications or additions to an existing work, that is intentionally submitted by You to HeroDevs for inclusion in, or documentation of, any of the products owned or managed by HeroDevs (the "Work"). For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to HeroDevs or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, HeroDevs for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by You as "Not a Contribution."

  1. Grant of Copyright License. Subject to the terms and conditions of this Agreement, You hereby grant to HeroDevs and to recipients of software distributed by HeroDevs a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute Your Contributions and such derivative works.

  2. Grant of Patent License. Subject to the terms and conditions of this Agreement, You hereby grant to HeroDevs and to recipients of software distributed by HeroDevs a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by You that are necessarily infringed by Your Contribution(s) alone or by combination of Your Contribution(s) with the Work to which such Contribution(s) was submitted. If any entity institutes patent litigation against You or any other entity (including a cross-claim or counterclaim in a lawsuit) alleging that your Contribution, or the Work to which you have contributed, constitutes direct or contributory patent infringement, then any patent licenses granted to that entity under this Agreement for that Contribution or Work shall terminate as of the date such litigation is filed.

  3. You represent that You are legally entitled to grant the above license. You represent further that each employee of the Corporation designated by You is authorized to submit Contributions on behalf of the Corporation.

  4. You represent that each of Your Contributions is Your original creation (see section 7 for submissions on behalf of others).

  5. You are not expected to provide support for Your Contributions, except to the extent You desire to provide support. You may provide support for free, for a fee, or not at all. Unless required by applicable law or agreed to in writing, You provide Your Contributions on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE.

  6. Should You wish to submit work that is not Your original creation, You may submit it to HeroDevs separately from any Contribution, identifying the complete details of its source and of any license or other restriction (including, but not limited to, related patents, trademarks, and license agreements) of which you are personally aware, and conspicuously marking the work as "Submitted on behalf of a third-party: [named here]".

  7. It is your responsibility to notify HeroDevs when any change is required to the list of designated employees authorized to submit Contributions on behalf of the Corporation, or to the Corporation's Point of Contact with HeroDevs.

@Tolili977
Copy link

Buenas tengo una duda , yo utilizo este código para que me envíe los datos al hacer submit de un forms de google pero me gustaría
que cuando llegue el correo salgan dos botones me da igual formato que sea validar y cancelar. Si validan que se envíe otra vez el correo
con todos los datos añadiendo el se ha validado por quién lo ha hecho y si cancela que envíe un email al remitente diciendo que se ha cancelado no sé si es muy complicado.

la versión más rápida simple sería poner un botón en el email que reenvie que tenga un link a otro forms de validación el código que usé es este.

function emailOnFormSubmit(e) {

// Create as many variables as answers (columns in your spreadsheet) you require to send
var fecha = e.values[0];
var refprojecte = e.values[2];
var refpartner = e.values[3];
var formcapacitat = e.values[4];
var partnerdisposa = e.values[5];
var dadesultim = e.values[6];
var partnerproblemes = e.values[7];
var adjunt = e.values[8];
var abans= e.values[9];
var supervisor = e.values[10];
var validar=e.values[11];


// The subject of the email
var subject = "PARTNERS AUTORIZACIÓN PAGOS "+ refpartner;

// emailBody is para los dispositivos que no aceptan HTML 
var emailBody = "CONTROL PAGAMENTS PARTNER PROJECTE" + refprojecte + 
                "\nSIGNAR ABANS DE:"  + abans + 
                "\nREF Y NOM PARTNER:" +refpartner + 
				"\n1-El formulari de capacitats de partners está fet?" + formcapacitat +
				"\n2-El partner disposa de certificat Bancari?"+ partnerdisposa +
                "\n3-Les dades de l'últim contracte són les que s'estan aplicant ?"+ dadesultim +
                "\n4-El partner té problemes amb la gestió dels fons?"+ partnerproblemes+ 
                "\n5-5-Veure el document " + adjunt;   
                
// Este es el que llega al email de ISGLOBAL                 
// html is for those devices that can render HTML
// nowadays almost all devices can render HTML
                 
var htmlBody =  "<br/><br/><br/><br/>CONTROL PAGAMENTS PARTNER PROJECTE <i>" + refprojecte + "</i>" +    
                "<br/>SIGNAR ABANS DE:"  + abans +
                "<br/>REF Y NOM PARTNER:" + refpartner + 
                "<br/>1-El formulari de capacitats de partners está fet?" + formcapacitat +
                "<br/>2-El partner disposa de certificat Bancari?"+ partnerdisposa +  
                "<br/>3-Les dades de l'últim contracte són les que s'estan aplicant ?"+ dadesultim +
                "<br/>4-El partner té problemes amb la gestió dels fons?" + partnerproblemes +  
                "<br/>5-Veure el document adjunt " + adjunt +   // adjunta el documento que se pone en el formulario

// envia el correo

 MailApp.sendEmail(supervisor, subject, emailBody)  

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment