public class ItemOffsetDecoration extends RecyclerView.ItemDecoration {
private int mItemOffset;
public ItemOffsetDecoration(int itemOffset) {
mItemOffset = itemOffset;
}
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
| public class Adder { | |
| private OnMathOperationPerformed onMathOperationPerformed; | |
| private int a, b; | |
| public Adder(int a, int b) { | |
| this.a = a; | |
| this.b = b; | |
| } |
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
| // create file: | |
| sudo vim /usr/share/applications/intellij.desktop | |
| // add the following | |
| [Desktop Entry] | |
| Version=13.0 | |
| Type=Application | |
| Terminal=false | |
| Icon[en_US]=/home/rob/.intellij-13/bin/idea.png | |
| Name[en_US]=IntelliJ |
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
| #pragma once | |
| #include "Audio.h" | |
| Audio::Audio(std::string str) { | |
| if (str.substr(str.size() - 4) != ".wav") | |
| throw std::invalid_argument("Can only read WAV files!"); | |
| load_wav(str); | |
| } |
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
| FROM python:3.7.2-alpine | |
| RUN pip install --upgrade pip | |
| RUN adduser -D worker | |
| USER worker | |
| WORKDIR /home/worker | |
| COPY --chown=worker:worker requirements.txt requirements.txt | |
| RUN pip install --user -r requirements.txt |
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
| #ifndef JSONLIB_H | |
| #define JSONLIB_H | |
| #include <iostream> | |
| #include <cctype> | |
| #include <unordered_map> | |
| #include <sstream> | |
| #include <memory> | |
| #include <type_traits> | |
| #include <iterator> |
This document describes how to install the Vagrant libvirt provider on Ubuntu 22.04.2 LTS Desktop or Server. Much of the content is based on a blog post by Philippe Vanhaesendonck of Oracle Corp. describing how to set up the Vagrant libvirt provider on Oracle Linux.
All of the commands shown should be run in a terminal window or SSH session.
This guide will help you connect your Sony WH-1000XM4 headset to Ubuntu 22.04 using Bluetooth. Once connected, you'll be able to listen to music and use the microphone on apps like Microsoft Teams.
- Open a terminal and launch
bluetoothctl: