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
--- address-validation.orig 2014-08-06 10:04:30.000000000 -0700 | |
+++ address-validation 2014-08-06 10:04:46.000000000 -0700 | |
@@ -465,7 +465,7 @@ | |
<p>For production accounts:</p> | |
<pre class="qoate-code">https://avatax.avalara.net/1.0/address/validate?Line1=PO+Box+123&City=Bainbridge%20Island&Region=WA&PostalCode=98110</pre> | |
<p>For development accounts:</p> | |
-<pre class="qoate-code">https://avatax.avalara.net/1.0/address/validate?Line1=PO+Box+123&City=Bainbridge%20Island&Region=WA&PostalCode=98110</pre> | |
+<pre class="qoate-code">https://development.avalara.net/1.0/address/validate?Line1=PO+Box+123&City=Bainbridge%20Island&Region=WA&PostalCode=98110</pre> | |
<p>Sample Response Headers (when an error occurs)</p> | |
<pre class="qoate-code">HTTP/1.1 500 Internal Server Error Date: Thu, 01 Mar 2012 00:24:54 GMT |
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"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<!-- Latest compiled and minified CSS --> | |
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css"> | |
<!-- Optional theme --> |
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
1. Clustering | |
a. Interaction w/ running code without having code | |
b. Remote process spawning | |
c. std in/out redirect | |
2. Supervision Trees | |
3. Live Code Update |
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
defmodule BasicBench do | |
use Benchfella | |
@num :random.uniform(999_999_999_999) | |
bench "interpolation" do | |
@num | |
|> NumToWordsString.say | |
end |
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
wrk.method = "POST" | |
-- this assumes that we're sending to a html form endpoint with csrf protection disabled | |
-- wrk.body and wrk.headers would be different if we were sending a JSON payload to a JSON API endpoing | |
wrk.body = "message[body]=wat" | |
wrk.headers["Content-Type"] = "application/x-www-form-urlencoded" |
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
defmodule MyApp.Mixfile do | |
use Mix.Project | |
def project do | |
[app: :my_app, | |
version: get_version, | |
elixir: "~> 1.0", | |
elixirc_paths: elixirc_paths(Mix.env), | |
compilers: Mix.compilers, | |
build_embedded: Mix.env == :prod, |
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
defmodule X10 do | |
# all codes referenced from http://www.haibrain.com/informatie-domotica-x10-protocol-c-131_148_141.html?language=en | |
@house_codes %{ | |
6 => :house_a, | |
14 => :house_b, | |
2 => :house_c, | |
10 => :house_d, | |
1 => :house_e, | |
9 => :house_f, |
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
:application.ensure_all_started(:ssl) | |
{:ok, handle} = :eldap.open(['ldap.example.com'], [{:port, 636}, {:ssl, true}]) | |
authenticated = | |
:ok == :eldap.simple_bind(handle, | |
'uid=jeff,ou=users,dc=example,dc=com', | |
'notmyrealpassword') | |
{:ok, {:eldap_search_result, list_of_entries, _}} = |
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
{:ok, connection} = AMQP.Connection.open | |
{:ok, channel} = AMQP.Channel.open(connection) | |
message = Enum.join(System.argv, " ") || "Hello World!" | |
AMQP.Exchange.declare(channel, "logs", :fanout) | |
AMQP.Basic.publish(channel, "logs", "", message) | |
IO.puts " [x] Sent '#{message}'" |
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
[<<"#ohaibot-testing">>]. | |
[<<"#elixirconf">>]. |