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 CSS resource incorporates links to font software which is | |
the valuable copyrighted property of WebType LLC, The Font Bureau | |
and/or their suppliers. You may not | |
attempt to copy, install, redistribute, convert, modify or reverse | |
engineer this font software. Please contact WebType with any | |
questions: http://www.webtype.com | |
*/ | |
@font-face { | |
font-family: 'NobelWGLRegular'; |
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 | |
/** | |
* Converts Russian letters to Latin | |
* | |
* Usage: | |
* <code> | |
* Russian::transliterate('Привет, как дела?'); | |
* Russian::transliterateUrl('Привет, как дела?'); |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Fix</title> | |
<link href="http://fast.fonts.com/cssapi/ffc13c3f-bd97-4083-bd23-6026005cd713.css" rel="stylesheet"> | |
<script> | |
var windows = (navigator.appVersion.indexOf("Win") != -1); | |
var chrome = (navigator.userAgent.indexOf("Chrome") >= -1); | |
var ie = (navigator.userAgent.indexOf("MSIE") >= -1); |
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 estonian = { | |
months: "Jaanuar,Veebruar,Märts,Aprill,Mai,Juuni,Juuli,August,September,Oktoober,November,Detsember", | |
shortMonths: "jaan.,veebr.,märts,apr.,mai,juuni,juuli,aug.,sept.,okt.,nov.,dets.", | |
days: "Pühapäev,Esmaspäev,Teisipäev,Kolmapäev,Neljapäev,Reede,Laupäev", | |
shortDays: "P,E,T,K,N,R,L" | |
}; | |
var russian = { | |
months: "Январь,Февраль,Март,Апрель,Май,Июнь,Июль,Август,Сентябрь,Октябрь,Ноябрь,Декабрь", | |
shortMonths: "янв,фев,мар,апр,май,июн,июл,авг,сен,окт,ноя,дек", |
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
class String | |
def levenstein(other, ins=2, del=1, sub=1) | |
return nil if self.nil? || other.nil? | |
dm = [] | |
dm[0] = (0..self.length).collect { |i| i * ins} | |
fill = [0] * (self.length - 1) | |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" | |
"http://www.w3.org/TR/html4/strict.dtd"> | |
<html lang="en"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<title>untitled</title> | |
<meta name="generator" content="TextMate http://macromates.com/"> | |
<meta name="author" content="Dmitri Smirnov"> | |
<!-- Date: 2010-08-23 --> |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" | |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<title>Prototype JS - My template for tutorials</title> | |
<meta http-equiv="Content-type" content="text/html; charset=utf-8" /> | |
</head> | |
<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
function multiple_ru($num) | |
{ | |
$num = (string)$num; | |
switch( substr($num, -1)) { | |
case 0: | |
$retval = 'пунктов'; | |
break; | |
case 1: | |
$retval = substr($num, -2) == '11' ? 'пунктов' : 'пункт'; | |
break; |