- Метод прямоугольников
- Метод трапеций
- Метод параболы
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
| <?php | |
| /** | |
| * Created by PhpStorm. | |
| * User: morontt | |
| * Date: 29.07.14 | |
| * Time: 0:32 | |
| */ | |
| namespace Avtogid\FrontendBundle\EventListener; |
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
| <?php | |
| use App\Alien; | |
| use Doctrine\DBAL\DBALException; | |
| $entity = new Alien(); | |
| try { | |
| $this->em->persist($entity); | |
| $this->em->flush(); |
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
| <?php | |
| namespace Mega\TestBundle\Features\Context; | |
| use Behat\Symfony2Extension\Context\KernelAwareInterface; | |
| use Behat\MinkExtension\Context\MinkContext; | |
| /** | |
| * Feature context. | |
| */ |
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
| # author: Dmitriy Belyaev | |
| # https://github.com/dimka2014 | |
| import itertools | |
| numbers = set([x for x in range(1, 19)]) | |
| sequences = [x for x in itertools.combinations(numbers, 6)] | |
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
| own_window yes | |
| own_window_class Conky | |
| own_window_colour black | |
| own_window_transparent no | |
| own_window_argb_visual yes | |
| own_window_argb_value 140 | |
| own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager | |
| own_window_type dock | |
| double_buffer yes | |
| use_spacer right |
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
| #!/usr/bin/env python | |
| import math | |
| fi = (math.sqrt(5.0) + 1.0)/2 | |
| print 'epsilon: ', | |
| eps = input() | |
| print 'a: ', |
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
| CREATE TABLE IF NOT EXISTS `phone_call` ( | |
| `id` int(10) unsigned NOT NULL AUTO_INCREMENT, | |
| `user` varchar(16) NOT NULL, | |
| `flag` int(10) unsigned NOT NULL, | |
| `length` int(10) unsigned NOT NULL, | |
| PRIMARY KEY (`id`) | |
| ) ENGINE=MyISAM DEFAULT CHARSET=utf8; | |
| INSERT INTO `phone_call` (`id`, `user`, `flag`, `length`) VALUES | |
| (1, 'pupkin', 0, 12), |
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 <stdio.h> | |
| #include <time.h> | |
| #define SIZE 8 | |
| int pos[SIZE]; | |
| int used[SIZE]; | |
| int down(int line) | |
| { |
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
| var html = twig({ ref: "user-profile" }).render({ | |
| list: ["a", "b", "c"] | |
| }); |