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
У нас было два Оптерона, 16 гигабайт оперативки, 2 гига под мемкеш, полвинчестера свободно и целое множество плагинов и модулей всех сортов и расцветок, а также Апач, MySQL и гигабайт чистого свопа. Не то чтобы это был необходимый набор для Друпала, но если начал писать на PHP, становится трудно остановиться. Единственное, что вызывало у меня опасение — это своп. Нет ничего более беспомощного, безответственного и испорченного, чем свопящийся сервер. Я знал, что рано или поздно мы перейдем и на эту дрянь. |
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
<?php | |
/* | |
GlobalMapTiles - part of Aggregate Map Tools | |
Version 1.0 | |
Copyright (c) 2009 The Bivings Group | |
All rights reserved. | |
Author: John Bafford | |
http://www.bivings.com/ | |
http://bafford.com/softare/aggregate-map-tools/ |
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
<?php | |
// Variables used in this script: | |
// $summary - text title of the event | |
// $datestart - the starting date (in seconds since unix epoch) | |
// $dateend - the ending date (in seconds since unix epoch) | |
// $address - the event's address | |
// $uri - the URL of the event (add http://) | |
// $description - text description of the event | |
// $filename - the name of this file for saving (e.g. my-event-name.ics) | |
// |
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 Введение | |
В своей прошлой заметке я постарался осветить в общих чертах стиль работы с | |
распределенной системой контроля версий git и указать на отличия по сравнению с | |
классическими централизованными СКВ. Целью было прежде всего обобщение опыта | |
работы с системой без упоминания тонкостей синтаксиса отдельных команд. | |
Данный же топик задумывался как непосредственное введение в работу с git, нечто | |
среднее между tutorial и обобщенной справкой, до которого все же рекомендуется |
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
На форуме, посвященном творчеству Юрия Никитина, задали вопрос: как быстро придти в норму, если чай и кофе уже не | |
помогают проснуться? Классическая ситуация: 3 часа ночи, у вас подготовка диплома или ночная смена на работе в самом | |
разгаре, а вы уже не работник, а обыкновенный зомби. 2-х литровый чайник чая или кофе внутри вас, сердце выпрыгивает из | |
груди, каждые 15 минут ползаете в туалет, а глаза уже не открываются. Знакомо? Как привести себя в норму за 5-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
<?php | |
$http_statuses = array ( | |
100 => 'Continue', | |
101 => 'Switching Protocols', | |
102 => 'Processing', | |
200 => 'OK', | |
201 => 'Created', | |
202 => 'Accepted', | |
203 => 'Non-Authoritative Information', | |
204 => 'No Content', |
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
<?php | |
function getExtByMimeType($mime) { | |
$known_files = array( | |
'/etc/mime.types', | |
'/etc/httpd/mime.types', | |
'C:\Program Files\Apache Group\Apache\conf\mime.types' | |
); /* If mime type file of your system not listed here, please add it path here */ | |
$extensionFile = null; |
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
<?php | |
function parseFile($file) { | |
$matches = array(); | |
$pattern = '/(.+?)\s+(.+?)\n/'; | |
preg_match_all($pattern, file_get_contents($file), $matches); | |
$matches[2] = array_map(function($value) { preg_match_all('/\G(?:^|,)(?:"([^"]*+(?:""[^"]*+)*+)"|([^",]*+))/x', $value, $ret); return (count($ret[2])>1)?$ret[2]:$ret[2][0]; } , $matches[2]); | |
return array_combine($matches[1], $matches[2]); | |
} | |
print_r(parseFile('input.txt')); |
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
/** | |
* Name: Nice Menu | |
* Version: 0.2 | |
* Author: Marcell Jusztin - http://www.marcelljusztin.com | |
* Description: A simple, elegant, colorful, CSS3 animated menu | |
* Tags: css3, animation, menu, simple, elegant, colourful | |
* License: http://creativecommons.org/licenses/by-sa/3.0/ | |
* | |
* Changelog v0.2: | |
* - Changed animation to support percentage, so there is no need to update values one-by-one |
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
ּ_בּ | |
בּ_בּ | |
טּ_טּ | |
כּ‗כּ | |
לּ_לּ | |
מּ_מּ | |
סּ_סּ | |
תּ_תּ | |
٩(×̯×)۶ | |
٩(̾●̮̮̃̾•̃̾)۶ |
OlderNewer