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
<result> | |
<r> | |
<position>3</position> | |
<content> | |
<div class="b"> | |
<div class="c"> | |
<b>...</b> | |
<!-- мы тут --> | |
</div> | |
</div> |
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
<![CDATA[<div class="post"> | |
<p>Текст</p> | |
<div> | |
<div><span><b><i>]]><ya user="nop"></ya><![CDATA[</i></b></span></div> | |
</div> | |
</div>]]> |
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
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | |
<xsl:output method="xml" indent="yes" omit-xml-declaration="yes"/> | |
<!-- Паттерн на все элементы --> | |
<xsl:template match="*"> | |
<!-- Реверсим локальную часть имени --> | |
<xsl:variable name="thisName"> | |
<xsl:call-template name="checkNCName"> | |
<xsl:with-param name="string" select="local-name()"/> | |
</xsl:call-template> |
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
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | |
<xsl:output method="xml" indent="yes"/> | |
<xsl:strip-space elements="*"/> | |
<xsl:template match="node() | @*"> | |
<xsl:copy> | |
<xsl:apply-templates select="node() | @*"/> | |
</xsl:copy> | |
</xsl:template> |
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
var connect = require('connect'); | |
var server = connect( | |
connect.cookieParser(), | |
function(req, res, next) { | |
// hehe | |
callToUnknownFunction(); | |
next(); |
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 | |
logfile=logfile.txt | |
{ | |
echo -e "Текущее время:\n`date`" | |
echo -e "\nПользователи в системе:\n`who`" | |
echo -e "\nТекущий аптайм:\n`uptime`" | |
} > "$logfile" |
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
/* | |
реализовать анимированную | |
навигацию по div.a1 | |
без перезагрузки страницы | |
с поддержкой истории послещений | |
http://clck.ru/d/nEyP0z8x143w5 | |
*/ | |
body | |
{ |
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
* Хороший красный портвейн | |
* Хороший красный портвейн | |
* Хороший красный портвейн | |
* Хороший красный портвейн | |
* Хороший красный портвейн | |
* Хороший красный портвейн | |
* Хороший красный портвейн | |
* Хороший красный портвейн | |
* Хороший красный портвейн | |
* Хороший красный портвейн |
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
Процессор: Core2 Duo E6850 @ 3.00 GHz | |
Материнка: Gigabyte P35-S3G (Socket 775) | |
Оперативка: 4,00 ГБ Dual-Channel DDR2 @ 399MHz | |
Видео: GeForce 8800GT | |
Винты: | |
* Western Digital WD10EADS 1Tb | |
* Seagate ST3750640AS 750Gb | |
DVD-RW: LG GH22NP20 | |
Аудио: Intel HD Audio (лень смотреть какой, не используется) | |
Корпус: лень искать, чёрный короче, модный до омерзения |
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 node | |
'use strict'; | |
const net = require('net'); | |
const server = net.createServer(); | |
let port; | |
server.listen(0, () => { | |
port = server.address().port; | |
server.once('close', () => { | |
console.log(`Found unused port: ${port}`); |
OlderNewer