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/env bash | |
# Hides all unhidden tesktop icons, or if they are all hidden already, | |
# unhides all (excluding dot prefixed). | |
# (this way allows adding to desktop even if all is hidden) | |
# NOTE: your DE/file manager has to support .hidden files (different from just supporting hiding files prepended with '.') | |
# afaik its supported with the major distros/file managers (gnome, plasma, xfce) | |
DESKTOP_DIR=~/Desktop | |
HIDDEN_FILE="$DESKTOP_DIR/.hidden" |
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 | |
selfBaseName=$(basename -- "$(readlink -f -- "$0")") | |
usage="Usage: ${selfBaseName} <username> <command>" | |
if test $# -ne 2; then | |
echo $usage | |
exit | |
fi |
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 | |
template<typename T> | |
class contains { | |
const T& item; | |
public: | |
contains(const T& item) : item(item) {} | |
template<typename C> |
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 android.arch.lifecycle.Observer; | |
import android.support.annotation.Nullable; | |
public abstract class IgnorantObserver<T> implements Observer<T>{ | |
private boolean isIgnoring = false; | |
private boolean doingIgnorantly = false; | |
public IgnorantObserver(){ | |
this(false); | |
} |