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
#!/bin/bash | |
send_telegram_message() { | |
local token="[token_id]" | |
local chat_id="[chat_id]" | |
local text="$1" | |
curl -s -X POST "https://api.telegram.org/bot${token}/sendMessage" -d chat_id="${chat_id}" -d text="${text}" | |
} |
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
cat /proc/sys/fs/inotify/max_user_watches // show watchers | |
// One time procecure | |
sudo sysctl fs.inotify.max_user_watches=524288 | |
sudo sysctl -p | |
// In config procedure | |
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf | |
sudo sysctl -p |
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 {Directive, ElementRef} from '@angular/core'; | |
import {Input} from '@angular/core'; | |
@Directive({ | |
selector: '[multipleNormalize]', | |
}) | |
export class MultipleNormalizeDirective { | |
@Input('multipleNormalize') model:any; |
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
var webpack = require('webpack'); | |
var path = require('path'); | |
var ExtractTextPlugin = require('extract-text-webpack-plugin'); | |
var HtmlWebpackPlugin = require('html-webpack-plugin'); | |
var CleanWebpackPlugin = require('clean-webpack-plugin'); | |
const ENV = process.env.NODE_ENV.trim(); | |
console.log('ENV: ' + ENV); |
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
http://jsfiddle.net/Legendary/aqLL65tn/ - Angularjs + nvd3 | |
http://jsfiddle.net/Legendary/Lumskbyu/ - Angularjs | |
http://jsfiddle.net/Legendary/hj0hdboh/ - Angularjs + angular-material | |
http://jsfiddle.net/Legendary/mwfa8d9n/ - Angularjs + smart-table | |
https://jsfiddle.net/Legendary/tj5a68x2/ - Angular2 + Typescript | |
https://jsfiddle.net/Legendary/5cL3u29n/ - jQuery | |
https://jsfiddle.net/Legendary/9y8adzmu/ - jQuery + Ajax | |
http://jsfiddle.net/Legendary/4rq9wgyL/ - jQuery + Bootstrap |
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
Веб-приложение по работе с информацией и инфографикой | |
о здоровье, росте, весе, болезнях домашних животных | |
Реализация (OS Windows) | |
1) Настройка окружения | |
http://djbook.ru/rel1.7/topics/install.html - инструкция по установке Django и Веб-сервера (apache) вместе с базой данных Postgresql | |
Веб-сервер - сервис который организует интерфейс между запросами и приложением | |
Django - готовый каркас приложения, с большим набором решений (MVC, REST API, Auth, ORM) | |
Postgresql - реляционная база данных для хранения информации |
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
/** | |
* Created by szhitenev on 17.03.2016. | |
*/ | |
/// <reference path='../../../../../typings/tsd.d.ts' /> | |
import {Bill} from '../models/BillModel'; | |
export class ReportContentService { | |
private getCategories(items:Array<Bill>):any { |
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>Title</title> | |
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet"> | |
</head> | |
<body> | |
<div class="container"> | |
<h1>MVVM</h1> |
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="ru"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Sci-Fi</title> | |
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"> | |
<script src="https://fb.me/react-0.14.3.js"></script> | |
<script src="https://fb.me/react-dom-0.14.3.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.8.23/browser.min.js"></script> | |
</head> |
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
// Инициализируем плагины | |
var gulp = require('gulp'), // Сообственно Gulp JS | |
stylus = require('gulp-stylus'), // Sass | |
jade = require('gulp-jade'), // Jade | |
coffee = require('gulp-coffee'); // coffee-script | |
csso = require('gulp-csso'), // Минификация CSS | |
uglify = require('gulp-uglify'), // Минификация JS | |
concat = require('gulp-concat'), // Склейка файлов | |
connect = require('gulp-connect'); // http-сервер | |
NewerOlder