This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
difference() { | |
union() { | |
cube(size=[61,85,5], center = true); | |
translate([29.5, 0 ,5]) { | |
cube(size=[2, 85, 10], center = true); | |
} | |
translate([-29.5, 0 ,15]) { | |
cube(size=[2, 85, 30], center = true); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
difference() { | |
cube(size=[86,86,70]); | |
translate([43,43,10]) { | |
cylinder(h=35, d=60); | |
translate([0,0,30]){ | |
cylinder(h=35, d=78); | |
} | |
} | |
translate([-2,-2,10]) { | |
cube(size=[40,40,70]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// uses Google.Analytics.Data.V1Beta from NuGet | |
// credentials from Google cloud project authentication export | |
// GA4 Profile ID from GA4 Admin | |
var client = new BetaAnalyticsDataClientBuilder | |
{ | |
CredentialsPath = "PathToCredentials.json" | |
}.Build(); | |
RunReportRequest request = new RunReportRequest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
difference() { | |
cube(size=[90, 120, 50]); | |
translate([45, 50, 0]) { | |
rotate(a=-25, v=[1,0,0]) { | |
translate([0, 0, -40]) { | |
cylinder(h=120, d=66); | |
} | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var PropertyId = ''; | |
var PropertyName = '' | |
var SendEmailTo = ''; | |
function main() { | |
var scriptProperties = PropertiesService.getScriptProperties(); | |
var currentProps = scriptProperties.getProperties(); | |
var anythingNew = false; | |
var newText = ''; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Catfood.Shapefile; | |
using (Shapefile shapefile = new Shapefile(@"fips10c.shp")) | |
{ | |
Console.WriteLine($"Shapefile type {shapefile.Type}, contains {shapefile.Count:n0} shapes."); | |
Console.WriteLine($"Bounding box is {shapefile.BoundingBox.Top:n2}, {shapefile.BoundingBox.Left:n2} - {shapefile.BoundingBox.Bottom:n2}, {shapefile.BoundingBox.Right:n2}"); | |
foreach(Shape shape in shapefile) | |
{ | |
string[] metadataNames = shape.GetMetadataNames(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var ApiToken = ''; | |
function checkForAlexaTasksWithNoDate() { | |
processProject('Alexa To-do List'); | |
processProject('Inbox'); | |
} | |
function processProject(projectName) { | |
var id = getAlexaToDoListId(projectName); | |
var tasks = getAlexaToDoListTasks(id); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// from https://developers.google.com/analytics/devguides/collection/ga4/event-parameters?client_type=gtag | |
gtag('set', { | |
'page_title': 'Travel Destinations', | |
'currency': 'USD' | |
}); | |
// Place your config commands after the set command like follows | |
gtag('config', 'G-XXXXXXXXXX-1'); | |
gtag('config', 'G-XXXXXXXXXX-2'); | |
gtag('config', 'G-XXXXXXXXXX-3'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gtag('set', 'user_properties', { 'user_quality': 'low' }); |
NewerOlder