Skip to content

Instantly share code, notes, and snippets.

@iamnodev
iamnodev / accordion.less
Created June 28, 2012 09:05
Make overflow visible inside bootstrap dropdown
// [...]
// Custom rule to get dropdowns and the like to display outside of the body
// credits: ScottS on stackoverflow
// source: http://stackoverflow.com/questions/10959068/twitter-bootstrap-accordion-and-button-dropdown-overflow-issue
.accordion-body {
&.in {
&:hover {
overflow: visible;
}
@iamnodev
iamnodev / .htaccess
Created June 28, 2012 15:18
Solves serving @fontface to Firefox
# [...]
# credits: Piero
# source: http://www.cssbakery.com/2010/07/fixing-firefox-font-face-cross-domain_25.html
AddType application/vnd.ms-fontobject .eot
AddType font/ttf .ttf
AddType font/otf .otf
<FilesMatch "\.(ttf|otf|eot)$">
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "*"
@iamnodev
iamnodev / norender.php
Created July 24, 2012 14:34
Disable render in zend action
# [...]
# credits: Mathias Geat
# source: http://ailoo.net/2008/09/disable-layout-and-view-renderer-in-zend-framework/
$this->_helper->layout()->disableLayout();
$this->_helper->viewRenderer->setNoRender(true);
@iamnodev
iamnodev / htmltopdf.php
Created August 8, 2012 14:11
Simple Object for HTML to PDF
<?php
// binary source: http://code.google.com/p/wkhtmltopdf/
class HtmlToPdf {
// generator setup
private $converter = 'wkhtmltopdf';
private $command;
// files
public $html;
@iamnodev
iamnodev / carousel-custom.js
Created October 15, 2012 12:27
Bootstrap carousel custom functions
@iamnodev
iamnodev / confirmation-modal
Created July 30, 2014 13:47
Confirmation modal (Bootstrap)
<form action="/action" method="POST" data-confirmation="Perform this action?" class="pull-right">
<button type="submit" class="btn btn-danger">Delete</button>
</form>
<div id="confirmation-modal" class="modal fade hide" tabindex="-1" role="dialog">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3>Confirmation</h3>
</div>
<div class="modal-body">