This file contains 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 argparse | |
import os | |
import sys | |
import warnings | |
import requests | |
from lxml import etree | |
MAX_COUNT = 1000 | |
MAX_RESULTS = 2501 # hardcoded to save us doing parsing of numberMatched |
This file contains 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.gis.db import models | |
from django.db.models.fields.related import (ForeignObject, | |
ForwardManyToOneDescriptor) | |
from .models import Address | |
def get_address(value: (Address, int, dict, None)) -> (Address, int, None): | |
if value is None: | |
return None |
This file contains 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 uuid import uuid4 | |
from django.db.models import Model | |
from django.forms import BaseForm | |
__all__ = ( | |
'WrappedForm', | |
) | |
This file contains 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.views import generic | |
from django.db.models.base import Model | |
from collections import OrderedDict | |
from django.forms import BaseForm | |
from django.core.validators import RegexValidator | |
__all__ = ( | |
'AdditionalFormsMixin', | |
) |
This file contains 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/sh | |
WRKDIR=/usr/obj/ports/usr/ports/astro/nominatim/work | |
WRKSRC=$(realpath .) | |
BUILD_DIR="${WRKDIR}/.build" | |
MAKE=$(which gmake) | |
MAKE_JOBS=${MAKE_JOBS:-"2"} | |
CONFIGURE_ARGS="-DWWW_PUBLIC:PATH=/usr/local/www/nominatim -DWWW_APP:PATH=/usr/local/share/nominatim" | |
rm -rf ${BUILD_DIR} | |
mkdir -p ${BUILD_DIR} |
This file contains 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.db import models | |
from django.db.models.signals import post_init | |
from django.db.models.fields import NOT_PROVIDED | |
from django.core import validators as v | |
class Substance(models.Model): | |
name = models.CharField(max_length=32, primary_key=True) | |
This file contains 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
--- ./pages/models.py.orig 2016-09-08 03:02:33.000000000 +0200 | |
+++ ./pages/models.py 2017-01-26 23:26:16.672548649 +0100 | |
@@ -18,6 +18,7 @@ | |
from mezzanine.pages.fields import MenusField | |
from mezzanine.pages.managers import PageManager | |
from mezzanine.utils.urls import path_to_slug | |
+from mezzanine.core.models import wrapped_manager | |
class BasePage(Orderable, Displayable): |
This file contains 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 dcb7b18f53289861af3b540723c759372777f60f Mon Sep 17 00:00:00 2001 | |
From: Melvyn Sopacua <[email protected]> | |
Date: Tue, 15 Nov 2016 12:07:35 +0100 | |
Subject: [PATCH] Fix port to build with openssl-devel: | |
* Do some macro hacking to rework *_init(ctx) to ctx = *_new() caused by | |
making (most) types Opaque | |
* libmd(3) will now be used for generic hashing functions | |
* -lcrypto has to be added since CRYPTO_CHECK(*, openssl, *) now fails | |
* Temporarily set PATCH_STRIP to allow git patches to apply cleanly |
This file contains 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/sh | |
_me=`basename $0` | |
_prod_root='/data/web/public' | |
_stage_root='/data/web/staging' | |
_wp_subdir='blog' | |
_wp_imageroot='' | |
[ ! -z "${_wp_subdir}" ] && _wp_imageroot="${_wp_subdir}/wp-content/uploads" | |
echo "Synchronizing media to staging (${_stage_root})" |
This file contains 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 | |
# Patch apllying tool template | |
# v0.1.2 | |
# (c) Copyright 2013. Magento Inc. | |
# | |
# DO NOT CHANGE ANY LINE IN THIS FILE. | |
# 1. Check required system tools | |
_check_installed_tools() { | |
local missed="" |
NewerOlder