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
/** | |
ds18b20.c - work with temperature sensor DS18B20 | |
Author: Vitaiy Zhuk | |
*/ | |
#include <util/delay.h> | |
#include "ds18b20.h" | |
/** |
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 Acme\DemoBundle\Model; | |
use Symfony\Component\HttpFoundation\File\UploadedFile; | |
/** | |
* Abstract class for control attachments model (Image, flash, other files) | |
* | |
* For upload files in your entity please usage ORM\HasLifecycleCallbacks (preUpdate, prePersist) |
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
// | |
// UIImage+Additions.h | |
// Sparrow | |
// | |
// Created by Shilo White on 10/16/11. | |
// Copyright 2011 Shilocity Productions. All rights reserved. | |
// | |
#define COLOR_PART_RED(color) (((color) >> 16) & 0xff) | |
#define COLOR_PART_GREEN(color) (((color) >> 8) & 0xff) |
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 | |
use Doctrine\ORM\EntityManager, | |
Doctrine\ORM\Configuration, | |
Doctrine\ORM\Mapping\ClassMetadata; | |
/** | |
* Active Entity trait | |
* | |
* Limitations: a class can only ever be assocaited with ONE active entity manager. Multiple entity managers |