Skip to content

Instantly share code, notes, and snippets.

View christopherdongo's full-sized avatar

Christopher Dongo Huarancca christopherdongo

View GitHub Profile
@christopherdongo
christopherdongo / Architecting with Google Kubernetes Engine: Workloads.md
Created March 1, 2022 13:42 — forked from misho-kr/Architecting with Google Kubernetes Engine: Workloads.md
Summary of "Architecting with Google Kubernetes Engine: Workloads" from Coursera.Org

Learn about performing Kubernetes operations; creating and managing deployments; the tools of GKE networking; and how to give your Kubernetes workloads persistent storage.

Kubernetes Operations

Learn about the kubectl command, a command line utility used to interact with and manage the resources inside Kubernetes clusters. Connect it to Google Kubernetes Engine clusters, and use it to create, inspect, interact and delete Pods and other objects within Kubernetes clusters. Use kubectl to view a Pod’s console output, and sign in interactively to a Pod.

@christopherdongo
christopherdongo / submit.md
Created July 13, 2021 19:01 — forked from tanaikech/submit.md
Upload Files to Google Drive using Javascript

Upload Files to Google Drive using Javascript

News

At October 11, 2019, I published a Javascript library to to run the resumable upload for Google Drive. When this is used, the large file can be uploaded. You can also use this js library.

Description

This is a sample script for uploading files to Google Drive using Javascript. The files are uploaded by Drive API v3. gapi.client.drive.files.create() can create an empty file on Google Drive. But it cannot directly upload files including contents. I think that this might not be able to upload files and metadata with the multipart/related, although this might be resolved by the future update. So now, as one of workarounds, I use using XMLHttpRequest.

  • This sample uses gapi.
  • Before you use this, please enable Drive API at API console and carr
@christopherdongo
christopherdongo / google-drive-upload-pdf.php
Created July 13, 2021 14:48 — forked from hubgit/google-drive-upload-pdf.php
Upload a PDF file to Google Drive
<?php
require 'google-api/apiClient.php';
require 'google-api/contrib/apiOauth2Service.php';
require 'google-api/contrib/apiDriveService.php';
$pdfFile = 'test.pdf';
// API Console: https://code.google.com/apis/console/
// Create an API project ("web applications") and put the client id and client secret in config.ini.
@christopherdongo
christopherdongo / google-drive.js
Created July 13, 2021 08:30 — forked from luyx2412/google-drive.js
React native login google, and google drive. Save storage and get again data when uninstall app.
/**
* Google Drive
* created by luyxtran264@gmail.com
*/
import React, { Component } from 'react';
import {
Platform,
StyleSheet,
Text,
@christopherdongo
christopherdongo / introrx.md
Created July 13, 2021 05:25 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing