Skip to content

Instantly share code, notes, and snippets.

View felippenardi's full-sized avatar

Felippe Nardi felippenardi

View GitHub Profile
@felippenardi
felippenardi / conf.js
Created September 23, 2014 01:30
AngularJS Aplicado: Configuração mínima do protractor
exports.config = {
seleniumAddress:
'http://localhost:4444/wd/hub',
specs: ['spec.js']
}
@felippenardi
felippenardi / index.html
Created September 23, 2014 01:53
AngularJS Aplicado: Protractor element() como promessa
<div id='teste'>Hello World</div>
@felippenardi
felippenardi / hack
Last active August 29, 2015 14:16 — forked from Jermolene/hack
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Cmd Key CSS</title>
<style id="jsbin-css">
body {
background: #FFF;
margin: 40px;
}
@felippenardi
felippenardi / README.md
Last active August 29, 2015 14:21
Writing AngularJS Protractor Specs
@felippenardi
felippenardi / README.md
Created May 22, 2015 19:37
Docker Cheat Sheet

Kill all containers

docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)
@felippenardi
felippenardi / index.html
Last active August 29, 2015 14:22
AngularJS: adding and removing elements// source http://jsbin.com/buxogopavu
<!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>

Xvfb configuration for Dockerfiles

Goes into /etc/init.d/xvfb

@felippenardi
felippenardi / _readme.md
Last active November 28, 2016 09:34 — forked from larryxiao/_readme.md
Script to Install Tmux 2.0 on Ubuntu

Having trouble installing the latest stable version of tmux?

I know, official package for your OS/distro is outdated and you just want the newest version of tmux.

Well, this script should save you some time with that.

Prerequisities

  • gcc
@felippenardi
felippenardi / README.md
Last active August 29, 2015 14:22
Running Protractor tests

Running Protractor tests

Initiating the web driver runner

$ npm install -g protractor # installs Protractor
$ webdriver-manager update # downloads Selenium and Chrome
$ webdriver-manager start # start Selenium server