Skip to content

Instantly share code, notes, and snippets.

@runette
runette / build.yml
Last active December 15, 2023 13:00
on:
pull_request:
types: ['opened', 'synchronize', 'closed']
name: Build Angular
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
openapi: 3.0.0
info:
title: trackbash
version: '1.0'
components:
securitySchemes:
jwt:
type: http
scheme: bearer
bearerFormat: JWT
on:
pull_request:
types: [ closed ]
name: Build Angular
jobs:
build:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
strategy:
function main() {
var idToken = ScriptApp.getIdentityToken();
var token = FirebaseApp.signInWithIdp(firebaseConfig, idToken ).idToken;
var ss = SpreadsheetApp.getActiveSpreadsheet();
sheet = ss.getActiveSheet();
var data = getSites(token));
ss.toast("All done");
};
function getSites(token) {
var responseCode = 200;
var cursor = "";
var data = []
while (responseCode == 200) {
var response = UrlFetchApp.fetch(
'https://www.example.com/_ah/api/fetch_sites',
{
'method' : 'post',
'contentType':'application/json',
@runette
runette / CondaExtensions.cs
Created May 16, 2021 12:57
Conda Extensions Package
using UnityEngine;
using UnityEditor;
using System.IO;
using System.Diagnostics;
using System;
using Debug = UnityEngine.Debug;
#if UNITY_EDITOR
namespace Conda
{
@runette
runette / install_script2.cs
Created May 16, 2021 12:46
new MDAL Script
using UnityEngine;
using UnityEditor;
using System.IO;
using System.Diagnostics;
using Debug = UnityEngine.Debug;
#if UNITY_EDITOR
namespace Mdal {
public class Install{
#!/bin/bash
while getopts "p:i:d:t:" opt
do
case "$opt" in
p ) package="$OPTARG" ;;
d ) destination="$OPTARG" ;;
i ) install="$OPTARG" ;;
t ) test="$OPTARG" ;;
esac
using UnityEngine;
using UnityEditor;
using System.IO;
using System.Diagnostics;
using System;
using Debug = UnityEngine.Debug;
// only compile if in Editor
#if UNITY_EDITOR
namespace Mdal {
runtime: python38
instance_class: F1
service: default
handlers:
- url: /_ah/api/.*
script: auto
secure: always