Skip to content

Instantly share code, notes, and snippets.

View tmock12's full-sized avatar

Taylor Mock tmock12

View GitHub Profile
@tmock12
tmock12 / sad_path.ex
Created September 28, 2017 13:05
with-sad-path
some_map = %{foo: "bar", ping: "pong", ding: "dong"}
with :error <- Map.fetch(some_map, :nope),
:error <- Map.fetch(some_map, :nada),
:error <- Map.fetch(some_map, :nilch) do
"default value"
else
{:ok, value} -> value
end

Keybase proof

I hereby claim:

  • I am tmock12 on github.
  • I am tmock12 (https://keybase.io/tmock12) on keybase.
  • I have a public key ASCM3mDzdyZ8si_aUSEaUAHd8SvnBqFhivfOPD9JYQy4ZAo

To claim this, I am signing this object:

@tmock12
tmock12 / .projections.json
Created May 27, 2015 23:36
ember-cli projections
{
"app/adapters/*.js": {
"command": "adapter",
"template": [
"import ApplicationAdapter from './application';",
"",
"export default ApplicationAdapter.extend({",
"});",
]
},
@tmock12
tmock12 / gist:8b38b371ba5e23e3f5c7
Created July 4, 2014 01:23
Florida statuses surrounding commercial use of public records
"[T]he fact that a person seeking access to public records wishes to use them in a commercial enterprise does not alter his or her rights under Florida's public records law." Microdecisions, Inc. v. Skinner, 889 So. 2d 871,875 (Fla. 2d DCA 2004), review denied, 902 So. 2d 791 (Fla. 2005).
Note, however, that section 817.568, Florida Statutes, provides criminal penalties for unauthorized use of personal identification information for fraudulent or harassment purposes. And see, section 817.569, Florida Statutes, providing penalties for criminal use of a public record or public records information.