CSS selectors tell the browser which HTML elements your styles should apply to. Everything in CSS starts with selecting the right element.
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
| <title>Weather in London</title> | |
| </head> | |
| <body> | |
| <p>Current weather in London:</p> |
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
| #include <iostream> | |
| int main() { | |
| for (int i = 1; i <= 100; i++) { | |
| if (i % 15 == 0) | |
| cout << "FizzBuzz "; | |
| else if (i % 3 == 0) | |
| cout << "Fizz "; | |
| else if (i % 5 == 0) | |
| cout << "Buzz"; |
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
| int test_static_value() { | |
| static int static_value = 1; | |
| return static_value++; | |
| } |
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
| #define _CRT_SECURE_NO_WARNINGS | |
| #include <stdio.h> | |
| int main() { | |
| freopen("input.txt", "r", stdin); | |
| freopen("output.txt", "w", stdout); | |
| int a, b; |
ВКИ НГУ, 2017 г.
Курс состоит из набора лабораторных работ (15 штук). Для получения допуска к экзамену необходимо сдать 12 лабораторных работ.
Лабораторные работы, начиная с №3, перед сдачей будет необходимо пропустить через набор тестов (будут предложены позднее). Без пройденных тестов лабораторная работа к сдаче не принимается.
Для оформления лабораторных работ необходимо в одном проекте создать пакет ru.nsu.hci.{yoursurname}.javalabs.
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
| import { Model, model, connect, primary } from 'mysql-records' | |
| import { createHash } from 'crypto' | |
| const dbc = connect('localhost', 'mysql-user', 'mysql-password', 'mysql-db') | |
| @model(dbc, 'users') | |
| export class User extends Model { | |
| @primary id: number | |
| username: string | |
| password: string |
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
| yhaskell@kallahan:~/Programming/dotnet/reverse $ cat test.py | |
| def reverse(str): | |
| return str[::-1] | |
| print(reverse('les misérables')) | |
| yhaskell@kallahan:~/Programming/dotnet/reverse $ python3 test.py | |
| selbaŕesim sel |
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
| import render from './my-awesome-component.render' | |
| class MyAwesomeComponent extends Component { | |
| constructor() { | |
| super() | |
| this.state = { | |
| data: ['First item', 'Second Item'] | |
| } | |
| this.render = render.bind(this) | |
| } |
NewerOlder