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/sh | |
debug_rex='/console.log/' | |
debug_print_rex=$debug_rex'p' | |
debug_del_rex=$debug_rex' d' | |
add_debug_patch='.add-debug.patch' | |
del_debug_patch='.del-debug.patch' | |
git_work_dir="$(git rev-parse --show-toplevel)" | |
fake_file="$git_work_dir/.fake_file" | |
cur_dir="$(pwd)" |
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
var style = "font-size: 24px;" + | |
"background: #67b26f; /* fallback for old browsers */" + | |
"background: -webkit-linear-gradient(to right, #67b26f, #4ca2cd); /* Chrome 10-25, Safari 5.1-6 */" + | |
"background: linear-gradient(to right, #67b26f, #4ca2cd); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */" + | |
"color: white;" + | |
"text-align: center;" + | |
"padding: 10px 15px;" + | |
"width: 100%;" + | |
"border-radius: 20px;"; |
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
# It's only a POC for now | |
defmodule ContextBase do | |
@moduledoc """ | |
Abstracts away common schema functions, such as list, get, create, update, delete, etc. | |
Assumes that the schema module has a `changeset` function. | |
Usage: | |
defmodule MyContext do | |
use ContextBase, repo: MyApp.Repo, schema: MyApp.MySchema | |
end |