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
/** | |
* Created by pedrofurla on 26/03/14. | |
*/ | |
package slicks.docs | |
import slicks.docs.dao.{Entity, IdentifiableTable, CrudComponent, Profile} | |
case class User(id: Option[Long], first: String, last: String) extends Entity[Long] | |
trait UserComponent extends CrudComponent { outer: Profile => |
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
<templateSet group="JavaScript"> | |
<template name="us" value="'use strict'; $END$" description="Inserts 'use strict' statement" toReformat="true" toShortenFQNames="true"> | |
<context /> | |
</template> | |
<template name="f" value="function $NAME$($PARAM$) { $END$ }" description="Inserts function expression" toReformat="true" toShortenFQNames="true"> | |
<variable name="NAME" expression="" defaultValue="" alwaysStopAt="true" /> | |
<variable name="PARAM" expression="" defaultValue="""" alwaysStopAt="true" /> | |
<context> | |
<option name="JAVA_SCRIPT" value="true" /> | |
</context> |
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
diff --git a/lib/Doctrine/ORM/Persisters/BasicEntityPersister.php b/lib/Doctrine/ORM/Persisters/BasicEntityPersister.php | |
index d73983c..9f8a253 100644 | |
--- a/lib/Doctrine/ORM/Persisters/BasicEntityPersister.php | |
+++ b/lib/Doctrine/ORM/Persisters/BasicEntityPersister.php | |
@@ -598,10 +598,18 @@ class BasicEntityPersister | |
$quotedColumn = $this->quoteStrategy->getJoinColumnName($joinColumn, $this->_class, $this->_platform); | |
$this->quotedColumns[$sourceColumn] = $quotedColumn; | |
- | |
- if ($newVal === null) { |
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
var app = angular.module('plunker', []); | |
app.controller('MainCtrl', function($scope, $timeout) { | |
$scope.save = function(){ | |
$scope.loading = true; | |
$timeout(function(){ | |
$scope.loading = false; | |
}, 3000); | |
}; |
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/bash | |
excludedprocesses=(somethingidontwant:something_instance-0 somethingelse) | |
for f in `supervisorctl status | awk '{print $1}' `; do | |
echo "found $f" | |
if [[ ${excludedprocesses[*]} =~ $f ]] | |
then | |
echo "Exluding $f as a restart candidate" |
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
packages: | |
yum: | |
git: [] | |
gcc: [] | |
make: [] | |
openssl-devel: [] | |
commands: | |
00-add-home-variable: | |
command: sed -i 's/function error_exit/export HOME=\/root\n\nfunction error_exit/' /opt/elasticbeanstalk/hooks/appdeploy/pre/50npm.sh | |
container_commands: |
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 | |
class AbstractManagerBase extends \PHPUnit_Framework_TestCase | |
{ | |
protected function getEmMock() | |
{ | |
$emMock = \Mockery::mock('\Doctrine\ORM\EntityManager', | |
array( | |
'getRepository' => new FakeRepository(), | |
'getClassMetadata' => (object)array('name' => 'aClass'), |
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
package org.example | |
package auth | |
import org.scalatra.auth.ScentryStrategy | |
import org.scalatra.{CookieSupport, ScalatraBase} | |
trait RedisClient { | |
def get(key: String): Option[String] | |
} |
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
val customMergeStrategy: String => MergeStrategy = { | |
case x if Assembly.isConfigFile(x) => | |
MergeStrategy.concat | |
case PathList(ps @ _*) if Assembly.isReadme(ps.last) || Assembly.isLicenseFile(ps.last) => | |
MergeStrategy.rename | |
case PathList("META-INF", xs @ _*) => | |
(xs map {_.toLowerCase}) match { | |
case ("manifest.mf" :: Nil) | ("index.list" :: Nil) | ("dependencies" :: Nil) => | |
MergeStrategy.discard | |
case ps @ (x :: xs) if ps.last.endsWith(".sf") || ps.last.endsWith(".dsa") => |
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 App\Http; | |
use League\Fractal\Pagination\CursorInterface; | |
use League\Fractal\Pagination\PaginatorInterface; | |
use League\Fractal\Resource\ResourceInterface; | |
use League\Fractal\Serializer\ArraySerializer; | |
class Normalizr extends ArraySerializer |
OlderNewer