Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
/* Button */ | |
button, input[type="submit"] { | |
display: inline-block; | |
padding: 2px 20px; | |
background: #c4c4c4; | |
background: -webkit-linear-gradient(top, #eee, #c4c4c4); | |
background: -moz-linear-gradient(top, #eee, #c4c4c4); | |
background: -ms-linear-gradient(top, #eee, #c4c4c4); | |
background: -o-linear-gradient(top, #eee, #c4c4c4); | |
background: linear-gradient(top, #eee, #c4c4c4); |
function declOfNum(number, titles) { | |
cases = [2, 0, 1, 1, 1, 2]; | |
return titles[ (number%100>4 && number%100<20)? 2 : cases[(number%10<5)?number%10:5] ]; | |
} | |
use: | |
declOfNum(count, ['найдена', 'найдено', 'найдены']); |
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
/** | |
* Oauth 2.0 basic example | |
*/ | |
var express = require('express'); | |
var oauth = require('oauth-server'); | |
/** | |
* Create a new server | |
*/ | |
var server = module.exports = express.createServer(); |
/** | |
* Controls | |
* | |
* <span data-trigger="slider-next" data-recipient=".portfolio">Next</span> | |
*/ | |
$(document).click(function(e) { | |
var target = e.target; | |
if (target.getAttribute('data-trigger') && target.getAttribute('data-recipient')) { | |
target = $(target); | |
$(target.data('recipient')).trigger(target.data('trigger')); |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="viewport" content="initial-scale=1.0, user-scalable=no"> | |
<meta charset="utf-8"> | |
<title>Google Maps JavaScript API v3 Example: Geocoding Simple</title> | |
<link href="https://developers.google.com/maps/documentation/javascript/examples/default.css" rel="stylesheet"> | |
<script src="https://maps.googleapis.com/maps/api/js?sensor=false"></script> | |
<script> |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.