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 php | |
| <?php | |
| class Hello { | |
| public function say($what) { | |
| echo "Hello {$what}!\n"; | |
| } | |
| } | |
| $hello = new Hello(); |
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 python | |
| # -*- coding: utf-8 -*- | |
| # | |
| # written by Arthur Furlan <[email protected]> | |
| from __future__ import with_statement | |
| from fabric.api import * | |
| import socket | |
| import time |
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 python | |
| # -*- coding: utf-8 -*- | |
| # BaseConverter used in django-shorturls: https://github.com/jacobian/django-shorturls | |
| # https://github.com/jacobian/django-shorturls/blob/master/src/shorturls/baseconv.py | |
| from shorturls.baseconv import BaseConverter | |
| # SequenceMapper used in django-shortim: https://github.com/valvim/django-shortim | |
| # https://github.com/valvim/django-shortim/blob/master/src/shortim/models.py | |
| from shortim.sequencemapper import SequenceMapper, SHORTIM_SHORTURL_CHARS |
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 | |
| # written by Arthur Furlan <[email protected]> | |
| # check the script usage | |
| if [ $# -lt 1 ]; then | |
| echo "Usage: $0 PATH [FROM-ENCODING] [TO-ENCODING]" | |
| exit 1 | |
| elif [ ! -d $1 ]; then | |
| echo "Error: directory $1 not found." | |
| exit 2 |