Skip to content

Instantly share code, notes, and snippets.

@jdabs
jdabs / index.html
Last active August 29, 2015 13:56
hiding sidebars/boxes in Soholaunch with a Foundation template
<!--Assuming your sidebar is completely empty (i.e. nothing is in its cell),
this will remove the sidebar and expand the content area -->
<section>
<div class="row">
<div class="large-8 columns middle">
#content#
</div>
<div class="large-4 medium-4 columns">
<div id="box-one" class="boxOne-panel">#BOX1#</div>
@jdabs
jdabs / gist:9354885
Last active August 29, 2015 13:57
Head section of a Foundation template in Soholaunch with #relative_template_path# applied
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>#title#</title>
<link rel="stylesheet" href="#relative_template_path#/css/foundation.css" /> <!- Must add #relative_template_path# -->
<script src="js/vendor/modernizr.js"></script>
</head>
@jdabs
jdabs / gist:9354908
Created March 4, 2014 20:27
Foundation 5 topbar menu with Soholaunch #hmains# pound variable
<nav class="top-bar" data-topbar data-options="mobile_show_parent_link: true" role="primary">
<ul class="title-area">
<li class="name">
<h1></h1> <!--Have to have this to make menu work, even if it's empty -->
</li>
<li class="toggle-topbar menu-icon"><a href="#"><span>Menu</span></a></li>
</ul>
<section class="top-bar-section">
#hmains#
</section>
@jdabs
jdabs / gist:9354940
Last active August 29, 2015 13:57
Example Foundation index.html converted for use with Soholaunch
<!doctype html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>#title#</title>
<link rel="stylesheet" href="#relative_template_path#/css/foundation.css" />
<script src="js/vendor/modernizr.js"></script>
</head>
<body>
<link href="../core-field/core-field.html" rel="import">
<link href="../core-icon/core-icon.html" rel="import">
<link href="../core-input/core-input.html" rel="import">
<link href="../core-icons/core-icons.html" rel="import">
<polymer-element name="my-element">
<template>
<style>
#design_host {
@jdabs
jdabs / gist:b9febd71b8b6e8c3bbc3
Last active August 29, 2015 14:09
WAMP's httpd-vhosts.conf with google drive doc root
# add your Window's username in place of {yourName}
<VirtualHost *:80>
ServerAdmin webmaster@dummy.example.com
DocumentRoot "C:/Users/{yourName}/Google Drive/wamp/www"
ServerName localhost
ServerAlias localhost
ErrorLog "logs/localhost.log"
CustomLog "logs/localhost.log" common
</VirtualHost>
@jdabs
jdabs / gist:a8f2948ef47465d38f65
Last active August 29, 2015 14:13
markdown code highlight example
```javascript
<script>
$(document).ready(function () {
$('#input-menu').inputMenu();
});
</script>
```
@jdabs
jdabs / gist:8a9900733ad2ff7f4a4e
Last active August 29, 2015 14:18
Make "Google" text on google.com a cat image
/* download Stylish for Firefox https://addons.mozilla.org/en-Us/firefox/addon/stylish/
Make a new style for google.com and copy and paste the below
*/
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("www.google.com") {
#lga{
function wpdocs_theme_name_scripts() {
wp_enqueue_style( 'style-name', get_stylesheet_directory_uri().'style.css?ver='rand(1,9999) );
}
add_action( 'wp_enqueue_scripts', 'wpdocs_theme_name_scripts' );
jQuery('.the-filter-form-class').ajaxComplete(function() {
$('.selectpicker').selectpicker(); // re-init the thing on ajax done (sort of like a page load)
}
// 'prece
// http://silviomoreto.github.io/bootstrap-select