Skip to content

Instantly share code, notes, and snippets.

@AlexKorovyansky
AlexKorovyansky / NewRelicSplitApplication.java
Last active March 9, 2021 15:54
Trick for separating Develop from Release versions in New Relic Mobile SDK.
...
NewRelic.withApplicationToken(getString(R.string.my_new_relic_application_token).start(this);
...
@outadoc
outadoc / Keolis-API.md
Last active April 20, 2024 15:04
Keolis Real-time API

Keolis "open-data" : XML Realtime API

Les données retournées sont au format XML.

Document trouvé et modifié depuis Pastebin.

Récupérer la liste des lignes

@eramdam
eramdam / eramdam.zsh-theme
Last active August 29, 2015 14:00
This oh-my-zsh theme is a modification of the dpoggi one bundled with oh-my-zsh, it features a non-emoji lightning character and some visual tweaks
# This theme is a modification of the dpoggi one bundled with oh-my-zsh, it features a non-emoji lightning character and some visual tweaks
function my_git_prompt_info() {
if [[ "$(git config --get oh-my-zsh.hide-status)" != "1" ]]; then
ref=$(command git symbolic-ref HEAD 2> /dev/null) || \
ref=$(command git rev-parse --short HEAD 2> /dev/null) || return
echo "$ZSH_THEME_GIT_PROMPT_PREFIX${ref#refs/heads/}$(parse_git_dirty)$(git_remote_status)$ZSH_THEME_GIT_PROMPT_SUFFIX"
fi
}
if [ $UID -eq 0 ]; then NCOLOR="red"; else NCOLOR="green"; fi