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
<kml:kml xmlns:kml="http://earth.google.com/kml/2.1"> | |
<kml:Document id="featureCollection"> | |
<Folder id="???"> | |
<Placemark id="fid-7adab59e_14f666dec01_-7f70"> | |
<ExtendedData> | |
<SchemaData> | |
<SimpleData name="an_int">1</SimpleData> | |
<SimpleData name="a_string">1</SimpleData> | |
<SimpleData name="a_float">1.1</SimpleData> | |
</SchemaData> |
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
#!/bin/bash | |
timestamp() { | |
date +%s%3N | |
} | |
watch_dir=$1 | |
echo "Watching $watch_dir ..." |
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
def authors(cd) do | |
#Connect to the database. | |
conn = RethinkDB.connect([host: "10.0.0.30", port: 28015]) | |
q = case cd do | |
"create" -> table_create("authors") | |
"destroy" -> table_drop("authors") | |
end | |
|> run(conn) |
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
defp table_action("create"), do: table_create("authors") | |
defp table_action("destroy"), do: table_drop("authors") | |
def authors(cd) do | |
#Connect to the database. | |
conn = RethinkDB.connect([host: "10.0.0.30", port: 28015]) | |
q = table_action(cd) |> run(conn) |
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 Foo do | |
defp make_guard(:any), do: true | |
defp make_guard(token) do | |
quote do | |
head == token | |
end | |
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
## in mix.exs | |
def application do | |
[ | |
mod: {MyApplication, []}, | |
applications: [:logger] | |
] | |
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
foo, bar, baz, | |
2, 4, 6, | |
4, 6, 2, | |
5, 3, 2, | |
2, 4, 7, | |
2, 4, 6, | |
4, 5, 7, | |
7, 4, 2 |
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
def rank_to_int({_, "J"}), do: 11 | |
def rank_to_int({_, "Q"}), do: 12 | |
def rank_to_int({_, "K"}), do: 13 | |
def rank_to_int({_, "A"}), do: 14 | |
def rank_to_int({_, n}), do: n |
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
config :logger, backends: [:console, :syslog], | |
format: "$time $metadata[$level] $message\n", | |
level: :debug |
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 do | |
use Application | |
def start(_type, _args) do | |
import Supervisor.Spec, warn: false | |
children = [ | |
worker(Repo, []), | |
worker(Service.StatsManager, [[]]) | |
] |