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
| /** | |
| * Menu by Wim Norder (gh/twtr: @wimnorder) | |
| */ | |
| @import url(http://fonts.googleapis.com/css?family=Graduate); | |
| @import url(http://yui.yahooapis.com/3.3.0/build/cssreset/reset-min.css); | |
| body { | |
| font-family:'Graduate', cursive; | |
| } |
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 | |
| //TODO: написать пустышку похожую на рабочий вариант и прогнать под отладчиком | |
| class k_servicepayment_cache | |
| { | |
| const SERVICE_CACHE_DIR = '/terminal/_servicelib_cache'; | |
| const SERVICE_TREE_FILE = '/terminal/servicelib/service_tree.js'; | |
| const SERVICE_LOGO_DIR = '/terminal/servicelib/logo'; | |
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 clean($value) | |
| { | |
| if (get_magic_quotes_gpc()) $value = stripslashes($value); | |
| if (!is_numeric($value)) $value = mysql_real_escape_string($value); | |
| return $value; | |
| } |
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/ruby | |
| # load the required library | |
| require 'rubygems' | |
| require 'dbf' | |
| require 'yaml' | |
| require 'active_record' | |
| # check the command line argument | |
| def check_argument |
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 | |
| class dbf2sql | |
| { | |
| var $db; | |
| var $num_records; | |
| var $num_fields; | |
| var $nome_arq; | |
| var $table; | |
| var $myfile; |
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
| /* | |
| #import "JSON.h" | |
| */ | |
| // SBJSON object | |
| SBJSON *parser = [[SBJSON alloc] init]; | |
| // URL to serviceTree.json | |
| NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:@"http://pw.net/serviceTree.json"]]; | |
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 | |
| /** | |
| * PHP Autoloader | |
| * */ | |
| class CAutoloader | |
| { | |
| public static $loader; | |
| public static function init() |
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 | |
| /** | |
| * SplClassLoader implementation that implements the technical interoperability | |
| * standards for PHP 5.3 namespaces and class names. | |
| * | |
| * http://groups.google.com/group/php-standards/web/final-proposal | |
| * | |
| * // Example which loads classes for the Doctrine Common package in the | |
| * // Doctrine\Common namespace. |
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 | |
| $date_start = date('Y-m-d 00:00:00', strtotime('-1 day')) ; | |
| $date_finish = date('Y-m-d 23:59:59', strtotime('-1 day')) ; | |
| echo "<b>Date start:</b> " . $date_start ."<br/>"; | |
| echo "<b>Date finish:</b> " . $date_finish ."<br/>"; | |
| ?> |
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 | |
| for i in $(find /var/www/_convert/all/ ) ; do | |
| pdfname=$(basename "${i}") | |
| outname=$(basename "${i}" .pdf) | |
| convert -verbose -density 150 ${pdfname} -quality 100 -sharpen 0x1.0 -size 723x935 "${outname}.png" | |
| done |