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> | |
<link rel="stylesheet" type="text/css" href="styles.css"> | |
<script src="script.js"></script> | |
</head> | |
<body> | |
<div class='hr-table'> | |
<div class='hr-row'> | |
<div class='hr-cell'> | |
<div class='hr-header'>Heart Rate:</div> |
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
import { Http } from '@angular/http'; | |
import { Observable } from 'rxjs/Observable'; | |
import { Observer } from 'rxjs/Observer'; | |
import 'rxjs/add/operator/share'; | |
import { Todo } from 'app/interfaces'; | |
export class TodosService { | |
todos$: Observable<Todo[]>; | |
private _todosObserver: Observer<Todo[]>; | |
private _dataStore: { |
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
@Grab('org.codehaus.groovy.modules.http-builder:http-builder:0.7') | |
@Grab('oauth.signpost:signpost-core:1.2.1.2') | |
@Grab('oauth.signpost:signpost-commonshttp4:1.2.1.2') | |
import groovy.json.JsonOutput | |
import groovyx.net.http.RESTClient | |
import static groovyx.net.http.ContentType.* | |
import org.apache.http.params.HttpConnectionParams | |
import com.crossbusiness.nifi.processors.NiFiUtils as util |
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
import Koa from 'koa'; | |
const app = new Koa(); | |
// x-response-time | |
app.use(async (ctx, next) => { | |
var start = new Date; | |
await next(); | |
const ms = new Date - start; | |
ctx.set('X-Response-Time', ms + 'ms'); |
How to install angular-new-router with JSPM without pulling unnecessary dependencies into jspm.config.js:
jspm install npm:angular-new-router -o '{"main": "dist/router.es5", "format": "es6", "dependencies": {"jspm:angular": "^1.4.5"}, "shim": { "dist/router.es5": {"deps": ["angular"]} } }'
Change Angular version if you are different version. with shim it also makesure angular is loaded before angular-new-router
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> | |
<title>OboeJS demo</title> | |
<script src="https://rawgit.com/jimhigson/oboe.js/v2.1.2/dist/oboe-browser.min.js"></script> | |
</head> | |
<body> | |
<div ></div> | |
<ul id="content"> | |
<li>AUD_CAD:</li> | |
</ul> |
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
import grails.plugin.springsecurity.annotation.Secured | |
import org.springframework.messaging.handler.annotation.DestinationVariable | |
import org.springframework.messaging.handler.annotation.MessageMapping | |
import org.springframework.messaging.handler.annotation.SendTo | |
import org.springframework.messaging.simp.annotation.SendToUser | |
import org.springframework.messaging.simp.annotation.SubscribeMapping | |
import org.sumo.apiapp.stomp.StompExceptionHandler | |
import java.security.Principal |
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
export class EnumSymbol { | |
sym = Symbol.for(name); | |
value: number; | |
description: string; | |
constructor(name: string, {value, description}) { | |
if(!Object.is(value, undefined)) this.value = value; | |
if(description) this.description = description; |