- Стандартные контейнеры C++.
- Алгоритмы в стандартной библиотеке C++ (#include ).
- Конструктор копирования. Перегрузка оператора присваивания. Ключевое слово explicit.
- Перегрузка операторов в C++.
- Принцип RAII. Умные указатели в C++. Мотивация и реализация.
- Паттерн Singleton («одиночка»). Варианты его реализации в C++.
- Принцип COW.
- RTTI в C++.
- Паттерны Singleton, Prototype и Builder.
- Паттерны Abstract Factory и Factory Method.
This file contains 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
ExifTool Version Number : 9.47 | |
File Name : IMG_0021.JPG | |
Directory : /Volumes/RedStore/Tanya/fotos/14_02_20_start_d20 | |
File Size : 2.5 MB | |
File Modification Date/Time : 2014:02:20 17:23:02+07:00 | |
File Access Date/Time : 2014:02:20 17:23:02+07:00 | |
File Inode Change Date/Time : 2014:02:20 17:23:02+07:00 | |
File Permissions : rwxr--r-- | |
File Type : JPEG | |
MIME Type : image/jpeg |
This file contains 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 <vector> | |
#include <iostream> | |
using namespace std; | |
template <typename T> | |
class Initializer { | |
public: | |
Initializer(T &_array) | |
: array(_array) {} |
This file contains 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 "circle.h" | |
#include "new.h" | |
static void *Circle_ctor(void *_self, va_list *app) { | |
struct Circle *self = ((const struct Class *)Point)->ctor(_self, app); | |
self->rad = va_arg(*app, int); | |
return self; | |
} |
This file contains 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
<?xml version="1.0" encoding="UTF-8" standalone="no" ?> | |
<gpx xmlns="http://www.topografix.com/GPX/1/1" creator="GPS TrackMaker" version="1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd"> | |
<metadata> | |
<link href="http://www.gpslib.ru"> | |
<text>GPSLib tracks collection</text> | |
</link> | |
<time>2014-11-24T10:29:38+03:00Z</time> | |
<bounds minlat="45.011369" minlon="41.946345" maxlat="45.015844" maxlon="41.954083" /> | |
</metadata> | |
<trk> |
This file contains 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
source 'https://rubygems.org' | |
gem 'activerecord', '4.2.0' | |
gem 'sqlite3' | |
gem 'bcrypt', '~> 3.1.7' |
This file contains 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
/** | |
* Copyright (c) 2013, Simone Pellegrini All rights reserved. | |
* | |
* Redistribution and use in source and binary forms, with or without | |
* modification, are permitted provided that the following conditions are met: | |
* | |
* - Redistributions of source code must retain the above copyright notice, | |
* this list of conditions and the following disclaimer. | |
* | |
* - Redistributions in binary form must reproduce the above copyright notice, |
This file contains 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
def bright?(color) | |
if color =~ /^#([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})$/ | |
r = $1.to_i(16) | |
g = $2.to_i(16) | |
b = $3.to_i(16) | |
# Use formula to calculate brightness | |
# http://www.nbdtech.com/Blog/archive/2008/04/27/Calculating-the-Perceived-Brightness-of-a-Color.aspx | |
brightness = Math.sqrt(r*r*0.241+g*g*0.691+b*b*0.068) / 255 * 100.0 |
This file contains 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
2.2.0 |
This file contains 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 ruby | |
require 'rubygems' | |
require 'dm-core' | |
require 'dm-is-list' | |
require 'pp' | |
class Participation | |
include DataMapper::Resource | |
property :id, Serial |
OlderNewer