Integrates:
The code below displays a single paginated table with a simple filter.
Inspired by this article
Integrates:
The code below displays a single paginated table with a simple filter.
Inspired by this article
| .cm-green { | |
| background-image: linear-gradient(30deg,#16d6d9,#96cc29); | |
| } | |
| .cm-blue { | |
| background-image: linear-gradient(30deg,#009cf3,#16d6d9); | |
| } | |
| .cm-pink { | |
| background-image: linear-gradient(30deg,#ff2277,#7a288c); |
| import wagtail.admin.rich_text.editors.draftail.features as draftail_features | |
| from wagtail.admin.rich_text.converters.html_to_contentstate import InlineStyleElementHandler | |
| from wagtail.core import hooks | |
| @hooks.register('register_rich_text_features') | |
| def register_custom_style_feature(features): | |
| feature_name = 'mycustomstyle' # .mycustomstyle will have to be defined in the CSS in order to get frontend styles working | |
| type_ = feature_name.upper() | |
| tag = 'span' |
| <# | |
| .SYNOPSIS | |
| This script installs Visual Studio Code Silently. | |
| .DESCRIPTION | |
| The script downloads the latest VSCode installer and performs a silent installation. | |
| .NOTES | |
| Run this script on a Windows Server instance. | |
| #> |
| import getYear from 'date-fns/get_year' | |
| import getMonth from 'date-fns/get_month' | |
| import addDays from 'date-fns/add_days' | |
| import startOfWeek from 'date-fns/start_of_week' | |
| const rows = range(6) | |
| const cols = range(7) | |
| /** | |
| * Returns a two-dimensional array with calendar represented dates |
| # | |
| # Working with branches | |
| # | |
| # Get the current branch name (not so useful in itself, but used in | |
| # other aliases) | |
| branch-name = "!git rev-parse --abbrev-ref HEAD" | |
| # Push the current branch to the remote "origin", and set it to track | |
| # the upstream branch | |
| publish = "!git push -u origin $(git branch-name)" |
| #! /usr/bin/env python | |
| ''' | |
| This is more of a personal reference as I use json very often. | |
| The httplib2 examples are VERY good, and you should refer to them: | |
| http://code.google.com/p/httplib2/wiki/Examples | |
| ''' | |
| from httplib2 import Http | |
| try: |
| # United States of America Python Dictionary to translate States, | |
| # Districts & Territories to Two-Letter codes and vice versa. | |
| # | |
| # Canonical URL: https://gist.github.com/rogerallen/1583593 | |
| # | |
| # Dedicated to the public domain. To the extent possible under law, | |
| # Roger Allen has waived all copyright and related or neighboring | |
| # rights to this code. Data originally from Wikipedia at the url: | |
| # https://en.wikipedia.org/wiki/ISO_3166-2:US | |
| # |