Skip to content

Instantly share code, notes, and snippets.

View FranciscoHV's full-sized avatar

Francisco FranciscoHV

  • Stgo. Chile
View GitHub Profile
@FranciscoHV
FranciscoHV / submit.md
Created July 10, 2023 21:36 — forked from tanaikech/submit.md
Managing Shared Drive using Drive Service of Google Apps Script

Managing Shared Drive using Drive Service of Google Apps Script

When the method of "Files: list" in Drive API v3, the official document of includeItemsFromAllDrives and supportsAllDrives says as follows.

Deprecated - Whether both My Drive and shared drive items should be included in results. This parameter will only be effective until June 1, 2020. Afterwards shared drive items are included in the results. (Default: false)

Deprecated - Whether the requesting application supports both My Drives and shared drives. This parameter will only be effective until June 1, 2020. Afterwards all applications are assumed to support shared drives. (Default: false)

From this situation, I thought that Drive service might be able to manage the shared Drive from June 1, 2020. So I tested this as follows. As the results, I could confirm that now, the shared Drive got to be able to be mana

/* Estructura y Datos de las Regiones, Provincias */
/* y Comunas de Chile. */
/* */
/* Fecha: Julio 2010 */
/* Autor: Juan Pablo Aqueveque - juque.cl */
--
-- Comunas
--
DROP TABLE IF EXISTS `comunas`;
@FranciscoHV
FranciscoHV / popup.php
Created August 3, 2017 19:23
Custom.js and Style.css are not included in the website - Free Unit
function wplms_custom_course_curriculum_free_access_2($html,$lesson,$course_id){
$free=get_post_meta($lesson,'vibe_free',true);
if(vibe_validate($free))
$html ='<a href="'.get_permalink($lesson).'" class="ajax_unit">'.get_the_title($lesson).'</a>';
?>
<script>
jQuery(document).ready(function(){
jQuery('.ajax_unit').magnificPopup({
type: 'ajax',
@FranciscoHV
FranciscoHV / header.php
Created October 24, 2016 18:09
Header template Woocommerce
<?php
/**
* Email Header
*
* @author WooThemes
* @package WooCommerce/Templates/Emails
* @version 2.4.0
*/
if ( ! defined( 'ABSPATH' ) ) {
@FranciscoHV
FranciscoHV / ServerTBK.crt
Created June 20, 2017 14:50
ServerTBK.crt
-----BEGIN CERTIFICATE-----
MIIDKTCCAhECBFZl7uIwDQYJKoZIhvcNAQEFBQAwWTELMAkGA1UEBhMCQ0wxD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AGA1UECgwJVHJhbnNiYW5rMREwDwYD
VQQHDAhTYW50aWFnbzEVMBMGA1UEAwwMNTk3MDIwMDAwNTQxMRcwFQYDVQQLDA5D
YW5hbGVzUmVtb3RvczElMCMGCSqGSIb3DQEJARYWaW50ZWdyYWRvcmVzQHZhcmlv
cy5jbDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBANApVXB/EQtbviqQ
@FranciscoHV
FranciscoHV / 597020000541.key
Created June 20, 2017 14:49
597020000541.key
-----BEGIN RSA PRIVATE KEY-----
MIIEpQIBAAKCAQEA0ClVcH8RC1u+KpCPUnzYSIcmyXI87REsBkQzaA1QJe4w/B7g
6KvKV9DaqfnNhMvd9/ypmGf0RDQPhlBbGlzymKz1xh0lQBD+9MZrg8Ju8/d1k0pI
b1QLQDnhRgR2T14ngXpP4PIQKtq7DsdHBybFU5vvAKVqdHvImZFzqexbZjXWxxhT
+/sGcD4Vs673fc6B+Xj2UrKF7QyV5pMDq0HCCLTMmafWAmNrHyl6imQM+bqC12gn
EEAEkrJiSO6P/21m9iDJs5KQanpJby0aGW8mocYRHDMHZjtTiIP0+JAJgL9KsH+r
Xdk2bT7aere7TzOK/bEwhkYEXnMMt/65vV6AfwIDAQABAoIBAHnIlOn6DTi99eXl
KVSzIb5dA747jZWMxFruL70ifM+UKSh30FGPoBP8ZtGnCiw1ManSMk6uEuSMKMEF
5iboVi4okqnTh2WSC/ec1m4BpPQqxKjlfrdTTjnHIxrZpXYNucMwkeci93569ZFR
2SY/8pZV1mBkZoG7ocLmq+qwE1EaBEL/sXMvuF/h08nJ71I4zcclpB8kN0yFrBCW
@FranciscoHV
FranciscoHV / edit.php
Last active March 13, 2017 15:10
content/t3m3s-w*lms-m*mb*rs/sing**-pr****le
<?php
/**
* BuddyPress - Members Single Profile Edit
*
* @package BuddyPress
* @subpackage bp-legacy
*/
/**
* Fires after the display of member profile edit content.
@FranciscoHV
FranciscoHV / validarRUT.html
Created March 2, 2017 19:15 — forked from gaulatti/validarRUT.html
HTML5 Chilean RUT Validator
<!doctype html>
<html lang="es">
<head>
<meta charset="UTF-8">
<title>Validador de RUT HTML5</title>
</head>
<body>
<form>
<input type="text" id="rut" name="rut" required oninput="checkRut(this)" placeholder="Ingrese RUT">
<button type="submit">Validar RUT y Enviar Form</button>
<section>
<div class="centerrib">
<a class="buttonribb hoverrib">
</a>
</div>
</section>
<div><br><br><br><table class="table table-hover table-bordered" style="text-align:center;">
<thead>
<tr style="" class="active">
<th style="background-color:transparent;border: hidden;"></th>