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
#!/bin/bash -e | |
# | |
# Since unicorn creates a new pid on restart/reload, it needs a little extra love to | |
# manage with runit. Instead of managing unicorn directly, we simply trap signal calls | |
# to the service and redirect them to unicorn directly. | |
# | |
# To make this work properly with RVM, you should create a wrapper for the app's gemset unicorn. | |
# | |
function is_unicorn_alive { |
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
#pragma warning(disable: 4996) | |
#include <stdlib.h> | |
#include <string.h> | |
#include "parray.h" | |
PArray *parray_create(size_t length, size_t sz, char *filename) | |
{ | |
PArray *pa = (PArray *)malloc(sizeof(PArray)); | |
if (!pa) |
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 <locale.h> | |
int main() | |
{ | |
setlocale(LC_ALL, "Rus"); | |
printf("Здравствуй, мир!\n"); | |
return 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
Урамаев Марат гр.8371 | |
База данных. | |
Реализована как список указателей. Каждый указатель является головой другого списка. | |
В общем получается такая таблица. Хранится в файле | |
Интерфейс текстовый | |
нажми то - будет то))) |
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
Алгоритм Лемпела-Зива. | |
Мой проект будет заключать в себя такие пункты, как: | |
1)создание архива, в котором могут содержаться несколько файлов; | |
2)добавление и обновление файлов; | |
3)удаление файлов из архива. | |
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
Тумашов Роман, группа 8371 | |
Библиотека для работы с XML. | |
Операции: загрузка XML в дерево (DOM - Document Object Model). | |
Сохранение дерева в файл. | |
Поиск, вставка, удаление узлов. | |
Консольный интерфейс для работы с деревом | |
Для этого нужны: |
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
Тумашов Роман, группа 8371 | |
Библиотека для работы с XML. | |
Операции: загрузка XML в дерево (DOM - Document Object Model). | |
Сохранение дерева в файл. | |
Поиск, вставка, удаление узлов. | |
Консольный интерфейс для работы с деревом | |
Для этого нужны: |
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
function cool_cost(cost) { | |
cost = Number(cost); | |
c = Math.floor(cost / 1000); | |
b = String(cost % 1000); | |
while (b.length < 3) | |
b = '0' + b; | |
return c + ',' + b; | |
} |