- date or time picker
- responsive
- Web: http://amsul.ca/pickadate.js/
- Repo: https://github.com/amsul/pickadate.js
- Bower: bower install pickadate
| /** | |
| * Distance between two points | |
| * @param coords1 {lat: xx, lng: yy} | |
| * @param coords2 {lat: xx, lng: yy} | |
| * @returnd distance in meters | |
| */ | |
| function _getCoordsDistance(coords1, coords2) | |
| { | |
| // earth | |
| var R = 6371, // km |
Javascript module generator for node.js or the browser.
layout.jade
doctype 5
html.no-js(lang='en')
block vars
head
title #{title}
meta(name='description', content='#{description}')
body| module.exports = function (grunt) { | |
| grunt.initConfig({ | |
| // spritesmith | |
| sprite: { | |
| all: { | |
| src: 'src/assets/img/icons/*.png', | |
| destImg: 'src/assets/img/spritesheet.png', | |
| destCSS: 'src/styles/sprites.css' |
Should work in modern browsers. Done in 18 minutes.
A Pen by Viktor Bezdek on CodePen.
| /* Taken from http://cssdeck.com/labs/16-box-shadows-to-save-your-time */ | |
| .box1 { | |
| -webkit-box-shadow: 0 10px 6px -6px #777; | |
| -moz-box-shadow: 0 10px 6px -6px #777; | |
| box-shadow: 0 10px 6px -6px #777; | |
| } | |
| .box2 { | |
| -webkit-box-shadow: 0 1px 2px #777; | |
| -moz-box-shadow: 0 2px 1px #777; |
| <?php | |
| if (is_admin() && isset($_GET['activated'] ) && $pagenow == "themes.php" ) { | |
| $theme_url = get_bloginfo('template_url'); | |
| $theme_url_split = explode("/", $theme_url); | |
| $theme_url_split_length = count($theme_url_split); | |
| $theme_name = $theme_url_split[$theme_url_split_length-1]; | |
| $plugin_source = "../wp-content/themes/".$theme_name."/bundled_plugins/plugin_name"; |