Skip to content

Instantly share code, notes, and snippets.

View progapandist's full-sized avatar
👋
Interviewing

Andy Baranov progapandist

👋
Interviewing
View GitHub Profile
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
============================= test session starts ==============================
platform darwin -- Python 3.9.1, pytest-6.2.1, py-1.10.0, pluggy-0.13.1 -- /usr/local/opt/python@3.9/bin/python3.9
cachedir: .pytest_cache
rootdir: /Users/andybarnov/code/lewagon/data-solutions/00-Setup/02-Git
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)
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)
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.
<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 %>
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
package main
import (
"fmt"
"github.com/gdamore/tcell"
"github.com/rivo/tview"
)
var (
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
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
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