This file contains hidden or 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
const recoverAll = (kind,iterator) => { | |
while (iterator.hasNext()) { | |
const next = iterator.next(); | |
next.setTrashed(false); | |
Logger.log(kind + ": " + next.getName() + " RESTORED!"); | |
} | |
} | |
function RecoverTrash() { | |
const folders = DriveApp.getTrashedFolders(); |
This file contains hidden or 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
Instalar para correr CLI | |
- sudo apt install mono-runtime | |
Ruta de Instalacion Ubuntu | |
- cd /usr/lib/python3/dist-packages/odoo | |
Modulos e Instalaciones | |
- /usr/lib/python3/dist-packages/odoo/addons | |
Crear Scaffold de Modulo Odoo |
This file contains hidden or 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
function parseJwt (token) { | |
var base64Url = token.split('.')[1]; | |
var base64 = base64Url.replace('-', '+').replace('_', '/'); | |
return JSON.parse(window.atob(base64)); | |
}; |
This file contains hidden or 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
class API::V1::BaseController < ApplicationController | |
skip_before_filter :verify_authenticity_token | |
before_filter :cors_preflight_check | |
after_filter :cors_set_access_control_headers | |
def cors_set_access_control_headers | |
headers['Access-Control-Allow-Origin'] = '*' | |
headers['Access-Control-Allow-Methods'] = 'POST, GET, PUT, DELETE, OPTIONS' |