Run this in one shell
./node_modules/.bin/mocha --debug-brk --compilers js:babel-register test/node
Then this in another shell
node-inspector
Then open the browser
| <jsp-config> | |
| <jsp-property-group> | |
| <url-pattern>*.jsp</url-pattern> | |
| <trim-directive-whitespaces>true</trim-directive-whitespaces> | |
| </jsp-property-group> | |
| </jsp-config> |
| # Git | |
| alias g="git" | |
| alias commits="git shortlog -sn" | |
| alias gl="git log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --" | |
| alias gs="git status" | |
| alias ga="git add" | |
| alias gc="git commit -m" | |
| alias gp="git push" | |
| alias gpl="git pull" | |
| alias gd="git diff" |
| # Assuming an Ubuntu Docker image | |
| $ docker run -it <image> /bin/bash |
Run this in one shell
./node_modules/.bin/mocha --debug-brk --compilers js:babel-register test/node
Then this in another shell
node-inspector
Then open the browser
| var Hapi = require('hapi'); | |
| // Create a server with a host, port, and options | |
| var server = new Hapi.Server('localhost', 8001); | |
| server.route([ | |
| { | |
| path: '/failure', | |
| method: 'GET', | |
| config: { |
Components are not "helper" methods, they are the best change in Angular 1.x since I've been using it.
What is the role of
.component()?
template or templateUrl| import com.fasterxml.jackson.annotation.JsonSubTypes; | |
| import com.fasterxml.jackson.annotation.JsonTypeInfo; | |
| import com.fasterxml.jackson.databind.PropertyNamingStrategy; | |
| import com.fasterxml.jackson.databind.annotation.JsonNaming; | |
| @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") | |
| @JsonSubTypes({ | |
| @JsonSubTypes.Type(value=AudioAttachment.class, name="audio"), | |
| @JsonSubTypes.Type(value=LinkAttachment.class, name="link") |
| #!groovy | |
| import groovy.json.JsonOutput | |
| import groovy.json.JsonSlurper | |
| /* | |
| Please make sure to add the following environment variables: | |
| HEROKU_PREVIEW=<your heroku preview app> | |
| HEROKU_PREPRODUCTION=<your heroku pre-production app> | |
| HEROKU_PRODUCTION=<your heroku production app> |
| # Use envFrom to load Secrets and ConfigMaps into environment variables | |
| apiVersion: apps/v1beta2 | |
| kind: Deployment | |
| metadata: | |
| name: mans-not-hot | |
| labels: | |
| app: mans-not-hot | |
| spec: | |
| replicas: 1 |
| <!DOCTYPE HTML> | |
| <html> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
| <title>Redirect</title> | |
| <script type="text/javascript"> // <![CDATA[ | |
| //iPhone Version: | |
| if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i))) { | |
| window.location = "http://goo.gl/IWd7J"; | |
| } |