Skip to content

Instantly share code, notes, and snippets.

View markxp's full-sized avatar

markxp markxp

View GitHub Profile
@salrashid123
salrashid123 / main.go
Created January 2, 2018 16:33
Getting a google id token in golang for cloud endpoints and identity proxy
package main
import (
"io/ioutil"
"log"
"net/http"
"net/url"
"strings"
"crypto/rsa"
@tanaikech
tanaikech / submit.md
Last active January 4, 2025 17:30
Multipart-POST Request Using Google Apps Script

Multipart-POST Request Using Google Apps Script

April 20, 2019: GAS library for this situation was published. Please check it at https://github.com/tanaikech/FetchApp.

These sample scripts are for requesting multipart post using Google Apps Script.

In most cases, the multipart request is used for uploading files. So I prepared 2 sample situations as follows. For each situation, the request parameters are different.

  1. Upload a file from Google Drive to Slack.
  2. Convert an excel file to Spreadsheet on Google Drive using Drive API v3.
@pavanpodila
pavanpodila / Configure VSCode for GAE Go SDK.md
Last active July 20, 2017 05:40
Configure VSCode for Google App Engine Go SDK

You need to install the vscode-go extension after changing the go binary to point to the GAE version.

  • Symlink the goapp binary
> cd $PATH_TO_GAE_SDK/go_appengine/goroot/bin
> ln -s goapp go
  • Install vscode-go extension
  • Ensure gocode is on your $PATH, normally located in $GOPATH/bin
@zenorocha
zenorocha / basic.md
Last active March 26, 2023 09:00
New Firebase Auth vs Old Firebase Auth
@jmoiron
jmoiron / 01-curl.go
Last active October 19, 2024 11:28
io.Reader & io.Writer fun
package main
import (
"fmt"
"io"
"net/http"
"os"
)
func init() {
@mogsdad
mogsdad / digest.js
Last active October 29, 2021 03:28
This Google Apps Script function returns a string representing the 16-byte MD5 digest of a given message. It was originally written as an answer to StackOverflow question http://stackoverflow.com/questions/16216868/get-back-a-string-representation-from-computedigestalgorithm-value-byte. It's been refactored to support adaptation to other digest …
/**
* Return string representation of MD5 digest of the given message.
*
* @param {String} message Message to be encoded.
*
* @return {String} 16-byte digest value
*/
function signMd5(message){
return digest(Utilities.DigestAlgorithm.MD5, message);
}
<!doctype html>
<!-- http://taylor.fausak.me/2015/01/27/ios-8-web-apps/ -->
<html>
<head>
<title>iOS 8 web app</title>
<!-- CONFIGURATION -->