Skip to content

Instantly share code, notes, and snippets.

View rtpm's full-sized avatar

Robert rtpm

  • Poland
View GitHub Profile
@rtpm
rtpm / list.md
Created January 28, 2022 11:55 — forked from ih2502mk/list.md
Quantopian Lectures Saved
@rtpm
rtpm / settings.py
Created June 16, 2017 12:02
webstack django sorting {% anchor %} tag problem
"""
Django settings for wdstest project.
Generated by 'django-admin startproject' using Django 1.11.2.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
@rtpm
rtpm / .bash_prompt.sh
Created June 7, 2017 12:47 — forked from miki725/.bash_prompt.sh
Custom bash prompt which displays: (virtualenv) user:/path (git-branch)
#!/bin/bash
#
# DESCRIPTION:
#
# Set the bash prompt according to:
# * the active virtualenv
# * the branch of the current git/mercurial repository
# * the return value of the previous command
# * the fact you just came from Windows and are used to having newlines in
# your prompts.
@rtpm
rtpm / gist:5642913
Last active December 17, 2015 16:59
AngularJS notification service for use in Phonegap & desktop browsers. Depends on angular-ui bootstrap & angular-phonegap-notification projects.
econtainersApp.factory("NotificationService", function ($dialog, notification) {
return {
showAlert: function (message, alertCallback, title, buttonName) {
if (navigator.notification) {
notification.alert(message, alertCallback, title, buttonName)
} else {
var buttonName = (typeof buttonName === "undefined") ? "Ok" : buttonName;
var msgbox = $dialog.messageBox(title, message, [{
label: buttonName
}