Skip to content

Instantly share code, notes, and snippets.

@lwbuck01
lwbuck01 / SpecialFeaturesApi.java
Created July 6, 2017 10:54 — forked from clementdenis/SpecialFeaturesApi.java
Cloud Endpoints issues in 2.0.0-beta.10 and later
package com.aodocs.endpoints.auth.sample.api.standard;
import com.aodocs.endpoints.auth.sample.resource.TestEnum;
import com.aodocs.endpoints.auth.sample.resource.TestResource;
import com.google.api.server.spi.auth.common.User;
import com.google.api.server.spi.config.*;
import com.google.api.server.spi.response.ForbiddenException;
import com.google.api.server.spi.response.UnauthorizedException;
import com.google.appengine.api.datastore.DatastoreService;
import com.google.appengine.api.datastore.DatastoreServiceFactory;
@lwbuck01
lwbuck01 / SkyDrive Download Direct.user.js
Created July 6, 2017 10:50 — forked from azu/SkyDrive Download Direct.user.js
Sky Driveでフォルダ内のファイルを直接ダウンロードするリンクを表示
// ==UserScript==
// @name SkyDrive Download Direct
// @namespace http://d.hatena.ne.jp/koumiya/
// @description Show direct download link in Sky Drive.
// @include https://*.skydrive.live.com/browse.aspx/*
// ==/UserScript==
//
// auther: http://d.hatena.ne.jp/koumiya/
// version: 0.2.1
// http://d.hatena.ne.jp/koumiya/20080724/1216912568
@lwbuck01
lwbuck01 / examples.js
Created July 6, 2017 10:46 — forked from OaklandRocks/examples.js
Some simple JS examples
var english = {};
var americanEnglish = Object.create(english);
var britishEnglish = Object.create(english);
var define = function(dictionary,word,definition){
dictionary[word] = definition;
};
define(english,"house","place to live");
define(english,"tree","big green thing");
@lwbuck01
lwbuck01 / appsScript_ListFilesFolders_Mesgarpour.js
Created July 6, 2017 10:45 — forked from mesgarpour/appsScript_ListFilesFolders_ver.2.js
[Google Apps Script] List all files & folders in a Google Drive folder, & write into a speadsheet
/**
* Google Apps Script - List all files & folders in a Google Drive folder, & write into a speadsheet.
* - Main function 1: List all folders
* - Main function 2: List all files & folders
*
* Hint: Set your folder ID first! You may copy the folder ID from the browser's address field.
* The folder ID is everything after the 'folders/' portion of the URL.
*
* @version 1.0
* @see https://github.com/mesgarpour
@lwbuck01
lwbuck01 / gas_zip_files.js
Created July 6, 2017 10:43 — forked from eshleebien/gas_zip_files.js
I used this script to zip my files in a specific folder in google drive
function start () {
var folder = DriveApp.getFoldersByName("First media design - November 21, 2015").next(),
contents = folder.getFiles(),
files = [],
names = {};
while (contents.hasNext()) {
var file = contents.next();
files.push(file);
@lwbuck01
lwbuck01 / add2books.html
Created July 6, 2017 10:42 — forked from skauk/add2books.html
Add PDF and EPUB files from your Google Drive to Google Books.
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<title>Add to Google Books</title>
<script src="//www.google.com/jsapi"></script>
<script src="//apis.google.com/js/client.js"></script>
<script type="text/javascript">
@lwbuck01
lwbuck01 / GoogleAPILoader.js
Created July 6, 2017 10:40 — forked from camman3d/GoogleAPILoader.js
Google API and Google Drive JavaScript helpers. See my blog post for more information. http://joshmonson.com/blog/2013/06/27/google-drive/
var GoogleAPILoader = (function() {
"use strict";
function GoogleAPILoader(config) {
this.clientId = config.clientId;
this.apiKey = config.apiKey;
this.scopes = config.scopes;
this.clientLibraries = config.clientLibraries || [];
}
@lwbuck01
lwbuck01 / submit.md
Created July 6, 2017 10:37 — forked from tanaikech/submit.md
Downloading Files From Google Drive Under No Authorization Using Browser

Downloading Files From Google Drive Under No Authorization Using Browser

This is a sample script for downloading files from Google Drive under no authorization using browser. By using this sample, you can make other users download files from your Google Drive. Even if the other users are not Google users, they can download the files.

Demo

@lwbuck01
lwbuck01 / gdrive-listall.js
Created July 6, 2017 10:36 — forked from nflint/gdrive-listall.js
List all files in a given folder on Google Drive
/* /**
* Google Apps Script - List all files & folders in a Google Drive folder, & write into a speadsheet.
* - Main function 1: List all folders
* - Main function 2: List all files & folders
*
* Hint: Set your folder ID first! You may copy the folder ID from the browser's address field.
* The folder ID is everything after the 'folders/' portion of the URL.
*
* @version 1.0
@lwbuck01
lwbuck01 / googleDriveScript.js
Created July 6, 2017 10:35
Quick and dirty templating functions for google drive documents.
/**
* The onOpen function runs automatically when the Google Docs document is
* opened. Use it to add custom menus to Google Docs that allow the user to run
* custom scripts. For more information, please consult the following two
* resources.
*
* Extending Google Docs developer guide:
* https://developers.google.com/apps-script/guides/docs
*
* Document service reference documentation: