Skip to content

Instantly share code, notes, and snippets.

View potato-robert's full-sized avatar
🦿
working in the O&P industry

Robert Michels potato-robert

🦿
working in the O&P industry
View GitHub Profile
@potato-robert
potato-robert / Code.gs
Last active August 28, 2024 20:30
Google Docs Resume Customizer
function onOpen() {
DocumentApp.getUi().createMenu('Resume Customizer')
.addItem('Customize Resume', 'openDialog')
.addToUi();
}
function openDialog() {
var html = HtmlService.createHtmlOutputFromFile('Dialog')
.setWidth(400)
.setHeight(300);
<!-- CODE SNIPPET, NOT THE FULL FILE -->
<EditForm EditContext="@EC" class="w-100 flex flex-column align-items-start" OnSubmit="@HandleCreatePoiSubmit">
<DataAnnotationsValidator />
<div class="font-bold text-xl mt-3 mb-6">POI Details</div>
<div class="form-group mb-3 w-100">
<label for="poiCreateDisplayName">Name:</label>
<InputTextOnInput id="poiCreateDisplayName" name="poiCreateDisplayName" @bind-Value="poi.DisplayName" class="form-control" />
// CODE SNIPPET, NOT THE FULL FILE //
//______________________________________________________________________ Load
function loadModel(OBJFile, MTLFile, SasUrls) {
//Load with MTL + Textures
//Note: The MTLLoader has been customized so that it can have a SAS token specified,
// and that it converts the filenames in the MTL file to lowercase(otherwise Azure Storage URL will be incorrect)
var mtlLoader = new MTLLoader();
mtlLoader.setSasUrls(SasUrls);
mtlLoader.load(MTLFile, function (materials) {