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
<html> | |
<head> | |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular-ui-router/0.2.15/angular-ui-router.js"></script> | |
<script src="https://code.jquery.com/jquery-2.1.4.js"></script> | |
<script> | |
// Here's a skeleton app. Fork this plunk, or create your own from scratch. | |
var app = angular.module('demonstrateissue', ['ui.router']); | |
// Empty config block. Define your example states here. |
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
for(int i=1; 1/i > 0; i++) |
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
for (int i=1; 1/i > 0; i++) { | |
System.out.println("Count is: " + i); | |
} |
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
for (var i=1; 1/i > 0; i++) { | |
console.log("Count is: " + i); | |
} |
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
function to64bitFloat(number) { | |
var f = new Float64Array(1); | |
f[0] = number; | |
var view = new Uint8Array(f.buffer); | |
var i, result = ""; | |
for (i = view.length - 1; i >= 0; i--) { | |
var bits = view[i].toString(2); | |
if (bits.length < 8) { | |
bits = new Array(8 - bits.length).fill('0').join("") + bits; | |
} |
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
function to64bitFloat(number) { | |
var i, result = ""; | |
var dv = new DataView(new ArrayBuffer(8)); | |
dv.setFloat64(0, number, false); | |
for (i = 0; i < 8; i++) { | |
var bits = dv.getUint8(i).toString(2); | |
if (bits.length < 8) { | |
bits = new Array(8 - bits.length).fill('0').join("") + bits; |
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
NaN === NaN | |
NaN > NaN | |
NaN < NaN | |
NaN > 3 | |
NaN < 3 | |
NaN === 3 |
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
const fs = require('fs'); | |
const path = require('path'); | |
class HelloWorldCheckerPlugin { | |
constructor(options) { | |
this.options = options; | |
} | |
apply(compiler) { | |
compiler.plugin('make', (compilation, cb) => this._make(compilation, cb)); |
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
@Injectable() | |
export class I1 implements HttpInterceptor { | |
intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>> { | |
const modified = req.clone({setHeaders: {'Custom-Header-1': '1'}}); | |
return next.handle(modified); | |
} | |
} | |
@Injectable() | |
export class I2 implements HttpInterceptor { |
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
@NgModule({ | |
providers: [ | |
{ | |
provide: HTTP_INTERCEPTORS, | |
useClass: I1, | |
multi: true | |
}, | |
{ | |
provide: HTTP_INTERCEPTORS, | |
useClass: I2, |
OlderNewer