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
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-1 "['<Super>1']" | |
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-2 "['<Super>2']" | |
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-3 "['<Super>3']" | |
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-4 "['<Super>4']" | |
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-5 "['<Super>5']" | |
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-6 "['<Super>6']" | |
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-7 "['<Super>7']" | |
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-8 "['<Super>8']" | |
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-9 "['<Super>9']" |
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
#!/usr/bin/zsh | |
SCRIPTDIR=~/.local/bin/ | |
TIMERSDIR=~/.config/systemd/user/ | |
sedstring="s/REPLACEME/$(whoami)/g" | |
mkdir -p $SCRIPTDIR | |
cp ytGhostBuster.py $SCRIPTDIR/ytGhostBuster.py | |
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
#!/usr/bin/zsh | |
DESTHOST="fucan.local" | |
DESTHOME="/home/carneeki" | |
SRCHOME="/home/carneeki" | |
BUILDDIR="/tmp/carneeki" | |
UGS_SRCDIR="$SRCHOME/Sources/ugs" | |
UGS_BUILDDIR="$BUILDDIR/ugs" | |
UGS_SRCZIP="$UGS_BUILDDIR/ugs-platform/application/target/ugs-platform-app-2.0-SNAPSHOT.zip" |
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
[Desktop Entry] | |
Version=1.0 | |
Type=Application | |
Name=Slic3r Prusa Edition | |
Icon=slic3r-prusa3d | |
Exec=/usr/bin/slic3r-prusa3d --gui %F | |
StartupNotify=false | |
StartupWMClass=Slic3r-prusa3d.pl | |
MimeType=application/stl; |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <math.h> | |
/* | |
* Simple C program to give test parameters for Kiwi Drive robot: x, y, p | |
* Two joysticks required: | |
* one provides vector of robot direction ('x' + 'y' components), | |
* the other provides pivot component (one axis only, called 'p') | |
* Values are input on command line as space separated values: x y p |
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
# Add a function to get weather refreshed every ten minutes to terminal | |
# using wttr.in. Can be used as follows: | |
# wttr Arlen # Fictional town in Texas | |
# wttr KSGF # ICAO code for Springfield, Missouri | |
# wttr # Use a default location in code below | |
# | |
# See wttr.in/:help for more details | |
wttr() | |
{ | |
tmpfile=$(mktemp /tmp/wttr.XXXXXX) |
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
public class Kiwi | |
{ | |
SafePWM s1 = new SafePWM(0); // motor 1 pwm port 0 | |
SafePWM s2 = new SafePWM(1); // motor 2 | |
SafePWM s3 = new SafePWM(2); // motor 3 | |
private final double[][] inversion = { {2/3, 0, 1/3}, {-1/3, 1/sqrt(3), 1/3}, {-1/3, -1/sqrt(3), 1/3}}; | |
public Kiwi() | |
{ |
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
// RGB flasher for Darius :D | |
int red = 3; | |
int blu = 5; | |
int grn = 9; | |
void setup() { | |
pinMode(red, OUTPUT); | |
pinMode(grn, OUTPUT); | |
pinMode(blu, OUTPUT); | |
digitalWrite(red, LOW); |
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 java.util.ArrayList; | |
public class FSM | |
{ | |
public class State | |
{ | |
final boolean acceptor; | |
private final int num; | |
final int r0; // what to return if given zero | |
final int r1; // what to return if given one |
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
/* | |
* Autonomous Board Test | |
* | |
* Test an individual switch for Autonomous on the RoboRIO for BGHS/4802 in the | |
* 2016 FRC game. | |
*/ | |
void setup() | |
{ | |
// send serial to the PC |