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
gem install pg -v '0.14.1' | |
Building native extensions. This could take a while... | |
ERROR: Error installing pg: | |
ERROR: Failed to build gem native extension. | |
/home/sarkis/.rbenv/versions/1.9.3-p286/bin/ruby extconf.rb | |
checking for pg_config... no | |
No pg_config... trying anyway. If building fails, please try again with | |
--with-pg-config=/path/to/pg_config | |
checking for libpq-fe.h... no |
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
bundle install | |
Fetching gem metadata from https://rubygems.org/........... | |
Fetching gem metadata from https://rubygems.org/.. | |
Using rake (0.9.2.2) | |
Using i18n (0.6.1) | |
Using multi_json (1.3.6) | |
Using activesupport (3.2.8) | |
Using builder (3.0.4) | |
Using activemodel (3.2.8) | |
Using erubis (2.7.0) |
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
REM ***** BASIC ***** | |
Function replace(str as String,sFrom as String,sTo as String) as String | |
'Заменяет в строке str все подстроки sFrom на sTo и возвращает полученную строку | |
Dim s as String | |
Dim i as Integer | |
s=str | |
i=1 | |
Do While true | |
if i>len(s) then |
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
Sub zap(oEvent) | |
Dim i as Integer | |
i=0 | |
oForm = oEvent.Source.getModel().getParent() | |
oCon=oForm.ActiveConnection 'объект для доступа к базе данных | |
oStatement=oCon.CreateStatement() 'объект для выполнения запросов | |
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
sSQLL= "SELECT ""Название"" , ""ID"" FROM ""Вид соревнований"" " | |
sSQL= "SELECT ""Место"" , ""Страна"" , ""Вид соревнований"" FROM ""Ведомость"" " | |
oRes=oStatement.executeQuery(sSQLL) | |
oResult=oStatement1.executeQuery(sSQL) | |
Do While oResult.next() | |
Do While oRes.next() |
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
#encoding: utf-8 | |
# задаем вспомогательные функции | |
# функция с таблицами для сложения | |
def sum(len,a,b) | |
if len == 2 | |
asb = [[0,1],[1,1]] | |
elsif len == 3 | |
asb = [[0,1,2],[1,1,1],[2,1,2]] | |
elsif len == 5 |
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> | |
#include<vector> | |
#include<math.h> | |
using namespace std; | |
int sum(int a,int b) | |
{ | |
int mas[2][2]={{0,1},{1,1}}; | |
int aplusb; |
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
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDOHVL4B91yGfIb7P5f5jLNbNk4vnxEDkfhM8GGsEzzaqnVk2OszILpnIppbFFp/HKkDB+2yWGrWU+MP549Wb1vuxgSMFcVG8nPO9kTyzMDIJ0LW2m2kmVHgRGPCLVYRnMyQuNo2ntVLTHhBi28W01zmxlF5wY4DePHXYYCC97qBQnUVv1fh5JP+M9lpi+F2bf3bnfTPJALI/LDh4/7IDmChiuTU/jJuws2oDebWPSxpRQgoaLQl/6FoPmspttg92+7Ae6q37AoKVdHl6o6QXglZGIQnwkf0ADP74GpC0p/i2KcCudxWlF+XwTbr4qec41OWar5YHbHsXzOLat5qW8p [email protected] |
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> | |
using namespace std; | |
class A | |
{ | |
public: | |
float num; | |
int num_to_int; | |
A operator*(A a); | |
void to_int(A 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
#include <iostream> | |
#include <fstream> | |
#include <string.h> | |
#include <stdlib.h> | |
using namespace std; | |
int main () | |
{ | |
char buff[300]; | |
unsigned int res=0; |