Skip to content

Instantly share code, notes, and snippets.

<?xml version="1.0" encoding="UTF-8"?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/" xmlns:moz="http://www.mozilla.org/2006/browser/search/">
<!-- Generated by http://www.7is7.com/software/firefox/opensearch.html -->
<ShortName>WordHippo Synonyms</ShortName>
<Description>WordHippo Synonyms</Description>
<Url type="text/html" method="get" template="https://www.wordhippo.com/what-is/another-word-for/{searchTerms}.html"/>
<Image width="16" height="16" type="image/x-icon">https://www.wordhippo.com/favicon.ico</Image>
<InputEncoding>UTF-8</InputEncoding>
<moz:SearchForm>https://www.wordhippo.com/</moz:SearchForm>
<moz:UpdateUrl>https://www.wordhippo.com/</moz:UpdateUrl>
@austing
austing / opensearch.xml
Created February 14, 2022 20:34
grimm-opensearch.xml
<?xml version="1.0" encoding="UTF-8"?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/" xmlns:moz="http://www.mozilla.org/2006/browser/search/">
<!-- Generated by http://www.7is7.com/software/firefox/opensearch.html -->
<ShortName>Grimms Wörterbuch</ShortName>
<Description>Grimms Wörterbuch</Description>
<Url type="text/html" method="get" template="https://www.woerterbuchnetz.de/DWB/{searchTerms}"/>
<Image width="16" height="16" type="image/x-icon">https://www.woerterbuchnetz.de/DWB/favicon.ico</Image>
<InputEncoding>UTF-8</InputEncoding>
<moz:SearchForm>https://www.woerterbuchnetz.de/DWB/</moz:SearchForm>
<moz:UpdateUrl>https://www.woerterbuchnetz.de/DWB/opensearch.xml</moz:UpdateUrl>
@austing
austing / etymologie-opensearch.xml
Last active February 14, 2022 20:30
Add Firefox search for cnrtl etymologie
<?xml version="1.0" encoding="UTF-8"?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/" xmlns:moz="http://www.mozilla.org/2006/browser/search/">
<!-- Generated by http://www.7is7.com/software/firefox/opensearch.html -->
<ShortName>CNRTL Etymologie</ShortName>
<Description>CNRTL Etymologie Recherche</Description>
<Url type="text/html" method="get" template="https://cnrtl.fr/etymologie/{searchTerms}"/>
<Image width="16" height="16" type="image/x-icon">https://cnrtl.fr/favicon.ico</Image>
<InputEncoding>UTF-8</InputEncoding>
<moz:SearchForm>https://cnrtl.fr/etymologie/</moz:SearchForm>
<moz:UpdateUrl>https://cnrtl.fr/etymologie/opensearch.xml</moz:UpdateUrl>
@austing
austing / synonymie-opensearch.xml
Last active February 14, 2022 20:27 — forked from doyousketch2/opensearch.xml
Add Firefox search for CNRTL Synonymie
<?xml version="1.0" encoding="UTF-8"?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/" xmlns:moz="http://www.mozilla.org/2006/browser/search/">
<!-- Generated by http://www.7is7.com/software/firefox/opensearch.html -->
<ShortName>CNRTL Synonymie</ShortName>
<Description>CNRTL Synonymie Recherche</Description>
<Url type="text/html" method="get" template="https://cnrtl.fr/synonymie/{searchTerms}"/>
<Image width="16" height="16" type="image/x-icon">https://cnrtl.fr/favicon.ico</Image>
<InputEncoding>UTF-8</InputEncoding>
<moz:SearchForm>https://cnrtl.fr/</moz:SearchForm>
<moz:UpdateUrl>https://cnrtl.fr/opensearch.xml</moz:UpdateUrl>
Verifying that +mountainofmoney is my blockchain ID. https://onename.com/mountainofmoney
Verifying that +mountainofmoney is my blockchain ID. https://onename.com/mountainofmoney
Verifying that +mountainofmoney is my blockchain ID. https://onename.com/mountainofmoney
@austing
austing / gist:867005
Created March 12, 2011 03:24
ModelChoiceField for mongoengine
class MongoModelChoiceField(ModelChoiceField):
# this works if you pass the field a queryset keyword argument. I doubt it works with a model as the argument
# does not support to_field_name, but that would be easy
def to_python(self, value):
if value in EMPTY_VALUES:
return None
# mongoengine has no deepcopy as yet, so we can't do:
# querycopy = self.queryset.copy()
# value = querycopy.filter(pk=value.pk).first()
# instead:
@austing
austing / gist:779243
Created January 14, 2011 05:59
Python choices tuple for "Select Language (iso-639)" widget
iso_639_choices = [('ab', 'Abkhaz'),
('aa', 'Afar'),
('af', 'Afrikaans'),
('ak', 'Akan'),
('sq', 'Albanian'),
('am', 'Amharic'),
('ar', 'Arabic'),
('an', 'Aragonese'),
('hy', 'Armenian'),
('as', 'Assamese'),
@austing
austing / Django CustomRadioSelect
Created January 7, 2011 07:08
customized form rendering in Django: RadioSelect with labels on the left
# forms.py
from django import forms
from django.core import validators
from django.forms.widgets import RadioSelect,HiddenInput
from django.utils.safestring import mark_safe
from django.utils.encoding import StrAndUnicode, force_unicode
from django.utils.html import escape, conditional_escape
class CustomRadioInput(forms.widgets.RadioInput):