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
function addRecord($record, $db) { | |
try { | |
$db->lock($record->table); | |
$db->prepare($record->sql); | |
$db->exec($record->params); | |
} | |
catch(Exception $e) { | |
$db->rollback($record); | |
if (!write_log($e->getMessage(), $e->getTraceAsString())) { | |
throw new Exception('Unable to write to error log.'); |
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
catalog: | |
patterns: '/catalog/{:path}' | |
params: | |
path: '(.*)' | |
values: | |
application: 'site' | |
controller: 'shop' | |
action: 'catalog' |
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
---------------------------------------- | |
Андре Ламот | |
Программирование игр для Windows | |
http://progbook.ru/opengl_directx/518-lamot-programmirovanie-igr-dlya-windows-sovety.html | |
----------------------------------------- | |
----------------------------------------- | |
Дональд Кнут — Искусство программирования | |
это конечно круто, но слишком много математики склоняюсь к Н. Вирту |
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
{ | |
"_id": ObjectId("50d47cac9bab88133c000000"), | |
"catalog": "50b4fe569bab88a853000000", | |
"count": NumberInt(12), | |
"dateAdd": ISODate("2012-12-21T15: 13: 48.794Z"), | |
"description": "<b>выв<\/b> вфыв фвфывывфыв вфы<br>", | |
"images": { | |
"0": { | |
"id": "50ddb8ec7d3a19_44640307.jpg", | |
"time": NumberInt(1356708076), |
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 | |
namespace models\ODM\Repositories; | |
use Doctrine\ODM\MongoDB\DocumentRepository; | |
use Documents\Shop\Products; | |
use lib\Doctrine\DoctrineOdm; | |
/** | |
* ShopProductsRepository |
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
{% extends _extend_shop %} | |
{% import 'forms.html' as form %} | |
{% block includes %} | |
{{ parent() }} | |
{{ addCss('css/shop') }} | |
{{ addJs('js/shop/inputsCollection') }} |
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 | |
namespace lib\Templates\EngineExtensions; | |
use Twig_Extension; | |
use lib\Core\IncluderService; | |
use Twig_Function_Method; | |
class ViewHelper extends Twig_Extension { |
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
Ext.define('Shop.store.ProductsStore', { | |
extend:'Ext.data.Store', | |
storeId:'ProductsStore', | |
autoSync:true, | |
model:'Shop.model.ProductModel', | |
pageSize: 15, | |
remoteSort: true, | |
proxy:{ | |
type:'ajax', | |
api:{ |
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 | |
namespace ODM\Proxies\__CG__\Documents\Shop; | |
use Doctrine\ODM\MongoDB\Persisters\DocumentPersister; | |
/** | |
* THIS CLASS WAS GENERATED BY THE DOCTRINE ODM. DO NOT EDIT THIS FILE. | |
*/ | |
class Catalog extends \Documents\Shop\Catalog implements \Doctrine\ODM\MongoDB\Proxy\Proxy |
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
using System; | |
using UnityEngine; | |
using System.Collections; | |
public class Device { | |
//************************************************************************** | |
// | |
// Const | |
// |
OlderNewer