Skip to content

Instantly share code, notes, and snippets.

@tailwind base;
@tailwind components;
@tailwind utilities;
.field {
@apply .rounded .border .py-2 .px-3 .text-gray-800;
}
.field-label {
@apply .mb-2 .uppercase .font-bold .text-lg .text-gray-900;
@skully78
skully78 / index.html
Last active March 3, 2017 03:02
React.js Introduction // source http://jsbin.com/siyekal
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="React.js Introduction">
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<meta charset="utf-8">
<title>JS Bin</title>
<script src="https://fb.me/react-15.1.0.js"></script>
<script src="https://fb.me/react-dom-15.1.0.js"></script>
</head>
@skully78
skully78 / index.html
Last active March 3, 2017 03:01
React.js Introduction - JQuery version // source http://jsbin.com/lehuxi
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="React.js Introduction For People Who Know Just Enough jQuery To Get By">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Tutorial from reactfordesigners.com</title>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<script src="https://code.jquery.com/jquery.min.js"></script>
</head>
@skully78
skully78 / gist:2167534
Created March 23, 2012 06:16 — forked from luetkemj/wp-query-ref.php
WP: Query $args
<?php
/**
* WordPress Query Comprehensive Reference
* Compiled by luetkemj - luetkemj.com
*
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query
* Source: http://core.trac.wordpress.org/browser/tags/3.3.1/wp-includes/query.php
*/
$args = array(
@skully78
skully78 / gist:2167517
Created March 23, 2012 06:13 — forked from ericpedia/gist:1122631
get top parents in wordpress
<?php
function get_term_top_most_parent($term_id, $taxonomy){
$parent = get_term_by( 'id', $term_id, $taxonomy);
while ($parent->parent != 0){
$parent = get_term_by( 'id', $term_id, $taxonomy);
}
return $parent;
}
// so once you have this function you can just loop over the results returned by wp_get_object_terms