Skip to content

Instantly share code, notes, and snippets.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
-- Создайте базу данных test_guru
CREATE DATABASE test_guru;
-- Таблицу categories с атрибутом title
CREATE TABLE categories(
id serial PRIMARY KEY,
title varchar(25) NOT NULL
);
-- Таблицу tests в которой должны быть атрибуты title, level, внешний ключ к таблице categories
$ncat -C httpbin.org 80
GET /get HTTP/1.1
Host: httpbin.org
HTTP/1.1 200 OK
Access-Control-Allow-Credentials: true
Access-Control-Allow-Origin: *
Content-Type: application/json
Date: Mon, 30 Sep 2019 18:12:01 GMT
@fatwebdev
fatwebdev / form.js
Created May 19, 2017 09:12
valid ne valid invalid
document.addEventListener("DOMContentLoaded", function(event) {
var body = document.querySelector('body');
body.classList.remove('is-preview');
var button = document.querySelector('[type=submit]');
button.setAttribute('disabled', '');
function isBlank(value) {
return value === null;
}