Skip to content

Instantly share code, notes, and snippets.

View bloggerprofissional's full-sized avatar

Blogger Profissional bloggerprofissional

View GitHub Profile
@tanaikech
tanaikech / submit.md
Created February 17, 2020 23:42
Uploading File to Google Drive using HTML and Google Apps Script

Uploading File to Google Drive using HTML and Google Apps Script

This is a simple sample script for uploading a file using the file input tag of HTML. As the important point, the file is sent as the byte array for using Google Apps Script. By this, at Google Apps Script side, the byte array can be converted to a blob using a simple script.

HTML & Javascript

<input id="file" type="file" onchange="saveFile(this)" />
<script>
 function saveFile(f) {
@Nikolas0606
Nikolas0606 / cripto.html
Created June 5, 2018 23:38
Criptografia JavaScript
<html>
<head>
<title>DEMONSTRAÇÃO - Criptografia com JavaScript</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<body>
<script src="https://s.codigofonte.com.br/wp-content/js/codigofonte-bar.js"></script>
<script language="javascript">
function Encripta(dados){