Skip to content

Instantly share code, notes, and snippets.

View geoaxis's full-sized avatar
✔️
Learning

Shahzada Hatim geoaxis

✔️
Learning
View GitHub Profile
@geoaxis
geoaxis / custom.css
Last active February 10, 2023 15:25
Add copy links to elements dynamically when page loads (for doc360)
.product-help-section {
background: #3d1177 url(https://doc360-dev-cdn.azureedge.net/39a4a157-6e9f-426c-832b-c9b83cfcfdc0/Images/Documentation/help-section-bg.jpg) top center no-repeat;
color: #fff;
padding: 35px 0px;
text-align: center;
position: relative;
}
.product-help-section .product-help-section-title {
margin-bottom: 10px;
@Component
@Slf4j
public class SensorTagScannerController implements Initializable {
private static final String ZERO_CELSIUS_STRING = "00.00";
@FXML
public Label status;
@FXML
public Button scanButton;
@Slf4j
@AllArgsConstructor
public class CentralManagerCallback extends BluetoothCentralManagerCallback {
private final ObjectProperty<BLEState> bleStateProperty;
private final ObjectProperty<BluetoothPeripheral> connectedPeripheral;
private final ObservableList<String> discoveredDevices;
private final Map<String, BluetoothPeripheral> peripheralMap;
@Override
@Slf4j
@AllArgsConstructor
public class PeripheralCallback extends BluetoothPeripheralCallback {
private final StringProperty irTemperatureString;
private final StringProperty ambientTemperatureString;
@Override
public void onServicesDiscovered(@NotNull BluetoothPeripheral peripheral,
@NotNull List<BluetoothGattService> services) {
@SpringBootApplication
public class BlessedJavafxRpi3Application extends Application {
@Autowired
private SensorTagScannerController sensorTagScannerController;
public static void main(String[] args) {
Application.launch();
}
@geoaxis
geoaxis / pom.xml
Last active November 20, 2021 21:50
pom blessed pi
...
<properties>
<java.version>11</java.version>
<blessed-bluez-version>0.39</blessed-bluez-version>
<lombok-version>1.18.22</lombok-version>
<javafx.version>18-ea+6</javafx.version>
<jetbrains.annotations.version>23.0.0</jetbrains.annotations.version>
</properties>
...
@geoaxis
geoaxis / Setting-up-Windows-WSL1.md
Created July 29, 2020 12:03 — forked from roustem/Setting-up-Windows-WSL1.md
Setting-up-Windows-WSL1
@geoaxis
geoaxis / PyQt5+EGLFS.md
Created July 22, 2020 12:25 — forked from malachib/PyQt5+EGLFS.md
PyQt5 + Raspberry Pi + EGLFS notes

Debian

Modules you probably need:

sudo apt-get install qt5-default qml-module-qtquick-controls qml-module-qtquick-controls2

Also recommended:

sudo apt-get install qml-module-qtlocation qml-module-qtpositioning

@geoaxis
geoaxis / qtrpi-cross-compile.md
Created July 22, 2020 11:12 — forked from kelixlabs/qtrpi-cross-compile.md
Cross-compiling Qt for HW accelerated OpenGL with eglfs on Raspbian and setting up Qt Creator

QT-Raspi Cross Compile

Prepare the Raspberry Pi:

Install raspbian

Get the latest raspbian image here

Enable deb-src repos

@geoaxis
geoaxis / amazon-ec2-ftp.md
Created June 9, 2017 10:31 — forked from gunjanpatel/amazon-ec2-ftp.md
amazon ec2 LAMP and FTP installation and setup