- Update
package.json
, setversion
to a prerelease version, e.g.2.0.0-rc1
,3.1.5-rc4
, ... - Run
npm pack
to create package - Run
npm publish <package>.tgz --tag next
to publish the package under thenext
tag - Run
npm install --save package@next
to install prerelease package
This file contains 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://stackoverflow.com/questions/105034/how-to-create-a-guid-uuid-in-javascript | |
Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15); |
This file contains 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
// <div [innerHTML]="your.value | sanitizeHtml" ></div> | |
import { Pipe, PipeTransform } from '@angular/core'; | |
import { DomSanitizer, SafeHtml } from '@angular/platform-browser'; | |
@Pipe({name: 'sanitizeHtml'}) | |
export class SanitizeHtmlPipe implements PipeTransform { | |
constructor(private _sanitizer:DomSanitizer) { | |
} | |
transform(v:string):SafeHtml { |
This tutorial uses the "Sample hapi.js REST API" project.
Take a look at: https://github.com/agendor/sample-hapi-rest-api/
##Topics
- Introduction
- Installing Node.js
- Installing MySQL
- Setting-up the project
This file contains 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
//We must add the following to your .bashrc (C:\cygwin\home\user\.bashrc): | |
alias ruby='/cygdrive/c/Ruby21-x64/bin/ruby' | |
alias gem='/cygdrive/c/Ruby21-x64/bin/gem.bat' | |
alias irb='/cygdrive/c/Ruby21-x64/bin/irb.bat' | |
alias compass='/cygdrive/c/Ruby21-x64/bin/compass.bat' | |
alias sass='/cygdrive/c/Ruby21-x64/bin/sass.bat' | |
alias scss='/cygdrive/c/Ruby21-x64/bin/scss.bat' |
This file contains 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
<head> | |
<!--[Font include] | |
/** | |
* @license | |
* MyFonts Webfont Build ID 2886433, 2014-09-19T11:53:00-0400 | |
* | |
* The fonts listed in this notice are subject to the End User License | |
* Agreement(s) entered into by the website owner. All other parties are | |
* explicitly restricted from using the Licensed Webfonts(s). | |
* |
Simple instruction that show you how to add HipChat support for your app so that it will post to a room of your choice, preferably one for the application in question. Both require an API token which you can get from Niklas. v2 of the HipChat API lets you use your own tokens, but I couldn't get that working intially.
You can optionally use secure tokens in your travis.yml file. It requires you to install the travis command line tool:
$ gem install travis
This file contains 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'), | |
gutil = require('gulp-util'), | |
gutils = require('gulp-load-utils')(['date']); | |
sass = require('gulp-sass'), | |
csso = require('gulp-csso'), | |
uglify = require('gulp-uglify'), | |
jade = require('gulp-jade'), | |
concat = require('gulp-concat'), | |
livereload = require('gulp-livereload'), // Livereload plugin needed: https://chrome.google.com/webstore/detail/livereload/ |
This file contains 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
.clearfix:before, | |
.clearfix:after { | |
content: " "; | |
display: table; | |
} | |
.clearfix:after { | |
clear: both; | |
} |
NewerOlder