Skip to content

Instantly share code, notes, and snippets.

View rafszul's full-sized avatar

rafal szulczewski rafszul

View GitHub Profile
@rafszul
rafszul / ng-build-prod-deploy-to-github-pages.md
Last active July 18, 2017 05:07
github pages for angular-cli -->> https://www.npmjs.com/package/angular-cli-ghpages and `ng build --prod` command

first build production with aot

ng build --prod

--prod build is a 'meta' flag, that set other flags. If you do not specify --prod you will get the --dev defaults.

--prod sets:

--aot as true --environment as prod

@rafszul
rafszul / ng new
Last active July 18, 2017 04:41
ng new
ng new heyBarista --ng4 --routing --style=scss
npm install --save @angular/material @angular/cdk
npm install --save @angular/animations
npm install --save hammerjs
npm install --save @angular/flex-layout
npm install @angular-mdl/core --save
npm install angularfire2 firebase --save
@rafszul
rafszul / index.html
Last active March 24, 2017 11:33
centering "loading" msg + some animation of dotts
<body>
<app-root>
<style>
app-root {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
font-size: 5em;
The MIT License (MIT)
Copyright (c) <year> <copyright holders>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
The Software is provided “as is”, without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. In no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with
@rafszul
rafszul / svg-on-medium.md
Last active March 17, 2017 15:52
new (as for march 2017) articles about svg on medium. quality and how advanced the topics are is yet to be found out.
<md-card class="demo-card demo-basic">
<md-toolbar color="primary">Basic</md-toolbar>
<md-card-content>
<form>
<md-input-container class="demo-full-width">
<input mdInput placeholder="Company (disabled)" disabled value="Google">
</md-input-container>
<table style="width: 100%" cellspacing="0"><tr>
<td>
<md-card class="card-demo" >
<md-card-title>Responsive Layout Directions</md-card-title>
<md-card-subtitle>Layout direction changes to 'column' for 'xs' or 'sm' viewport sizes:</md-card-subtitle>
<md-card-content>
<div class="containerX">
<div fxLayout="row" fxLayout.xs="column" fxLayout.sm="column" fxFlex class="coloredContainerX box" >
<div fxFlex> I'm above on mobile, and to the left on larger devices. </div>
<div fxFlex> I'm below on mobile, and to the right on larger devices. </div>
</div>
</div>
<div class="widgets-row"
fxLayout
fxLayout.xs="column"
fxLayoutAlign="start"
fxLayoutWrap="wrap">
<div class="widget" fxFlex="100%">Large</div>
</div>
<div fxLayout
fxLayout.xs="column"
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.