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 | |
| function EmptySubFolders($path) { | |
| $empty = true; | |
| foreach(glob($path.DIRECTORY_SEPARATOR."*") as $file) { | |
| if (is_dir($file)) { | |
| if (!EmptySubFolders($file)) { | |
| $empty = false; | |
| } | |
| } | |
| else { |
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
| "use strict"; | |
| // Load plugins | |
| const autoprefixer = require("autoprefixer"); | |
| const browsersync = require("browser-sync").create(); | |
| const cp = require("child_process"); | |
| const cssnano = require("cssnano"); | |
| const del = require("del"); | |
| const eslint = require("gulp-eslint"); | |
| const gulp = require("gulp"); |
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/perl | |
| use MIME::Lite; | |
| use DBI; | |
| use GD::Graph::lines; | |
| use Data::Dumper; | |
| use POSIX qw(strftime); | |
| use Date::Parse; | |
| $ENV{'ORACLE_HOME'} = "/opt/oracle/db11g"; | |
| $ENV{'LD_LIBRARY_PATH'} = "/opt/oracle/db11g/lib/"; |
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
| // ReflectionToStringBuilder wraps a class and outputs a string describing | |
| // its attributes, more or less similar to var_dump in PHP | |
| import org.apache.commons.lang.builder.ReflectionToStringBuilder | |
| variable= new ComplexObject() | |
| println new ReflectionToStringBuilder( variable).toString() |
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
| $(document).ready(function(){ | |
| $('.offer').eq(0).addClass('active'); | |
| var link = $('.offer_link a') | |
| link.on('click', function(e){ | |
| var panel = $(this).closest('.offer'); |