Skip to content

Instantly share code, notes, and snippets.

@adamjacob
adamjacob / _element_reset.scss
Created June 17, 2013 20:49
Quick and dirty Sass mixin that resets elements (margin, padding, list-styles).
@mixin element_reset($properties){
@each $property in $properties {
#{$property} {
margin:0px; padding:0px;
@if($property == 'li' or $property == 'ul'){
<?php
/**
* Get Plugin Headers
*
* Get the header information from all plugins in
* the plugins pool for use later on.
*
* @param mixed $plugin
*/
public function get_plugin_headers($plugin)
<?php
// Config Vars
$sourcefolder = "./" ; // Default: "./"
$zipfilename = "myarchive.zip"; // Default: "myarchive.zip"
$timeout = 5000 ; // Default: 5000
// instantate an iterator (before creating the zip archive, just
// in case the zip file is created inside the source folder)
// and traverse the directory to get the file list.
@adamjacob
adamjacob / HTML5Tags_IE.js
Created January 23, 2013 00:02
Simple fix to trick IE into allowing HTML5 Tags in the dom.
// Put all the HTML5 Tags you would like to use in this array
$.each(['article','aside','details','figcaption','figure','footer','header','hgroup','nav','section','summary'],
function(index,value){
$('<'+value+' />');
}
);