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
find . -iname "*.py" -not -path "./tests/*" | xargs pylint --output-format=colorized; true | |
-------------------------------------------------------------------- | |
Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00) | |
PYTHONDONTWRITEBYTECODE=1 pytest -v --color=yes | |
[1m============================= test session starts ==============================[0m | |
platform darwin -- Python 3.9.1, pytest-6.2.1, py-1.10.0, pluggy-0.13.1 -- /usr/local/opt/[email protected]/bin/python3.9 | |
cachedir: .pytest_cache | |
rootdir: /Users/andybarnov/code/lewagon/data-solutions/00-Setup/02-Git |
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
require 'pry' | |
require 'date' | |
require 'frenchdepartments' | |
# The way to stop the program and land in a console in the middle of a run | |
# Put in any right place of your choosing | |
# binding.pry | |
# Gender (1 == man, 2 == woman) | |
# Year of birth (84) |
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
require 'pry' | |
require 'date' | |
require 'frenchdepartments' | |
# The way to stop the program and land in a console in the middle of a run | |
# Put in any right place of your choosing | |
# binding.pry | |
# Gender (1 == man, 2 == woman) | |
# Year of birth (84) |
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
require "sinatra" | |
require "sinatra/reloader" if development? | |
require "sinatra/json" | |
get "/" do | |
status 200 | |
body "Build an arithmetic API" | |
end | |
# Implement a /sum endpoint that can sum two integers provided by the user. |
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
<div class="container"> | |
<%= form_tag movies_path, method: :get do %> | |
<%= text_field_tag :query, | |
params[:query], | |
class: "form-control", | |
placeholder: "Find a movie" | |
%> | |
<%= submit_tag "Search", class: "btn btn-primary" %> | |
<% 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
class CreateGardens < ActiveRecord::Migration[6.0] | |
def change | |
create_table :gardens do |t| | |
t.string :name | |
t.string :banner_url | |
t.timestamps | |
end | |
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
package main | |
import ( | |
"fmt" | |
"github.com/gdamore/tcell" | |
"github.com/rivo/tview" | |
) | |
var ( |
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
class CreateRestaurants < ActiveRecord::Migration[6.0] | |
def change | |
create_table :restaurants do |t| | |
t.string :name | |
t.string :address | |
t.integer :stars | |
t.timestamps | |
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
class CreatePets < ActiveRecord::Migration[6.0] | |
def change | |
create_table :pets do |t| | |
t.string :address | |
t.string :species | |
t.date :found_on | |
t.timestamps | |
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
class CreateRestaurants < ActiveRecord::Migration[6.0] | |
def change | |
create_table :restaurants do |t| | |
t.string :name | |
t.string :address | |
t.integer :rating | |
t.timestamps | |
end | |
end |