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
%table.blockContainer{ border: '0', cellpadding: '0', cellspacing: '0', bgcolor: '#FFFFFF', style: 'border-top: none; width: auto !important;' } | |
/ MAIN BANNER | |
%tr | |
%td{ valign: 'top', style: 'padding-bottom:0; width:100%; text-align:center;' } | |
%a{ href: t(:url) + track+ '&utm_content=banner', style: 'line-height: 0; text-decoration: none;' } | |
%img.img-responsive{ src: t("#{page}.banner_image"), width: 600, style: 'width: 100% !important; font-size: 76px;display: block; background: #848484;color: #fff', alt: t("#{page}.banner_alt") } |
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
body{margin:0 !important; padding:0 !important;} | |
img{border:0; height:auto; line-height:100%; outline:none; text-decoration:none;} | |
table{border-collapse:collapse !important;} | |
body, #bodyTable, #bodyCell{height:100% !important; margin:0 !important; padding:0 !important; width:100% !important;} |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
# --------------------------------------------------------------------------- | |
# | |
# Description: This file holds all my BASH configurations and aliases | |
# | |
# Sections: | |
# 1. Environment Configuration | |
# 2. Make Terminal Better (remapping defaults and adding functionality) | |
# 3. File and Folder Management | |
# 4. Searching | |
# 5. Process Management |
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 getCurrentWeek = function(){ | |
var d = new Date(); | |
d.setHours(0,0,0,0); | |
d.setDate(d.getDate()+4-(d.getDay()||7)); | |
return [d.getFullYear(), Math.ceil((((d-new Date(d.getFullYear(),0,1))/8.64e7)+1)/7)]; | |
}; | |
var skipButton = document.querySelectorAll('[data-translation-id="account-area.my-deliveries.skip-week"]')[0]; | |
var isActive = skipButton.innerHTML |
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
module.exports = { | |
webpack: (config, { dev }) => { | |
config.module.rules.push( | |
{ | |
test: /\.(css|scss)/, | |
loader: 'emit-file-loader', | |
options: { | |
name: 'dist/[path][name].[ext]' | |
} | |
}, |
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
{ | |
// http://eslint.org/docs/rules/ | |
"ecmaFeatures": { | |
"binaryLiterals": false, // enable binary literals | |
"blockBindings": false, // enable let and const (aka block bindings) | |
"defaultParams": false, // enable default function parameters | |
"forOf": false, // enable for-of loops | |
"generators": false, // enable generators | |
"objectLiteralComputedProperties": false, // enable computed object literal property names |
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
FROM ruby:2.3.4 | |
MAINTAINER Sharetribe Team <team@sharetribe.com> | |
ENV REFRESHED_AT 2016-11-08 | |
RUN apt-get update \ | |
&& apt-get dist-upgrade -y | |
# |
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
<script type="text/javascript"> | |
(function(document){ | |
function syncDatePickers(startDateNode, endDateNode) { | |
startDateNode.datepicker().on("changeDate", function(e) { | |
endDateNode.datepicker('setDate', new Date(e.target.value)); | |
}); | |
} | |
function changeLabelText(datePickerNode, text) { | |
datePickerNode.closest('div').css('width', '100%').find('label').text(text); |
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 directionsDisplay; | |
var directionsService; | |
var marker; | |
var geocoder; | |
var map; | |
var defaultCenter; | |
var infowindow; | |
var center; | |
var prefix; | |
var textfield; |
OlderNewer