How to set up a Headless Selenium Testing environment for CentOS 6.3.
Follow these steps to set up a CentOS 6.3 host to run headless Selenium tests with Firefox.
[global_config] | |
enabled_plugins = CustomCommandsMenu, InactivityWatch, TestPlugin, ActivityWatch, TerminalShot, LaunchpadCodeURLHandler, APTURLHandler, MavenPluginURLHandler, LaunchpadBugURLHandler, LayoutManager | |
title_transmit_bg_color = "#832527" | |
[keybindings] | |
[profiles] | |
[[default]] | |
scrollback_lines = 4000 | |
[layouts] | |
[[default]] | |
[[[child1]]] |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<style> | |
body { | |
font: 10px sans-serif; | |
} | |
.axis path, |
The following are a few important npm packages.
Core Babel and access to Babel:
babel-core
: the core compilation machinery and plugin infrastructure for Babel. You will rarely need to install this package, because other packages such as babel-cli
have it as a dependency, meaning that it will be automatically installed when they are installed.
babel-cli
: a command line interface to Babel
. It includes the following commands:
babel-doctor
detects common problems with your Babel installation.
import {it, describe, expect, inject, beforeEach, beforeEachProviders} from 'angular2/testing' | |
import {PersonService, PERSON_SERVICE_PROVIDERS, personServiceLoadedPromise} from './person.service' | |
// Contents of person.service.ts | |
//@Injectable() | |
//export class PersonService { | |
// constructor(private _http: Http) { } | |
// | |
// init(): Promise<boolean>{ | |
// return this._http.get('myurl').toPromise(); | |
// } |
// Dynamic module loading using runtime-composed strings, decisions, etc. | |
for (const m of ["cool", "awesome", "fun", "whee"]) { | |
if (Math.random() > 0.5) { | |
importModule(`/js/${m}.js`).then( | |
module => console.log("Module instance object for " + m, module), | |
e => console.error(e) | |
); | |
} | |
} |
By: @BTroncone
Also check out my lesson @ngrx/store in 10 minutes on egghead.io!
Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!
Table of Contents
A complete list of RxJS 5 operators with easy to understand explanations and runnable examples.
#!/usr/bin/zsh | |
set -e | |
# TAB indented file! | |
### PREPARATION ### | |
# mkdir test | |
# cd test | |
# wget -q https://gist.github.com/andras-tim/f8aebf9243cecf3719d27d020a718ef8/raw/fun.zsh -O - | zsh | |