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 a prompt command function that can set the terminal title with info including your Git branch | |
__prompt_command() { | |
# Based on: http://stackoverflow.com/a/13003854/170413 | |
local branch | |
if branch=$(git rev-parse --abbrev-ref HEAD 2> /dev/null); then | |
if [[ "$branch" == "HEAD" ]]; then | |
branch='detached' | |
fi |
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 django import forms | |
from django.contrib.postgres.fields import ArrayField | |
class ChoiceArrayField(ArrayField): | |
""" | |
A field that allows us to store an array of choices. | |
Uses Django 1.9's postgres ArrayField | |
and a MultipleChoiceField for its formfield. |
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
import os | |
import logging | |
from django.core import serializers | |
LOGGER = logging.getLogger(__name__) | |
def load_fixture(app, fixture, ignorenonexistent=True): | |
""" |
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
diff --git a/aloe/fs.py b/aloe/fs.py | |
index e2c99f8..51c7ac7 100644 | |
--- a/aloe/fs.py | |
+++ b/aloe/fs.py | |
@@ -37,7 +37,6 @@ except NameError: | |
# pylint:disable=no-name-in-module,redefined-builtin | |
from importlib import reload | |
# pylint:enable=no-name-in-module,redefined-builtin | |
-from os.path import join, dirname | |
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
// ==UserScript== | |
// @name View CI Images | |
// @namespace io.ixa.ci | |
// @description View CI Images | |
// @version 1 | |
// @match https://gitlabci/projects/*/builds/* | |
// ==/UserScript== | |
(function ($) { | |
var text = $('#build-trace').html(); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.