Since Twitter doesn't have an edit button, it's a suitable host for JavaScript modules.
Source tweet: https://twitter.com/rauchg/status/712799807073419264
const leftPad = await requireFromTwitter('712799807073419264');Since Twitter doesn't have an edit button, it's a suitable host for JavaScript modules.
Source tweet: https://twitter.com/rauchg/status/712799807073419264
const leftPad = await requireFromTwitter('712799807073419264');| class MoneyType extends AbstractType implements DataMapperInterface | |
| { | |
| public function buildForm(FormBuilder $builder, array $options) | |
| { | |
| $builder | |
| ->add('amount', 'integer') | |
| ->add('currency', 'string') | |
| ->setDataMapper($this) | |
| ; | |
| } |
| * { | |
| font-size: 12pt; | |
| font-family: monospace; | |
| font-weight: normal; | |
| font-style: normal; | |
| text-decoration: none; | |
| color: black; | |
| cursor: default; | |
| } |
| <?php | |
| final class DoctrineUserRepository implements UserRepository | |
| { | |
| private $objectManager; | |
| public function __construct(ObjectManager $objectManager) | |
| { | |
| $this->objectManager = $objectManager; | |
| } |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| <?php | |
| function it($m,$p){echo ($p?'✔︎':'✘')." It $m\n"; if(!$p){$GLOBALS['f']=1;}}function done(){if(@$GLOBALS['f'])die(1);} |
| There are a lot of complaints going around about Laravel these days, but a lot | |
| of the important ones seem to be missing from the spotlight. | |
| Bugfixes, issues and pull requests being left open for months with no | |
| clarification of intent: | |
| - https://github.com/laravel/framework/pull/1799 | |
| - https://github.com/laravel/framework/issues/1963 | |
| - https://github.com/laravel/framework/issues/2089 | |
| - https://github.com/laravel/framework/issues/2234 |
| <?php | |
| namespace Acme\Bundle\UserBundle\Form; | |
| use Symfony\Component\Form\AbstractType; | |
| use Symfony\Component\Form\FormEvents; | |
| use Symfony\Component\Form\FormBuilderInterface; | |
| use Symfony\Component\Form\FormEvent; | |
| class UserType extends AbstractType |
Locate the section for your github remote in the .git/config file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = git@github.com:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this: