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
#----------------------------------------------- | |
# Make command: | |
# make build=<build> all | |
# <build>: debug or release, release by default. | |
#----------------------------------------------- | |
#----------------------------------------------- | |
# setup variables | |
# ---------------------------------------------- |
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/python3 | |
# | |
# Scatter plot example using pyqtgraph with PyQT5 | |
# | |
# Install instructions for Mac: | |
# brew install pyqt | |
# pip3 install pyqt5 pyqtgraph | |
# python3 pyqtgraph_pyqt5.py | |
import sys |
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
#!/bin/bash | |
### BEGIN INIT INFO | |
# Provides: sixad | |
# Required-Start: $local_fs $syslog $remote_fs bluetooth | |
# Required-Stop: $local_fs $syslog $remote_fs | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Start sixad | |
### END INIT INFO | |
# |
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
M104 S0 ; turn off temperature | |
M140 S0 ; turn off heatbed | |
G28 X0 ; home X axis | |
G1 Y150.0 ; move bed forward | |
M84 ; disable motors |
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
// Copyright (c) 2008-2014, Andrew Walker | |
// | |
// 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 |
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/python | |
# | |
# Copyright (C) 2018 Kristian Lauszus, Candela. All rights reserved. | |
# | |
# Contact information | |
# ------------------- | |
# Kristian Lauszus | |
# Web : http://www.lauszus.com | |
# e-mail : [email protected] |
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
# /opt/retropie/configs/n64/InputAutoCfg.ini | |
# See: https://github.com/mupen64plus/mupen64plus-input-sdl/blob/master/data/InputAutoCfg.ini | |
[PLAYSTATION(R)3 Controller] | |
[Sony PLAYSTATION(R)3 Controller] | |
[SHENGHIC 2009/0708ZXW-V1Inc. PLAYSTATION(R)3Conteroller] | |
plugged = True | |
plugin = 2 | |
mouse = False | |
AnalogDeadzone = 4096,4096 |
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
/* | |
Code for controlling a RC car using a SteelSeries SRW-S1 Steering Wheel - developed by Kristian Lauszus | |
The PPM signal is connected to the trainer port of a RC transmitter which then sends the signal to the RC car | |
The SRWS1 library is part of the USB Host Shield library: https://github.com/felis/USB_Host_Shield_2.0 | |
PPM code is based on: https://code.google.com/archive/p/generate-ppm-signal | |
For more information visit my blog: http://blog.tkjelectronics.dk/ or | |
send me an e-mail: [email protected] | |
*/ | |
#include <EEPROM.h> // Include the official EEPROM library |
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
/* | |
This is a modified version of the PS3BT.ino example sketch by Kristian Lauszus | |
For more information visit his blog: http://blog.tkjelectronics.dk/ or | |
send him an e-mail: [email protected] | |
*/ | |
#include <Servo.h> // Include the Servo library: https://www.arduino.cc/en/reference/servo | |
Servo servo1, servo2; // Create instances of type Servo. servo1 is the steering servo and servo2 is the ESC. |
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
$ detex Report.tex | echo "scale=3; `wc -m`/2400" | bc -l | |
$ detex Report.tex | tr -d ' \t\r\n' | echo "scale=3; `wc -m`/2200" | bc -l |