Tested with angular@5.
npm i @angular/platform-server @nguniversal/express-engine @nguniversal/module-map-ngfactory-loader express @types/express ts-loader@3 rimraf --save-dev
| // USAGE: | |
| // | |
| // When you attach the infiniteScroll directive to an element, it will emit the infiniteScrollAction | |
| // @Output() event every time the user has scrolled to the bottom of the element. Your loadMoreArticles | |
| // function can make an HTTP call and append the results to the articles list, for example. In doing this, | |
| // you effectively increase the height of the element and thus begin the process of the infiniteScroll directive | |
| // again, over and over until the element height stops increasing. | |
| // | |
| // <div class="container" infiniteScroll (infiniteScrollAction)="loadMoreArticles()"> | |
| // <div class="article" *ngFor="let article of articles"> |
| var IMAGE_MIME_REGEX = /^image\/(p?jpeg|gif|png)$/i; | |
| var loadImage = function (file) { | |
| var reader = new FileReader(); | |
| reader.onload = function(e){ | |
| var img = document.createElement('img'); | |
| img.src = e.target.result; | |
| var range = window.getSelection().getRangeAt(0); | |
| range.deleteContents(); |
| import * as Rx from "rxjs/Rx"; | |
| import * as uuid from "uuid"; | |
| import {IRequest} from "./common"; | |
| let button = document.querySelector("button"); | |
| let iframe = document.createElement("iframe"); | |
| iframe.src = "/proxy.html"; | |
| document.body.appendChild(iframe); |
| /* image rotate javascript */ | |
| /* This script and many more are available free online at | |
| The JavaScript Source!! http://javascript.internet.com | |
| Created by: Benoit Asselin | http://www.ab-d.fr */ | |
| function rotate(p_deg) { | |
| if(document.getElementById('canvas')) { | |
| /* | |
| Ok!: Firefox 2, Safari 3, Opera 9.5b2 |
| //importing directive | |
| import { InputMagicWheelDirective } from 'app/whateverItIs/input-magic-wheel.directive'; | |
| //... | |
| //declaring | |
| @NgModule({ | |
| declarations: [..., InputMagicWheelDirective], | |
| //... |
| using System; | |
| using Newtonsoft.Json; | |
| namespace JsonConverters | |
| { | |
| /// <summary> | |
| /// Handles converting JSON string values into a C# boolean data type. | |
| /// </summary> | |
| public class BooleanJsonConverter : JsonConverter | |
| { |
Instructions on how to setup a secured Jenkins CI.
$ wget -q -O - https://jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add -
$ sudo sh -c 'echo deb http://pkg.jenkins-ci.org/debian binary/ > /etc/apt/sources.list$ .d/jenkins.list'
$ sudo apt-get update
$ sudo apt-get install jenkins