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
<?xml version="1.0"?> | |
<!-- Use with KeyRemap4MacBook: | |
http://pqrs.org/macosx/keyremap4macbook/ --> | |
<root> | |
<devicevendordef> | |
<vendorname>LOGITECH</vendorname> | |
<vendorid>0x046d</vendorid> | |
</devicevendordef> | |
<deviceproductdef> |
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 Liip\TranslationBundle\DependencyInjection\Compiler; | |
use Doctrine\ODM\PHPCR\Mapping\Annotations\Reference; | |
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; | |
use Symfony\Component\DependencyInjection\ContainerBuilder; | |
/** | |
* Compiler pass to dynamically set the service for isGrant checks (can be removed when requiring Symfony 2.6+ |
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
Verifying that +lsmith is my blockchain ID. https://onename.com/lsmith |
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 | |
$security_provider = getenv('SECURITY_PROVIDER'); | |
if (empty($security_provider)) { | |
if ('dev' === getenv('APP_ENVIRONMENT')) { | |
$security_provider = 'chain_provider'; | |
} else { | |
$security_provider = 'ldap'; | |
} | |
} |
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
// also tried using addJoinObject + addJoinCondition but either way the condition just gets ignored | |
$results = $this->getFooQuery() | |
->addJoin( | |
FooTableMap::COL_ID, | |
BarTableMap::COL_ITEM_ID, | |
Criteria::LEFT_JOIN | |
) | |
->addCond(BarTableMap::COL_UPDATED_AT, $updatedAt->format('Y-m-d H:i:s'), Criteria::LESS_THAN) | |
->toString() | |
; |
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
# /dev/ci/setup_ssh.sh | |
#!/usr/bin/env bash | |
which ssh-agent || (apt-get update -y && apt-get install openssh-client -y) | |
eval $(ssh-agent -s) | |
ssh-add <(echo "$PLATFORMSH_DEPLOY_KEY") | |
mkdir -p ~/.ssh | |
[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config |
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
parameters: | |
file_upload_mime_types: | |
- application/pdf | |
- application/x-pdf | |
- text/plain | |
- application/rtf | |
- image/* | |
- application/msword | |
- application/vnd.openxmlformats-officedocument.wordprocessingml.document |
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 AppBundle\Tests; | |
use Doctrine\DBAL\Connection; | |
use Doctrine\ORM\Tools\SchemaTool; | |
use Doctrine\DBAL\Driver\PDOMysql\Driver as MySQLDriver; | |
class DoctrineMigrationTest extends WebTestCase | |
{ |
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
const data = require('../Downloads/Slack/diversity-inclusion/2019-03-07.json'); | |
const usersExport = require('../Downloads/Slack/users.json'); | |
// Load all users into memory. | |
const users = {}; | |
const contributors = {}; | |
usersExport.forEach(user => { | |
users[user.id] = user.profile.display_name_normalized ? user.profile.display_name_normalized : user.profile.real_name_normalized; | |
}); |
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/resources/views/vendor/spark/auth/register-common.blade.php b/resources/views/vendor/spark/auth/register-common.blade.php | |
index 4c78546..30cd926 100644 | |
--- a/resources/views/vendor/spark/auth/register-common.blade.php | |
+++ b/resources/views/vendor/spark/auth/register-common.blade.php | |
@@ -95,7 +95,7 @@ | |
</span> | |
<span v-else class="table-plan-text"> | |
- <strong class="table-plan-price">@{{ plan.price | currency }}</strong> | |
+ <strong class="table-plan-price">@{{ plan.price | currency(plan.attributes.currency, plan.attributes.currencyLocale) }}</strong> |