Skip to content

Instantly share code, notes, and snippets.

@nladart
nladart / dabblet.css
Created January 20, 2013 08:47 — forked from anonymous/dabblet.css
Just foolin around with css3 animations
/**
* Just foolin around with css3 animations
*/
body {
background: #fefefe;
min-height: 100%;
}
.screen-reader-text {
position: absolute;
@nladart
nladart / dabblet.css
Created February 20, 2013 20:19 — forked from dgmid/dabblet.css
Animated HTML5 / CSS3 image caption - Example 3
/**
* Animated HTML5 / CSS3 image caption - Example 3
*/
/* page styles */
body{
background: #fff;
min-height:100%;
}
@nladart
nladart / functions-snippet-1.php
Created March 21, 2013 18:10 — forked from neverything/functions-snippet-1.php
For Require + Foundation Child Theme
<?php
// Add the following line to your required_starter_themesetup in your child theme functions.php
remove_action( 'wp_enqueue_scripts', 'required_load_scripts' );
@nladart
nladart / webkit-pseudo-elements.md
Created May 16, 2013 19:25 — forked from leostratus/webkit-pseudo-elements.md
Web-Kit HTML5 form controls, etc. css

An ongoing project to catalogue all of these sneaky, hidden, bleeding edge selectors as I prepare my JSConf EU 2012 talk.

Everything is broken up by tag, but within each the selectors aren't particularly ordered.

I have not tested/verified all of these. Have I missed some or got it wrong? Let me know. - A

A friendly reminder that you may need to set this property on your target/selected element to get the styling results you want:

-webkit-appearance:none;

<!doctype html>
<html>
<head>
<!-- Encoding -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame -->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"></meta>
<div class="ribbon">
<span>LaDart</span>
</div>
@nladart
nladart / gist:6603215
Created September 18, 2013 01:20 — forked from brianblakely/gist:581868
Helpful things to keep in your <head/>
<!DOCTYPE html>
<!-- Helpful things to keep in your <head/>
// Brian Blakely, 360i
// http://twitter.com/brianblakely/
-->
<head>
<!-- Disable automatic DNS prefetching.

Custom Select Menu

A custom select menu without plugins.

//Enlarge all the bacon.
$('.bacon').height(10000).refresh();
@nladart
nladart / content-create.php
Last active December 25, 2015 02:29 — forked from norcross/content-create.php
http://reaktivstudios.com/case-studies/nextdraft/ Can we move the whole NextDraft publishing process into WordPress? Parsing the HTML file into WordPress-structured content As mentioned earlier, Dave’s workflow started with an HTML file with pre-defined markup. Dave wanted to keep this setup because 1.) he was comfortable with it, and 2.) it mad…
<?php
/**
* AJAX call for parsing HTML
*
*/
public function parse_html() {
// get content from textarea
$text = $_POST['content'];