This file contains hidden or 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
/^([01]?[0-9]|2[0-3]):[0-5][0-9]$/ |
This file contains hidden or 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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.box = "hashicorp/precise64" | |
config.vm.network :forwarded_port, guest: 80, host: 8080 | |
config.vm.provision :shell, :path => "install.sh" |
This file contains hidden or 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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.box = "hashicorp/precise64" | |
config.vm.network :private_network, ip: "192.168.33.21" | |
config.vm.provision :shell, :path => "install.sh" |
This file contains hidden or 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
if(Function('/*@cc_on return document.documentMode===10@*/')()){ | |
document.documentElement.className+=' ie10'; | |
} |
This file contains hidden or 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
// Legend Safari fix | |
.legend-margin-fix(@selector, @margin) { | |
(~"@{selector}") { | |
margin-bottom: @margin; | |
} | |
(~"@{selector} + *") { | |
-webkit-margin-top-collapse: separate; | |
margin-top: @margin; | |
} |
This file contains hidden or 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> | |
<!-- Add classes for each IE to the HTML Tag --> | |
<!--[if lt IE 7 ]><html class="ie ie6 no-js"> <![endif]--> | |
<!--[if IE 7 ]><html class="ie ie7 no-js"> <![endif]--> | |
<!--[if IE 8 ]><html class="ie ie8 no-js"> <![endif]--> | |
<!--[if (gte IE 9)|!(IE)]><!--><html class="no-js"> <!--<![endif]--> | |
<head> | |
<title>Responsive Video</title> |
This file contains hidden or 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
$week = 43; | |
$timestamp = mktime(0, 0 ,0, 1, 1, $this->year) + ($week * 7 * 24 * 60 * 60); | |
$timestamp_for_monday = $timestamp - 86400 * ( date( 'N', $timestamp) - 1 ); | |
$first_day_of_week = date('d.m.Y', $timestamp_for_monday); |
This file contains hidden or 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 | |
class YourClassName extends WP_Widget { | |
public function YourClassName() | |
{ | |
// Widget Options | |
$widget_ops = array( | |
'classname' => 'yourclassname', | |
'description' => 'Your description' |
This file contains hidden or 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
/^-?(?:\d+|\d{1,3}(?:,\d{3})+)(?:(\.|,)\d+)?$/ |
This file contains hidden or 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 if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
/** | |
* Generates the HTML for a Twitter Bootstrap Input | |
* | |
* @var string | |
* @author Markus Schober | |
**/ | |
if ( !function_exists('tb_horizontal_input')) { |