Skip to content

Instantly share code, notes, and snippets.

View peterfoxflick's full-sized avatar
🐧
Coding up a storm

Peter Flickinger peterfoxflick

🐧
Coding up a storm
View GitHub Profile
@peterfoxflick
peterfoxflick / socailDist.ino
Last active April 19, 2020 15:57
ATTINY Social Distancing
/*
* Original Ultrasonic code by Rui Santos, https://randomnerdtutorials.com
* Modified by Peter Fox Flick for attiny, peterfoxflick.com
* VIDEO: https://youtu.be/dF5E5jsWSZA
Ultrasonic sensor Pins:
VCC: +5VDC
Trig : Trigger (INPUT) - Pin 0
Echo: Echo (OUTPUT) - Pin 1
@peterfoxflick
peterfoxflick / code.gs
Created February 26, 2019 00:33
Hidden Row Data: A simple Google Add-on that shows the meta data you save to a row in Google Sheets.
function onOpen() {
var ui = SpreadsheetApp.getUi();
ui.createMenu('Hidden Row Data')
.addItem('Show Data', 'showSidebar')
.addToUi();
}
function showSidebar() {
var html = HtmlService.createTemplateFromFile('sidebar');
@peterfoxflick
peterfoxflick / contentView.swift
Last active November 6, 2020 03:10
Progress view updated by threads in SwiftUI
import SwiftUI
struct ContentView: View {
@State var total = 0
@State var progress = 0
@State private var workItem: DispatchWorkItem?
var body: some View {
function sendMail() {
var sheet = SpreadsheetApp.getActiveSheet()
var message = "This week there was " + sheet.getRange("B3").getValue() + " Tiktok views, "
message += sheet.getRange("B4").getValue() + " Youtube views, and "
message += sheet.getRange("B4").getValue() + " Skillshare views."
MailApp.sendEmail("boss@gmail.com", "This weeks views", message)
}
Here is some code
Here is some more
{
"display_information": {
"name": "Round Robin",
"description": "Everyone gets a turn.",
"background_color": "#007e8c"
},
"features": {
"bot_user": {
"display_name": "Round Robin",
"always_online": false