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
class Person { | |
constructor (firstName) { | |
this.firstName = firstName; | |
this.sayHiArrowFn = () => { | |
console.log(this); | |
} | |
this.sayHiFn = function () { | |
console.log(this); |
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
<!DOCTYPE html> | |
<html ng-app="MyApp"> | |
<head> | |
<link rel="stylesheet" href="jsoneditor.css" /> | |
</head> | |
<body> | |
<h1>Hello AngularJS-JSONEditor</h1> |
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
public class CrossDomainHandler : DelegatingHandler | |
{ | |
const string Origin = "Origin"; | |
const string AccessControlRequestMethod = "Access-Control-Request-Method"; | |
const string AccessControlRequestHeaders = "Access-Control-Request-Headers"; | |
const string AccessControlAllowOrigin = "Access-Control-Allow-Origin"; | |
const string AccessControlAllowMethods = "Access-Control-Allow-Methods"; | |
const string AccessControlAllowHeaders = "Access-Control-Allow-Headers"; | |
protected override Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) |
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 usage = require('usage'); | |
var log4js = require('log4js'); | |
log4js.clearAppenders(); | |
log4js.addAppender(log4js.appenders.console(log4js.layouts.basicLayout)); | |
var pid = process.argv[2]; | |
var logger = log4js.getLogger('CPU(' + pid + ')'); | |
var interval = setInterval(function () { |
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
<html data-ng-app="app"> | |
<head> | |
<script type="text/javascript" src="lib/angular/angular.js"></script> | |
<script type="text/javascript"> | |
var app = angular.module('app', []); | |
app.service('AuthService', function () { | |
var username = ''; | |
return { |