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
{ | |
"display_information": { | |
"name": "Round Robin", | |
"description": "Everyone gets a turn.", | |
"background_color": "#007e8c" | |
}, | |
"features": { | |
"bot_user": { | |
"display_name": "Round Robin", | |
"always_online": false |
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
Here is some code | |
Here is some more |
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
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) | |
} |
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
import SwiftUI | |
struct ContentView: View { | |
@State var total = 0 | |
@State var progress = 0 | |
@State private var workItem: DispatchWorkItem? | |
var body: some View { | |
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
/* | |
* 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 |
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 key = "xxxxx"; // for trello | |
var token = "xxxxx"; // for trello | |
function main() { | |
//First get all homework assignments | |
var homework = UrlFetchApp.fetch('https://byui.instructure.com/api/v1/users/self/upcoming_events?access_token=xxxxxx'); | |
homework = JSON.parse(homework); | |
//Now create cards for each one | |
homework.forEach(createCard); | |
} |
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
require 'benchmark' | |
%x(rm output.csv) | |
file = File.open('output.csv', 'a') | |
file.puts("N,DoWhile,ForEach,ForOf,ForLoop,While") | |
file.close | |
10000.times{ |i| | |
file = File.open('output.csv', 'a') |
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 Request = require("request"); | |
const folderID = "XXXX" | |
const access_token = "XXXXXXXXXX" | |
delete100() | |
//Get all the files in a given folder ID and remove them. | |
function delete100(){ | |
var url = "https://byui.instructure.com/api/v1/folders/" + folderID + "/files?access_token=" + access_token + "&per_page=100" |
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
function onOpen() { | |
var ui = SpreadsheetApp.getUi(); | |
ui.createMenu('Hidden Row Data') | |
.addItem('Show Data', 'showSidebar') | |
.addToUi(); | |
} | |
function showSidebar() { | |
var html = HtmlService.createTemplateFromFile('sidebar'); |
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
require 'twitter' | |
twitter = Twitter::REST::Client.new do |config| | |
config.consumer_key = "YOUR_CONSUMER_KEY" | |
config.consumer_secret = "YOUR_CONSUMER_SECRET" | |
config.access_token = "YOUR_ACCESS_TOKEN" | |
config.access_token_secret = "YOUR_ACCESS_SECRET" | |
end | |
def getA(n) |
NewerOlder