Skip to content

Instantly share code, notes, and snippets.

@hexaddikt
hexaddikt / loadoauth2token.pl
Last active December 24, 2015 03:38
Shows how to load a session that was serialised earlier and reuse the refresh token for authentication.
#!/usr/bin/perl
use strict;
use warnings;
use v5.10;
use Net::Google::Spreadsheets;
use Net::Google::DataAPI::Auth::OAuth2;
use Net::OAuth2::AccessToken;
use Storable;
@hexaddikt
hexaddikt / saveoauth2token.pl
Created September 28, 2013 03:48
Generate an OAuth2 token that can be used in subsequent sessions without human intervention.
#!/usr/bin/perl
use Storable;
use Net::Google::Spreadsheets;
use Net::Google::DataAPI::Auth::OAuth2;
use Term::Prompt;
my $oauth2 = Net::Google::DataAPI::Auth::OAuth2->new(
client_id => '...',
client_secret => '...',
class Program
{
private static bool greaterThan50Func(int x)
{
return x > 50;
}
static void Main(string[] args)
{
var testList = new List<int>();