Skip to content

Instantly share code, notes, and snippets.

👨‍💻

Javier Lecuona javiercbk

👨‍💻
  • Buenos Aires, Argentina
Block or report user

Report or block javiercbk

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
View woodpecker-api-swagger.yaml
# this is an example of the Uber API
# as a demonstration of an API spec in YAML
swagger: '2.0'
info:
title: Woodpecker API
description: Woodpecker
version: "1.0.0"
# the domain of the service
host: api.woodpecker.co
# array of all schemes that your API supports
View gcs.go
package gcs
import (
"io"
"io/ioutil"
"golang.org/x/net/context"
"cloud.google.com/go/storage"
)
View spreadsheet-example.js
var Spreadsheet = require('./spreadsheets').Spreadsheet;
const RAW = "RAW";
var spreadsheet = new Spreadsheet();
var authorizePromise = spreadsheet.authorize();
authorizePromise.then(function(){
//spreadsheetId should be replace with the actual spreadsheet id
//sheetname should be replaced with the actual sheetname
//this will read all the rows from D3 to F4
@javiercbk
javiercbk / spreadsheets.js
Last active Aug 31, 2016
A small class to write a spreadsheet in google
View spreadsheets.js
var readline = require('readline');
var Promise = require('bluebird');
var google = require('googleapis');
//requires the keys to authenticate to google apis
var creds = require('./service-account.json');
var OAuth2 = google.auth.OAuth2;
var SCOPES = ['https://www.googleapis.com/auth/drive'];
exports.Spreadsheet = class Spreadsheet {
View local-token
<!--
@license
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
-->
View generate_jwt_key_test.go
package keys
import (
"crypto/rand"
"crypto/rsa"
"testing"
"github.com/dgrijalva/jwt-go"
. "github.com/smartystreets/goconvey/convey"
)
You can’t perform that action at this time.