$ bin/phantomjs --webdriver
Error: Option webdriver need a value
$ bin/phantomjs --webdriver blah
PhantomJS is launching GhostDriver...
Ghost Driver running on port 8910
^C
$ bin/phantomjs --webdriver http://localhost:1111
PhantomJS is launching GhostDriver...
This file contains 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
- should be able to pass multiple arguments to async scripts | |
- should know when two elements are not equal | |
- context clicks an element | |
- uses the file detector | |
- allows the user to accept an alert | |
- allows the user to dismiss an alert | |
- allows the user to set the value of a prompt | |
- raises NoAlertOpenError if no alert is present |
This file contains 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
# | |
# Installs Ruby 1.9.1 | |
# | |
class ruby { | |
package { | |
'ruby1.9.1': | |
ensure => 'installed'; | |
'ruby1.9.1-dev': | |
ensure => 'installed'; |
This file contains 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
#!/bin/bash | |
ES_HOST=http://localhost:9200 | |
ES_LOG=/usr/local/var/log/elasticsearch/elasticsearch_${USER}.log | |
ES_PLIST=~/Library/LaunchAgents/homebrew.mxcl.elasticsearch.plist | |
case $1 in | |
log ) | |
tail -1000f $ES_LOG | |
;; |
This file contains 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
$ cvs -d :pserver:[email protected]:/spell-norwegian login | |
Logging in to :pserver:[email protected]:2401/spell-norwegian | |
CVS password: | |
cvs [login aborted]: unrecognized auth response from anonscm.debian.org: cvs [pserver aborted]: /spell-norwegian: no such repository |
This file contains 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
Returnere utlendinger uten lovlig opphold raskere | |
Arbeiderpartiet: 75.0% | |
Høyre: 100.0% | |
Venstre: 62.0% | |
Fremskrittspartiet: 100.0% | |
Senterpartiet: 75.0% | |
Sosialistisk Venstreparti: 75.0% | |
Fjerne formueskatten | |
Arbeiderpartiet: 100.0% | |
Høyre: 81.0% |
This file contains 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
From e2b7dfb6d929e916d8c68a83eb7bbca1f15f4f19 Mon Sep 17 00:00:00 2001 | |
From: Jari Bakken <[email protected]> | |
Date: Wed, 7 Nov 2012 19:22:52 +0100 | |
Subject: [PATCH] Remove need for spec/javascript/lib by writing assets to | |
tmp/buster | |
--- | |
lib/tasks/js.rake | 40 +- | |
spec/buster.js | 7 +- | |
spec/javascript/lib/bootstrap.js | 2050 ------------------------------- |
This file contains 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
formueskatt | |
for | |
form | |
formue | |
formues | |
or | |
orm | |
mue | |
esk | |
eska |
This file contains 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
#!/usr/bin/env ruby | |
class File | |
def self.binary?(file) | |
s = (read(file, stat(file).blksize) || "").split(//) | |
s.size > 0 && ((s.size - s.grep(" ".."~").size) / s.size.to_f) > 0.30 | |
end | |
def self.fix_trailing_space(file) | |
content = read(file) |
This file contains 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
diff --git a/spec/io_spec.rb b/spec/io_spec.rb | |
index 2e36bc4..339096c 100644 | |
--- a/spec/io_spec.rb | |
+++ b/spec/io_spec.rb | |
@@ -57,15 +57,15 @@ describe ChildProcess do | |
it "pumps all output" do | |
10.times do |i| | |
process = echo | |
- | |
+ |