Real unit test (isolation, no children render)
Calls:
- constructor
- render
| #!/usr/bin/env python3 | |
| """ | |
| clean_missing_playlist.py | |
| Remove all entries from a Rekordbox playlist whose linked audio file | |
| no longer exists on disk. | |
| By default it scans the playlist, reports every entry with a missing | |
| file, then asks for confirmation before removing them. |
| javascript:!function(){var n,e,r,i;n=window,e=document.body,r=JSON.parse,i=JSON.stringify,n.isf||(e.innerHTML="<pre>"+i(r(e.innerText),null,4).replace(/\"(.*)[^\:]\:/g,'<span style="color:#9C3636">$1:</span>')+"</pre>",n.isf=!0)}(); | |
| //usage: | |
| //save as bookmark and click it whenever you open a json response in a browser tab/window |
| provider "aws" { | |
| version = "~> 2.0" | |
| region = "eu-central-1" | |
| } | |
| # VPC | |
| resource "aws_vpc" "tf_vpc" { | |
| cidr_block = "10.0.0.0/16" | |
| tags = { |
| An execution plan has been generated and is shown below. | |
| Resource actions are indicated with the following symbols: | |
| + create | |
| Terraform will perform the following actions: | |
| <lots of information about the resources that Terraform is about to create> | |
| Plan: 15 to add, 0 to change, 0 to destroy. |
| Object.defineProperty(location, 'searchJSON', { | |
| get: function() { | |
| var a = window.location, | |
| b = a.href.split('?'), | |
| c = a.search; | |
| return (c.slice(1) || (b.length > 1 && b[1]) || '').split("&").reduce(function(p, c) { | |
| return (c = c.split("=")) && (p[c[0]] = unescape(c[1])) && p | |
| }, {}) || {}; | |
| }, | |
| enumerable: false, |
| (function(window){ | |
| var EVENT_EXISTS = 'GlobalEvents: Event already exists.'; | |
| var eventIsRunning, | |
| _eventStack, | |
| _findByName, | |
| stackEvent, | |
| removeEvent, | |
| eventListener, |
| const assert = require('assert'); | |
| function solution(array) { | |
| const k = array.length / 4; | |
| let buffer = []; | |
| return flatten(array.reduce((a, b, i) => { | |
| buffer.push(b); | |
| if (b !== array[i + 1]) { | |
| a.push(buffer); | |
| buffer = []; |
| function get(obj, path) { | |
| let spl; | |
| return new Function( | |
| `return arguments[0]&&${(spl = path.split('.')).reverse().map((prop, index) => { | |
| return `arguments[0].${spl.slice(spl.length - index - 1).reverse().join('.')}`; | |
| }).join('&&')}`)(obj); | |
| } | |
| //usage: | |
| // const hello = {world:{foo:{bar:baz:1}}} |
| import { Injectable } from '@angular/core'; | |
| import { | |
| Http, | |
| ConnectionBackend, | |
| RequestOptions, | |
| RequestOptionsArgs, | |
| Response, | |
| Headers | |
| } from '@angular/http'; | |
| import { Observable } from 'rxjs/Observable'; |