This file contains hidden or 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
#!/bin/bash | |
# Script to backup git repo to Backblaze B2 | |
# Set bucket, dir, password and account to use for the backup. I keep mine in local env vars | |
# These are set by localrc which lives on an encrypted home directory and is executed by my bashrc | |
# Ensure you have authorized the B2 command line tool with the correct account AND added your SSH | |
# public key to your github account, if you need to backup private repositories. | |
# To restore this repo in the future, download it from B2, extract it and then use this command: | |
# cd old-repository.git |
This file contains hidden or 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
#! /usr/bin/env python | |
''' | |
Backblaze wants developers and organization to copy and re-use our | |
code examples, so we make the samples available by several different | |
licenses. One option is the MIT license (below). Other options are | |
available here: | |
https://www.backblaze.com/using_b2_code.html | |
The MIT License (MIT) | |
Copyright (c) 2021 Backblaze |
This file contains hidden or 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
/* | |
Copyright 2021 FIRST Tech Challenge Team 0000 | |
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and | |
associated documentation files (the "Software"), to deal in the Software without restriction, | |
including without limitation the rights to use, copy, modify, merge, publish, distribute, | |
sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: | |
The above copyright notice and this permission notice shall be included in all copies or substantial |
This file contains hidden or 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
@Autonomous(name = "My FIRST Java OpMode", group = "Autonomous") | |
public class MyFIRSTJavaOpMode extends LinearOpMode { | |
// Declare hardware variables for the drive motors | |
private DcMotor backLeftDrive; | |
private DcMotor backRightDrive; | |
// Declare color sensor | |
private ColorSensor color1; |
This file contains hidden or 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
@Autonomous(name = "My FIRST Java OpMode", group = "Autonomous") | |
public class MyFIRSTJavaOpMode extends LinearOpMode { | |
// Declare hardware variables for the drive motors | |
private DcMotor backLeftDrive; | |
private DcMotor backRightDrive; | |
// Declare color sensor | |
private ColorSensor color1; |
This file contains hidden or 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
@Autonomous(name = "My FIRST Java OpMode", group = "Autonomous") | |
public class MyFIRSTJavaOpMode extends LinearOpMode { | |
// Declare hardware variables for the drive motors | |
private DcMotor backLeftDrive; | |
private DcMotor backRightDrive; | |
// Declare color and distance sensors | |
private ColorSensor color1; | |
private DistanceSensor distanceSensor; |