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
/*jshint evil:true */ | |
'use strict'; | |
angular.module('angular-password-strength', []) | |
.directive('passwordStrength', function() { | |
return { | |
require: 'ngModel', | |
link: function(scope, elm, attrs, ctrl) { | |
ctrl.$parsers.unshift(function(viewValue) { |
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 API\V1\Rest\HashTag; | |
use ZF\Apigility\Doctrine\Server\Resource\DoctrineResource; | |
class HashTagResource extends DoctrineResource | |
{ | |
public function findByType($type) { | |
$collection = $this->getObjectManager()->getRepository('API\\V1\\Entity\\HashTag')->findBy( |
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
// Generated on 2014-02-11 using generator-angular 0.7.1 | |
'use strict'; | |
// # Globbing | |
// for performance reasons we're only matching one level down: | |
// 'test/spec/{,*/}*.js' | |
// use this if you want to recursively match all subfolders: | |
// 'test/spec/**/*.js' | |
module.exports = function (grunt) { |
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 API\V1\Entity; | |
use Doctrine\ORM\Mapping AS ORM; | |
use Doctrine\Common\Collections\ArrayCollection; | |
/** | |
* @package Model | |
* @version |
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
$entityClass = $this->getEntityClass();//API\V1\Entity\Site | |
$entity = new $entityClass; | |
$hydrator = $this->getHydrator();//DoctrineModule\Stdlib\Hydrator\DoctrineObject | |
$hydrator->hydrate((array)$data, $entity); | |
//data | |
object(stdClass)#658 (2) { | |
["id"]=> | |
string(7) "testing" | |
["userId"]=> |
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
return array( | |
'doctrine' => array( | |
'fixtures' => array( | |
'ModuleName_fixture' => __DIR__ . '/../src/Page/Fixture', | |
), | |
), | |
); | |
print_r($options['doctrine']['fixtures']); |
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 | |
/** | |
* Zend Framework (http://framework.zend.com/) | |
* | |
* @link http://github.com/zendframework/ZendSkeletonApplication for the canonical source repository | |
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com) | |
* @license http://framework.zend.com/license/new-bsd New BSD License | |
*/ | |
namespace HdInstagram\Controller; |
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
#!/usr/bin/env php | |
<?php | |
/** | |
* Zend Framework (http://framework.zend.com/) | |
* | |
* @link http://github.com/zendframework/zf2 for the canonical source repository | |
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) | |
* @license http://framework.zend.com/license/new-bsd New BSD License | |
*/ |
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
#!/bin/sh | |
#copy this script to the installation folder of the v5 | |
# | |
# Create new Release | |
# ./update.sh release /path/to/release; | |
# | |
# Update existing Clients | |
# ./update.sh update /path/to/release /path/to/build.properties; | |
# | |
# Setup new Release Structure |
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 Application\View\Helper; | |
use Zend\View\Helper\AbstractHelper; | |
use Zend\View\Model\ViewModel; | |
use Zend\ServiceManager\ServiceManagerAwareInterface; | |
use Zend\ServiceManager\ServiceManager; | |
class JGridView extends AbstractHelper implements ServiceManagerAwareInterface |