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 os | |
import sys | |
import site | |
# Calculates the path based on location of WSGI script. | |
apache_configuration = os.path.realpath(os.path.dirname(__file__)) | |
project = os.path.join(apache_configuration, 'nomedoproto') | |
sys.path.append(apache_configuration) | |
sys.path.append(project) |
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
sub file_put_contents { | |
my $fh; | |
open($fh, '>>', "/some/path/file.txt") or die "Couldn't open: $!"; | |
print $fh "\n"; | |
print $fh @_[0]; | |
print $fh @_[1]; | |
close $fh; | |
} | |
file_put_contents("1:","new"); | |
use Data::Dumper; |
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
<?php | |
/** | |
* php-ansi-color | |
* | |
* Original | |
* https://github.com/loopj/commonjs-ansi-color | |
* | |
* @code | |
* <?php | |
* require_once "ansi-color.php"; |