public class ItemOffsetDecoration extends RecyclerView.ItemDecoration {
private int mItemOffset;
public ItemOffsetDecoration(int itemOffset) {
mItemOffset = itemOffset;
}
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
#ifndef JSONLIB_H | |
#define JSONLIB_H | |
#include <iostream> | |
#include <cctype> | |
#include <unordered_map> | |
#include <sstream> | |
#include <memory> | |
#include <type_traits> | |
#include <iterator> |
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
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 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 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 |