Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
### Keybase proof | |
I hereby claim: | |
* I am ideadapt on github. | |
* I am bubblez (https://keybase.io/bubblez) on keybase. | |
* I have a public key whose fingerprint is 9218 4F55 B4EF 94CA 82AA 68DD DC3D 83C8 ED74 DCB6 | |
To claim this, I am signing this object: |
// parent & app | |
import {ComponentAnnotation as Component, ViewAnnotation as View, bootstrap, formDirectives} from 'angular2/angular2'; | |
import {ProgressBar} from 'progress-bar'; | |
@Component({ | |
selector: 'demo-app' | |
}) | |
@View({ | |
directives: [ProgressBar, formDirectives], | |
template: ` |
# requirements: | |
# - imagemagick (optionally with openmp) | |
# - I used this script to diff screen shots taken with selenium. | |
# Todo so I recommend you to use https://github.com/swissmanu/protractor-screenshot-reporter and overwrite pathBuilder option. | |
# e.g. `pathBuilder: () => {return path.join(capabilities.caps_.browserName, descriptions.reverse().join('-').replace(/\s/g, "-").replace(/['":,\/]/g, ""));}` | |
# usage: | |
# run tests with setup 1 | |
# rm -rf test/run1 && cp -r test/reports/e2e/screenshots/current/chrome/ test/run1 | |
# run tests with setup 2 |
'use strict' | |
var fs = require('fs') | |
var inFile = '19.txt' | |
var content = fs.readFileSync(inFile, {encoding: 'UTF-8'}) | |
var lines = content.split('\n') | |
var text = lines[lines.length -1] | |
var termLines = lines.slice(0,-1).filter(String) | |
var permutations = [] |
describe('experiments with done', ()=>{ | |
describe('- correct usage -', ()=>{ | |
it('should fail because of async expect failure, and failure is assigned to correct spec', (done)=>{ | |
new Promise(function(res, rej){ | |
setTimeout(res, 1000) | |
}).then(()=>{ | |
expect(1).toEqual(11) | |
}).catch().then(done) |
"use strict" | |
var events = require("events") | |
var ev = new events.EventEmitter() | |
var log = console.log.bind(console) | |
process.on('unhandledRejection', function(reason, p) { | |
log(`Possibly Unhandled Rejection at: Promise ${p} reason: ${reason}`) | |
}) | |
process.on('uncaughtException', function(err) { | |
log(`Caught exception: ${err}`) |
// ==UserScript== | |
// @name Bamboo Script File Repo Link | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description add link to script file in stash repository | |
// @author [email protected] | |
// @require https://cdnjs.cloudflare.com/ajax/libs/babel-standalone/6.18.2/babel.js | |
// @require https://cdnjs.cloudflare.com/ajax/libs/babel-polyfill/6.16.0/polyfill.js | |
// @include *://*/*/*editBuildTasks.action* | |
// @include *://*/*/*configureEnvironmentTasks.action* |
#!/bin/bash | |
exec 2>&1 | |
export PATH=/usr/local/bin:$PATH | |
for image in "$@" | |
do | |
if [ -s "$image" ]; then | |
filename=$(basename "$image") | |
dirname=$(dirname "$image") | |
mkdir -p "$dirname"/watermarked |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000