docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)
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
<!DOCTYPE html> | |
<html ng-app="myApp"> | |
<head> | |
<meta charset="utf-8"> | |
<title>AngularJS: adding and remove elements</title> | |
</head> | |
<body> | |
<div ng-controller="DemoCtrl as Demo"> | |
<a href="" ng-click="Demo.data[Demo.data.length] = {}">Add element</a> |
When writing protractor tests you will be dealing with two libraries:
- Jasmine: http://jasmine.github.io/
- Protractor: https://angular.github.io/protractor/#/
- Selenium Webdriver: http://www.seleniumhq.org/projects/webdriver/
The Jasmine syntax is the same used on unit tests: beforeEach()
, describe()
, it()
, and so on
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Cmd Key CSS</title> | |
<style id="jsbin-css"> | |
body { | |
background: #FFF; | |
margin: 40px; | |
} |
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
var tag="mytag";r="";$tw.wiki.each(function(t){if(t.hasTag(tag)){r=r+" "+(t.fields.text||"")}});r.trim().replace(/\s+/gi," ").split(" ").length |
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
<div id='teste'>Hello World</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
exports.config = { | |
seleniumAddress: | |
'http://localhost:4444/wd/hub', | |
specs: ['spec.js'] | |
} |
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
describe('Descrição do grupo de testes', function() { | |
beforeEach(function() { | |
// Roda antes de cada teste | |
}); | |
afterEach(function() { | |
// Roda depois de cada teste | |
}); |
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
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
/** | |
* (C)Leanest CSS spinner ever | |
*/ | |
@keyframes spin { | |
to { transform: rotate(1turn); } | |
} | |
.progress { | |
display: inline-block; |