Ember's official documentation describes a number of low-level APIs, but doesn't talk much about how to put them together. As a result, a simple task such as creating a simple CRUD application is not obvious to a newcomer.
This file contains hidden or 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
<template> | |
<div id="app"> | |
<img class="logo" src="./assets/logo.png"> | |
<Hello></Hello> | |
<Messages></Messages> | |
</div> | |
</template> | |
<script> | |
import Hello from './components/Hello' |
This file contains hidden or 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
SystemJS.config({ | |
transpiler: "typescript", | |
typescriptOptions: { | |
"experimentalDecorators": true, | |
"emitDecoratorMetadata": true | |
}, | |
map: { | |
"rxjs": "https://npmcdn.com/rxjs", | |
"angular2": "https://npmcdn.com/angular2", | |
"@ngrx": "https://npmcdn.com/@ngrx", |
This file contains hidden or 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
/* | |
This function can be used to pre-check (for removal) | |
all recruiters in your LinkedIn connections list. | |
It excludes recruiters that are also colleagues, so | |
you don't accidentally get any false positivies. | |
It doesn't actually do any deletion, just makes the | |
connections list focused solely on recruiters. The | |
deletion itself is up to you. |
This file contains hidden or 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
/* | |
This function can be used to empty your | |
LinkedIn inbox. You should first scroll | |
to the bottom of the list, so that it | |
lazy-loads all of your messages into | |
the DOM at once. Then run this… | |
*/ | |
// Closure. | |
(function ($) { |
- For your local dev, create a
Dockerfile
that is based on your production image and simply installxdebug
into it. Exemple:
FROM php:5
RUN yes | pecl install xdebug \
&& echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \
This file contains hidden or 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 Namespace\Di; | |
use Aura\Di\Config; | |
use Aura\Di\Container; | |
use Doctrine\Common\Cache\ApcCache; | |
use Doctrine\Common\Cache\ArrayCache; | |
use Doctrine\DBAL\Event\Listeners\MysqlSessionInit; | |
use Doctrine\ORM\Configuration; |
This file contains hidden or 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 | |
$di->set('entity_manager', function () { | |
// paths | |
$paths = array(__DIR__); | |
$isDevMode = false; | |
// the connection configuration | |
$dbParams = array( | |
'driver' => 'pdo_mysql', | |
'user' => getenv('username'), | |
'password' => getenv('password'), |
This file contains hidden or 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
<!-- Demo: http://jsfiddle.net/o38gdsfd/6/ --> | |
<!DOCTYPE HTML> | |
<html lang="en"> | |
<head> | |
<title>React JS - Quantity Input</title> | |
<style> | |
.component-quantity-input { | |
display: block; | |
} |