Demonstrates the basics of @ngrx/store
.
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
#who using port | |
lsof -i tcp:3000 |
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
'use strict'; | |
(function (angular) { | |
angular.module('directives') | |
.directive('toolbarScrollShadow', Directive); | |
/** @ngInject */ | |
function Directive() { | |
var directive = { | |
restrict: 'A', |
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
git commit -m "your comment" | |
git subtree push --prefix dist origin gh-pages |
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
svn st | grep '^?' | awk '{print $2}' | xargs rm -rf |
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
Edited last year by Lewis | |
PHPStorm debugging is amazing | |
I recently installed Homestead for my development environment and discovered Xdebug needed some additional settings before it would work. Here's a step-by-step process that I used to get PHPStorm + Homestead + Xdebug working in harmony. | |
I'm going to assume you have installed PHPStorm and Homestead. | |
Configure Xdebug | |
Navigate to Tools>Vagrat>Up | |
Navigate to Tools>Start SSH Session and choose your vagrant host (PHPStorm automatically adds this) |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>RxJSCraft</title> | |
<script src="https://npmcdn.com/angular2/bundles/angular2-polyfills.js"></script> | |
<script src="https://npmcdn.com/[email protected]/dist/system.js"></script> | |
<script src="https://npmcdn.com/[email protected]/lib/typescript.js"></script> | |
</head> | |
<body> |
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
# Refactoring Directives to 1.5 Components | |
Below you will find guide on how to refactor your directives to components: | |
**Step 1 - Rename your files suffix:** | |
Components should have the suffix `.component.ts` while directives have the `.dir.ts suffix`. | |
`<file_name>.drv.ts` ==> `<file_name>.component.ts` | |
Note: all related files should be renamed as well (jade, less, spec etc.). | |
**Step 2 - Change the module initialization:** | |
In the relevant module change the initialization from directive to component. |
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
for f in $(find `pwd` -name "*.js"); do | |
cp "$f" "${f%.js}.ts" | |
done |
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
{ | |
"name": "Oogaday", | |
"version": "0.0.0", | |
"main": "index.js", | |
"author": "Vlad Ioffe", | |
"license": "MIT", | |
"scripts": { | |
"serve": "webpack-dev-server --config=webpack.dev.config.js" | |
}, | |
"devDependencies": { |
OlderNewer