Leaflet and WebGL sample rendering 80T points for more info read blog post
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.contrib import admin | |
| from django.contrib.flatpages.models import FlatPage | |
| # Note: we are renaming the original Admin and Form as we import them! | |
| from django.contrib.flatpages.admin import FlatPageAdmin as FlatPageAdminOld | |
| from django.contrib.flatpages.admin import FlatpageForm as FlatpageFormOld | |
| from django import forms | |
| from ckeditor.widgets import CKEditorWidget |
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
| #!/usr/bin/env bash | |
| . paver_autocomplete | |
| . fabric_autocomplete |
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
| # To strip/remove HTML tags from an existing string we can use the strip_tags function. | |
| # import the strip_tags | |
| from django.utils.html import strip_tags | |
| # simple string with html inside. | |
| html = '<p>paragraph</p>' | |
| print html # will produce: <p>paragraph</p> | |
| stripped = strip_tags(html) |
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
| #!/bin/bash -e | |
| # | |
| # Git pre-commit hook that blocks commits for files that contain swear words. | |
| # | |
| # Created by Dave Hall - http://davehall.com.au | |
| # Distributed under the terms of the WTFPL - http://www.wtfpl.net/ | |
| # | |
| # Please don't use this fucking script, it is shit! | |
| # |
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
| """ | |
| What if you suddenly need to have access to the context object from within | |
| certain filters, and it would be costly to alter its syntax? Well, that | |
| just happend to me. Here is my solution. | |
| """ | |
| def get_context(max_depth=4): | |
| """A simple (and perhaps dangerous) way of obtaining a context. Keep | |
| in mind these shortcomings: | |
| 1. There is no guarantee this returns the right 'context'. |
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
| ### | |
| ### | |
| ### UPDATE: For Win 11, I recommend using this tool in place of this script: | |
| ### https://christitus.com/windows-tool/ | |
| ### https://github.com/ChrisTitusTech/winutil | |
| ### https://www.youtube.com/watch?v=6UQZ5oQg8XA | |
| ### iwr -useb https://christitus.com/win | iex | |
| ### | |
| ### OR take a look at | |
| ### https://github.com/HotCakeX/Harden-Windows-Security |
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
| curl -L http://bit.ly/10hA8iC | bash |
This is a guide for aligning images.
See the full Advanced Markdown doc for more tips and tricks
OlderNewer