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
import { BrowserModule, DomSanitizer } from '@angular/platform-browser'; | |
@Component({ | |
selector: 'my-app', | |
template: ` | |
<div [innerHtml]="html"></div> | |
`, | |
}) | |
export class App { | |
constructor(private sanitizer: DomSanitizer) { |
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
getService(): void { | |
const id = parseInt(this._route.snapshot.params['id']); | |
if (id && id > 0) { | |
this.indLoading = true; | |
this._restService.getById('/api/serviceapi/, id).subscribe( | |
resp => { | |
// get form array reference | |
const staffs = this.serviceFrm.get('Staffs') as FormArray; | |
// empty form array | |
while (staffs.length) { |
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 | |
echo "Welcome to the OZ-TZ init script \n"; | |
$f_db_host = fopen ("php://stdin","r"); | |
$f_db_dbname = fopen ("php://stdin","r"); | |
$f_db_username = fopen ("php://stdin","r"); | |
$f_db_userpassword = fopen ("php://stdin","r"); | |
echo "Type DB host: "; | |
$db_host = fgets($f_db_host); |
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
127.0.0.1 localhost | |
127.0.0.1 mydev.app | |
192.168.0.2 mydev.app |
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
// Refactored loader 3 script from https://github.com/lukehaas/css-loader | |
// html -> <div class="laoder"></div> | |
// html without "loading..." like in the source | |
.loader { | |
$loader_color: #979797; | |
width: 12px; | |
height: 12px; | |
position: relative; |
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'; | |
/** | |
* | |
* # Запуск сборки в продакшн | |
* $ NODE_ENV=production webpack | |
* | |
* # Создать файл stats.json для анализа на http://webpack.github.io/analyse | |
* $ webpack --json --profile > stats.json | |
* |
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
" Some start configs | |
syntax on | |
filetype plugin indent on | |
set termencoding=utf-8 | |
set fileencodings=utf8,cp1251 | |
set encoding=utf8 | |
if has("autocmd") | |
autocmd BufRead *.sql set filetype = mysql |
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
module.exports = ( grunt ) -> | |
grunt.initConfig | |
pkg : grunt.file.readJSON 'package.json' | |
haml : | |
init : | |
files :[ | |
expand : true | |
cwd : 'source/haml' # From folder |