Instance | Branch |
---|
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
# This snippet was written by Dimitri Racordon ([email protected]) | |
# | |
# Copyright (c) 2015 Dimitri Racordon | |
# Licensed under the The MIT License (MIT). | |
class lazy(object): | |
# This class is heavily inspired by the werkzeug.utils.cached_property | |
# decorator. It transforms a class method to a lazy property, evaluated | |
# the first time the property is accessed. |
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
<?php | |
/** | |
* @version 1.0.0 | |
* @package com_stats | |
* @copyright Copyright (C) 2012. All rights reserved. | |
* @license GNU General Public License version 2 or later; see LICENSE.txt | |
*/ | |
// No direct access. | |
defined('_JEXEC') or die; |
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/sh | |
# | |
# This pre-commit hook tests that the documentation builds correctly. | |
# It can be disabled by using the "-n" option with "git commit". | |
# | |
# See http://git-scm.com/book/en/Customizing-Git-Git-Hooks for details. | |
# | |
# This pre-commit hook requires that you have the "###PROJECT###" project on your python | |
# path, in order for the DJANGO_SETTINGS_MODULE=###PROJECT###.settings to work. | |
# This is needed to build the apidoc. |
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 | |
# | |
# Example of how to parse short/long options with 'getopt' | |
# | |
OPTS=`getopt -o vhns: --long verbose,dry-run,help,stack-size: -n 'parse-options' -- "$@"` | |
if [ $? != 0 ] ; then echo "Failed parsing options." >&2 ; exit 1 ; fi | |
echo "$OPTS" |
NewerOlder