Skip to content

Instantly share code, notes, and snippets.

Working from home

まっは mach3

Working from home
Block or report user

Report or block mach3

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
karlkranich / sheets-api-test-part2.php
Last active Dec 26, 2018
(obsolete due to Google changes) PHP code to use the Google Spreadsheets API with an OAuth Service Account. For more info, see
View sheets-api-test-part2.php
// Section 5: edit a row
// You'll need to get the etag and row ID, and send a PUT request to the edit URL
$rowid = 'cre1l'; // got this and the etag from the table data output from section 3
$etag = 'NQ8VCRBLVCt7ImA.';
$url = "$fileId/od6/private/full/$rowid";
$method = 'PUT';
$headers = ["Authorization" => "Bearer $accessToken", 'Content-Type' => 'application/atom+xml', 'GData-Version' => '3.0'];
$postBody = "<entry xmlns=\"\" xmlns:gsx=\"\" xmlns:gd=\"\" gd:etag='&quot;$etag&quot;'><id>$fileid/od6/$rowid</id><gsx:gear>phones</gsx:gear><gsx:quantity>6</gsx:quantity></entry>";
$req = new Google_Http_Request($url, $method, $headers, $postBody);
ysugimoto / lazy.js
Last active Dec 14, 2015
Deferred pattern implements
View lazy.js
(function(module) {
"use strict";
// Scope stacks
var LAZY_ID = 0,
// exports
module.Lazy = Lazy;
itspriddle / json.php
Created Feb 26, 2011
Pure PHP json library
View json.php
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
* Converts to and from JSON format.
* JSON (JavaScript Object Notation) is a lightweight data-interchange
* format. It is easy for humans to read and write. It is easy for machines
* to parse and generate. It is based on a subset of the JavaScript
* Programming Language, Standard ECMA-262 3rd Edition - December 1999.
You can’t perform that action at this time.