First entry to codevember. It uses my lib slightly changed to handle full text support.
A Pen by coderitual on CodePen.
| import { Injectable } from '@angular/core'; | |
| import { | |
| HttpRequest, | |
| HttpHandler, | |
| HttpEvent, | |
| HttpInterceptor, | |
| HTTP_INTERCEPTORS, | |
| HttpResponse | |
| } from '@angular/common/http'; | |
| import { Observable } from 'rxjs'; |
| #!/bin/bash | |
| # | |
| # This version uses September 2017 august stretch image, please use this image | |
| # | |
| if [ "$EUID" -ne 0 ] | |
| then echo "Must be root" | |
| exit | |
| fi |
| # Backup | |
| docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
| # Restore | |
| cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
First entry to codevember. It uses my lib slightly changed to handle full text support.
A Pen by coderitual on CodePen.
| // on client request | |
| const xhr = new XMLHttpRequest() | |
| // request to api endpoint | |
| xhr.open('post', '/documents.zip') | |
| xhr.setRequestHeader('Content-Type', 'application/json;charset=UTF-8') | |
| xhr.onprogress = () => { | |
| // receive stream | |
| console.log('PROGRESS:', xhr.responseText) |
| @ECHO OFF | |
| REM Installs Composer as portable and setup home folder as composer global config folder and local folder as internal cache | |
| REM v.2.0 - 01/05/2015 | |
| REM [email protected] | |
| REM Set Home folder as Composer Global Configuration Folder | |
| SET COMPOSER_HOME=%~dp0Home | |
| if not exist %COMPOSER_HOME% md "%COMPOSER_HOME%" | |
| php -r "readfile('https://getcomposer.org/installer');" | php |