Magic words:
psql -U postgresIf run with -E flag, it will describe the underlaying queries of the \ commands (cool for learning!).
Most \d commands support additional param of __schema__.name__ and accept wildcards like *.*
| defmodule StillOn do | |
| import IO | |
| def yeah do | |
| puts "I am Still on it" | |
| end | |
| end |
| use Mix.Config | |
| config :todolist, TodoList.Repo, [ | |
| adapter: Ecto.Adapters.Postgres, | |
| database: "todolist_#{Mix.env}", | |
| username: "postgres", | |
| password: "", | |
| hostname: "localhost", | |
| ] |
| defmodule TodoList.Task do | |
| use Ecto.Schema | |
| import Poison | |
| alias TodoList.Repo | |
| schema "tasks" do | |
| field :task_name | |
| field :task_description | |
| field :task_status |
| defmodule TodoList.Repo.Migrations.CreateTasks do | |
| use Ecto.Migration | |
| def change do | |
| create table("tasks") do | |
| add :task_name, :string | |
| add :task_description, :string | |
| add :task_status, :string | |
| timestamps() | |
| end |
| defmodule Router.MainRouter do | |
| use Plug.Router | |
| plug :match | |
| plug :dispatch | |
| get "/" do | |
| page = EEx.eval_file("views/index.html.eex") | |
| conn | |
| |> put_resp_content_type("text/html") |
| defmodule Router.SitesRouter do | |
| import Plug.Conn | |
| use Plug.Router | |
| plug :match | |
| plug :dispatch | |
| get "/" do | |
| page = EEx.eval_file("views/sites/index.html.eex") | |
| conn |
| let os = substitute(system('uname'), "\n", "", "") | |
| call plug#begin('~/.config/nvim/autoload/') | |
| Plug 'morhetz/gruvbox' | |
| Plug 'chusiang/vim-sdcv' " How to install dict see https://askubuntu.com/questions/191125/is-there-an-offline-command-line-dictionary | |
| Plug 'scrooloose/nerdtree' | |
| Plug 'kassio/neoterm' | |
| Plug 'janko-m/vim-test' | |
| Plug 'benekastah/neomake' |
| # https://www.codewars.com/kata/the-builder-of-things/ruby | |
| # https://www.codewars.com/kata/reviews/5571e09a385f59d95f000063/groups/59426d64e6049310a70006ce | |
| # imported to handle any plural/singular conversions | |
| require 'active_support/core_ext/string' | |
| class Thing | |
| def initialize(name) | |
| @properties = {} | |
| is_the.name.send(name) |
| def group(arr): | |
| print("given set of the array: ", arr) | |
| temp_list = [] | |
| group_maker_spice = 3 # base jumper | |
| group_maker_spice_special_case_second_row = 2 | |
| result_list = [] | |
| for item in arr: | |
| if item == 0 and len(arr) > group_maker_spice: | |
| # insert the first 3 in a group |