Skip to content

Instantly share code, notes, and snippets.

@driehle
driehle / labels.yaml
Created November 23, 2021 12:19
Github Labels
- color: e11d21
description: "Waiting for the author of an issue/pull request to provide further information"
name: Awaiting Author Updates
- color: fbca03
description: "Waiting for the input of an maintainer of the repository"
name: Awaiting Maintainer Response
- color: e11d21
description: "This change introduces a break in backward compatibility"
name: BC Break
- color: fc2929
@driehle
driehle / test.html
Created April 21, 2020 17:49
bootstrap-table-demo
<p><strong>Note:</strong> This is all faked data generated with <a href="https://github.com/fzaninotto/Faker">fzaninotto/Faker</a>.</p>
<table class="table table-sm"
data-icons-prefix="fas"
data-toggle="table"
data-search="true"
data-filter-control="true"
data-pagination="false"
data-page-size="All"
@driehle
driehle / validate-scss.py
Created April 5, 2018 16:56
Indico SCSS and Jinja validation
# The MIT License (MIT)
# Copyright (c) 2018 Dennis Riehle
import os
from pathlib import Path
from scss.compiler import Compiler
from scss.errors import SassBaseError
# get the path to SCSS folder and all files in it
dir_path = Path(os.path.dirname(os.path.realpath(__file__)) + "/../scss")
file_list = [f for f in dir_path.glob('*.scss') if f.is_file()]
#pageHeader,
#topMenu > .layoutFluid,
#main,
#pageFooter {
max-width: 1400px;
margin: auto;
}
.quoteBoxAuthor {
font-size: 12px;
}
@driehle
driehle / backbone-validation-bootstrap.js.coffee
Last active February 11, 2021 15:09
Render error messages of Backbone.Validation for Twitter Bootstrap
# --------------------------------------------
# This code is for Twitter Bootstrap 2!
# --------------------------------------------
#
# The MIT License (MIT)
# Copyright (c) 2012-2015 Dennis Riehle
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights