Moved to https://localheinz.com/blog/2017/10/27/essential-phpstorm-plugins/
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 | |
/** | |
* config/cli-config.php | |
* For more details @see \DoctrineORMModule\Module | |
* | |
* Run next commands for Migrations work | |
* $ composer require doctrine/doctrine-orm-module | |
* $ composer require doctrine/migrations | |
*/ | |
$container = require 'container.php'; |
Note: "Forked" from Latency Numbers Every Programmer Should Know
Event | Nanoseconds | Microseconds | Milliseconds | Comparison |
---|---|---|---|---|
L1 cache reference | 0.5 | - | - | - |
Branch mispredict | 5.0 | - | - | - |
L2 cache reference | 7.0 | - | - | 14x L1 cache |
Mutex lock/unlock | 25.0 | - | - | - |
Analysis based on 6174 tweets between 2016-12-27 and 2017-01-01. For more information, see the code on github.
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
# Path to your oh-my-zsh installation. | |
export ZSH=/Users/dimitar.danailov/.oh-my-zsh | |
# Set name of the theme to load. | |
# Look in ~/.oh-my-zsh/themes/ | |
# Optionally, if you set this to "random", it'll load a random theme each | |
# time that oh-my-zsh is loaded. | |
# ZSH_THEME="robbyrussell" | |
ZSH_THEME="agnoster" |
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 bash | |
composer validate | |
### Previous version | |
# php -r "\$lock = json_decode(file_get_contents('composer.lock'))->hash; \$json = md5(file_get_contents('composer.json')); if (\$lock !== \$json) { echo \"Lock file out of date\\n\"; exit(1); } echo \"Lock file up to date\\n\"; exit(0);" | |
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 | |
function random_exception() | |
{ | |
foreach(get_declared_classes() as $class) { | |
$exceptions = []; | |
if (substr($class, -9) === 'Exception') { | |
$exceptions[] = $class; | |
} | |
$exception = $exceptions[array_rand($exceptions)]; |
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
ca () { | |
message=$(curl -s whatthecommit.com/index.txt) | |
git add . | |
git commit -a -m "$message"; | |
} |
The list is now hosted on a repository so you can PR -> https://github.com/jeroenvdgulik/awesome-talks/blob/master/README.md
- Alberto Brandolini - Chasing Elephants https://youtu.be/klsksbDJOhI
- Erik Meijer - One Hacker Way https://youtu.be/FvMuPtuvP5w
- Erik Meijer - Category Theory, The essence of interface-based design https://youtu.be/JMP6gI5mLHc
- Gary Bernhardt - Wat https://www.destroyallsoftware.com/talks/wat
- Konstantin Kudryashov - Min-maxing Software Costs https://youtu.be/uQUxJObxTUs
- Marco Pivetta - Extremely Defensive PHP https://youtu.be/8d2AtAGJPno