Skip to content

Instantly share code, notes, and snippets.

View RadekMolenda's full-sized avatar

Radek Molenda RadekMolenda

View GitHub Profile
(function with_global_attributes(alert) {
alert('hello world');
})(window.alert);
this.$button.on('click', $.proxy(function(event) {
event.preventDefault();
log(this, newLink(this), "Reservations Link");
this.open(newLink(this));
}, this));
defmodule Swarmsimulatorelixir do
use Hound.Helpers
def start do
Hound.start_session
end
end
defmodule Commander do
use Hound.Helpers
defmodule Swarmsimulatorelixir do
use Hound.Helpers
def start do
Hound.start_session
end
end
defmodule Commander do
use Hound.Helpers
diff --git a/mix.exs b/mix.exs
index 7790faf..e681ddd 100644
--- a/mix.exs
+++ b/mix.exs
@@ -29,6 +29,7 @@ defmodule Swarmsimulatorbot.Mixfile do
defp deps do
[
{:hound, "~> 0.8"},
+ {:exvcr, "~> 0.7", only: :test}
]
@RadekMolenda
RadekMolenda / Readme
Created February 3, 2016 11:10 — forked from tomekw/Readme
Rubocop pre-commit check
# Installation
Put these files in your `.git/hooks` directory and make them executable.
# Changelog
## 1.2
* Check for RuboCop updates
diff --git a/config/config.exs b/config/config.exs
index 9346d58..36340d7 100644
--- a/config/config.exs
+++ b/config/config.exs
@@ -3,6 +3,9 @@
use Mix.Config
config :hound, driver: "phantomjs"
diff --git a/lib/swarmsimulatorbot.ex b/lib/swarmsimulatorbot.ex
index 4f696fe..8499dde 100644
--- a/lib/swarmsimulatorbot.ex
+++ b/lib/swarmsimulatorbot.ex
@@ -3,8 +3,6 @@ defmodule Swarmsimulatorbot do
use GenServer
@swarm_url "https://swarmsim.github.io"
diff --git a/lib/swarmsimulatorbot/cli.ex b/lib/swarmsimulatorbot/cli.ex
index aa5b2eb..f76267a 100644
--- a/lib/swarmsimulatorbot/cli.ex
+++ b/lib/swarmsimulatorbot/cli.ex
@@ -8,6 +8,7 @@ defmodule Swarmsimulatorbot.Cli do
end
def init(_) do
diff --git a/lib/swarmsimulatorbot.ex b/lib/swarmsimulatorbot.ex
index 1101af9..4f696fe 100644
--- a/lib/swarmsimulatorbot.ex
+++ b/lib/swarmsimulatorbot.ex
@@ -22,36 +22,36 @@ defmodule Swarmsimulatorbot do
end
def dummy_grow do