View style-transfer-for-timelapse.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View Code.gs
// add your Google API Project OAuth client ID and client secret here | |
var ClientID = ''; | |
var ClientSecret = ''; | |
function onOpen() { | |
var ui = SpreadsheetApp.getUi(); | |
ui.createMenu('Google Fit') | |
.addItem('Authorize if needed (does nothing if already authorized)', 'showSidebar') | |
.addItem('Get Metrics for Yesterday', 'getMetrics') | |
.addItem('Get Metrics for past 60 days', 'getHistory') |
View clouds.cs
string cloudsDownloadPath = HostingEnvironment.MapPath(CloudsDownloadName); | |
string cloudsTransformedPath = HostingEnvironment.MapPath(CloudsTransformedName); | |
string cloudsWarpedPath = HostingEnvironment.MapPath(CloudsWarpedName); | |
string cloudsFinalPath = HostingEnvironment.MapPath(AxdCloudsHandler.CloudsPath); | |
string gdalFolder = HostingEnvironment.MapPath(GdalFolder); | |
string gdalTranslatePath = HostingEnvironment.MapPath(GdalTranslate); | |
string gdalWarpPath = HostingEnvironment.MapPath(GdalWarp); | |
// download the most recent tiles | |
using (Bitmap cloudImage = new Bitmap(CloudsTileDimension * CloudsTileCount, CloudsTileDimension * CloudsTileCount, PixelFormat.Format32bppArgb)) |
View PageSpeed.gs
var pageSpeedApiKey = ''; | |
var pageSpeedMonitorUrl = ''; | |
function monitor() { | |
var desktop = callPageSpeed('desktop'); | |
var mobile = callPageSpeed('mobile'); | |
var spreadsheet = SpreadsheetApp.getActiveSpreadsheet(); | |
var sheet = spreadsheet.getSheetByName('results'); | |
sheet.appendRow([ | |
Utilities.formatDate(new Date(), 'GMT', 'yyyy-MM-dd'), |
View main.cs
Thread.Sleep(10000); // look like you're doing something | |
Console.WriteLine("No! Use Google Docs instead."); // reject proposal |
View Code.gs
// script settings | |
var ClientID = ''; | |
var TennantID = ''; | |
var ClientSecret = ''; | |
var ResourceID = ''; | |
var AuthBaseUrl = 'https://login.microsoftonline.com/' + TennantID + '/oauth2/v2.0/authorize'; | |
var AuthTokenUrl = 'https://login.microsoftonline.com/' + TennantID + '/oauth2/v2.0/token'; | |
var AuthScope = 'https://management.azure.com/user_impersonation offline_access'; |
View Code.gs
// script settings | |
var ClientID = ''; | |
var ClientSecret = ''; | |
var BackupFolder = 'Google Photos'; | |
var MaxLength = 50000000; | |
var AlertEmail = '' | |
function onOpen() { | |
var ui = SpreadsheetApp.getUi(); | |
ui.createMenu('Google Photos Backup') |
View CloudVision.gs
var OAuthCreds = { | |
"type": "service_account", | |
//... | |
}; | |
var SendEmailTo = ''; | |
var MonitorImageUrl = ''; | |
View Code.gs
// script settings | |
// | |
// https://ithoughthecamewithyou.com/post/how-to-backup-google-photos-to-google-drive-automatically-after-july-2019-with-apps-script | |
// | |
var ClientID = ''; | |
var ClientSecret = ''; | |
var BackupFolder = 'Google Photos'; | |
function onOpen() { | |
var ui = SpreadsheetApp.getUi(); |
View Blend.cs
private static void SimpleBlend(string image1path, string image2path, byte alpha) | |
{ | |
using (Bitmap image1 = (Bitmap)Bitmap.FromFile(image1path)) | |
{ | |
using (Bitmap image2 = (Bitmap)Bitmap.FromFile(image2path)) | |
{ | |
// update the alpha for each pixel of image 2 | |
for (int x = 0; x < image2.Width; x++) | |
{ | |
for (int y = 0; y < image2.Height; y++) |
NewerOlder