I hereby claim:
- I am pierredup on github.
- I am pierredup (https://keybase.io/pierredup) on keybase.
- I have a public key ASDMF_1b6u479I1Q-nqDCw-IZJBJXcgKg3iM-2WyQq_z1Qo
To claim this, I am signing this object:
<?php | |
function runMigration() { | |
foreach (getUsers() as $user) { | |
$hash = $user->hash; | |
list ($oldhash, $oldsalt) = explode(':', $hash, 2); | |
$newHash = password_migrate_create($oldhash, $oldsalt, PASSWORD_BCRYPT); | |
$user->hash = $newHash; | |
saveUser($user); | |
} |
<?php | |
namespace Acme\DemiBundle\Controller; | |
use Doctrine\DBAL\Migrations\Migration; | |
use Doctrine\DBAL\Migrations\Configuration\Configuration; | |
class MigrateController extends BaseController | |
{ | |
public function indexAction() |
<?php | |
class AdapterFactory | |
{ | |
private $adapters = []; | |
public function registerAdapter($name, callback $adapterFactory, callback $adapterConfigurator | |
{ | |
$this->adapter[$adapter] = [$adapterFactory, $adapterConfigurator]; | |
} |
<?php | |
// Generate random numbers | |
// Assume this is our info that we get from a CSV file or somewhere else | |
$collection = array(); | |
for ($i = 0; $i < 1000000; $i++) { | |
$collection[] = rand(1, 1000000); | |
} |
diff --git a/app/code/community/Phoenix/VarnishCache/etc/default_3.0.vcl b/app/code/community/Phoenix/VarnishCache/etc/default_3.0.vcl | |
index fdef368..4581460 100755 | |
--- a/app/code/community/Phoenix/VarnishCache/etc/default_3.0.vcl | |
+++ b/app/code/community/Phoenix/VarnishCache/etc/default_3.0.vcl | |
@@ -1,5 +1,6 @@ | |
# This is a basic VCL configuration file for PageCache powered by Varnish for Magento module. | |
+vcl 4.0; | |
# include variable handling methods | |
include "vars.vcl"; |
I hereby claim:
To claim this, I am signing this object:
Verifying my Blockstack ID is secured with the address 1GS9jHSeEYRXaSjB3TGd6AAeisDrnQA2Fu https://explorer.blockstack.org/address/1GS9jHSeEYRXaSjB3TGd6AAeisDrnQA2Fu |
<?php | |
use function _\filter; | |
$users = [ | |
[ 'user' => 'barney', 'age' => 36, 'active' => true], | |
[ 'user' => 'fred', 'age' => 40, 'active' => false] | |
]; | |
filter($users, 'active'); |
<?php | |
use function _\filter; | |
$users = [ | |
[ 'user' => 'barney', 'age' => 36, 'active' => true], | |
[ 'user' => 'fred', 'age' => 40, 'active' => false] | |
]; | |
filter($users, 'active'); |
{ | |
"defaultSeverity": "error", | |
"extends": [ | |
"tslint:recommended", | |
"tslint-eslint-rules" | |
], | |
"rules": { | |
"array-type": [true, "array-simple"], | |
"adjacent-overload-signatures": true, | |
"arrow-parens": true, |