Let's say you want to host domains first.com and second.com.
Create folders for their files:
| import { Directive, Input, Host, TemplateRef, ViewContainerRef, OnInit, DoCheck } from '@angular/core'; | |
| import { NgSwitch } from '@angular/common'; | |
| @Directive({ | |
| selector: '[jrSwitchCases]' | |
| }) | |
| export class SwitchCasesDirective implements OnInit, DoCheck { | |
| private ngSwitch: any; | |
| private _created = false; |
| ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key | |
| # Don't add passphrase | |
| openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub | |
| cat jwtRS256.key | |
| cat jwtRS256.key.pub |
| /* bling.js */ | |
| window.$ = document.querySelector.bind(document); | |
| window.$$ = document.querySelectorAll.bind(document); | |
| Node.prototype.on = window.on = function(name, fn) { this.addEventListener(name, fn); }; | |
| NodeList.prototype.__proto__ = Array.prototype; | |
| NodeList.prototype.on = function(name, fn) { this.forEach((elem) => elem.on(name, fn)); }; |
| var gulp = require('gulp'); | |
| var sourcemaps = require('gulp-sourcemaps'); | |
| var source = require('vinyl-source-stream'); | |
| var buffer = require('vinyl-buffer'); | |
| var browserify = require('browserify'); | |
| var watchify = require('watchify'); | |
| var babel = require('babelify'); | |
| function compile(watch) { | |
| var bundler = watchify(browserify('./src/index.js', { debug: true }).transform(babel)); |
| var gulp = require('gulp'), | |
| takana = require('takana'); | |
| gulp.task('takana', function() { | |
| takana.run({ | |
| path: __dirname, | |
| includePaths: [] // Optional | |
| }); | |
| }); |
| var selector = 'img' // Replace this with the selector for the element you want to make transformable | |
| jQuery.getScript('//ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js', function() { | |
| jQuery.getScript('//cdnjs.cloudflare.com/ajax/libs/numeric/1.2.6/numeric.min.js', function() { | |
| (function() { | |
| var $, applyTransform, getTransform, makeTransformable; | |
| $ = jQuery; |
| <?php | |
| trait Gettable { | |
| /** | |
| * Retrieve private attributes. | |
| * Attributes should be protected | |
| * so they cannot be *set* arbitrarily. | |
| * This allows us to *get* them as if they | |
| * were public. |