Skip to content

Instantly share code, notes, and snippets.

View drmmr763's full-sized avatar

Chad Windnagle drmmr763

View GitHub Profile
@drmmr763
drmmr763 / postgres.sql
Created April 27, 2014 13:07
joomla postgres 3.3-dev repo
0 Database query failed (error # %s): %s SQL=SELECT "m"."tag_id","m"."core_content_id","m"."content_item_id","m"."type_alias",COUNT( "tag_id") AS "count","t"."access","t"."id","ct"."router","cc"."core_title","cc"."core_alias","cc"."core_catid","cc"."core_language" FROM "bxy68_contentitem_tag_map" AS "m" INNER JOIN "bxy68_tags" AS "t" ON m.tag_id = t.id INNER JOIN "bxy68_ucm_content" AS "cc" ON m.core_content_id = cc.core_content_id INNER JOIN "bxy68_content_types" AS "ct" ON m.type_alias = ct.type_alias WHERE "m"."tag_id" IN (2,3,4,5) AND t.access IN (1,1) AND ("m"."content_item_id" <> 24 OR "m"."type_alias" <> 'com_content.article') AND "cc"."core_state" = 1 GROUP BY "m"."core_content_id" ORDER BY "count" DESC LIMIT 5
@drmmr763
drmmr763 / gist:11332731
Created April 26, 2014 22:21
pstges-error.text
JLIB_DATABASE_QUERY_FAILED SQL=INSERT INTO "ji3t6_extensions" ("extension_id", "name", "type", "element", "folder", "client_id", "enabled", "access", "protected", "manifest_cache", "params", "custom_data", "system_data", "checked_out", "checked_out_time", "ordering", "state") VALUES (400, 'plg_authentication_gmail', 'plugin', 'gmail', 'authentication', 0, 0, 1, 0, '', '{"applysuffix":"0","suffix":"","verifypeer":"1","user_blacklist":""}', '', '', 0, '1970-01-01 00:00:00', 1, 0), (401, 'plg_authentication_joomla', 'plugin', 'joomla', 'authentication', 0, 1, 1, 1, '', '', '', '', 0, '1970-01-01 00:00:00', 0, 0), (402, 'plg_authentication_ldap', 'plugin', 'ldap', 'authentication', 0, 0, 1, 0, '', '{"host":"","port":"389","use_ldapV3":"0","negotiate_tls":"0","no_referrals":"0","auth_method":"bind","base_dn":"","search_string":"","users_dn":"","username":"admin","password":"bobby7","ldap_fullname":"fullName","ldap_email":"mail","ldap_uid":"uid"}', '', '', 0, '1970-01-01 00:00:00', 3, 0), (403, 'plg_content_contact
<p>My passion for good food started in elementary school.&nbsp; I would often trade my packaged snacks like devil dogs and potato chips for my friend's delicious homemade cakes. &nbsp; As I got older, and more fitness and health oriented, my quest to learn more about food and cooking eventually lead me to the chef's training program at the Natural Gourmet Institute for Health and Culinary Arts, a ground-breaking school that connects food and health, healing arts and gourmet cooking.&nbsp; There I honed my skills and now love exploring a variety of cuisines, ranging from comfort foods to exotic and ethnic, inspired by treks through Europe and Israel, and even New York City! &nbsp; &nbsp;</p>
<p>&nbsp;</p>
<p>Today I am the chef and owner of Personal Palate, offering personal chef and kosher catering services using all natural ingredients.&nbsp; I've worked with therapeutic diets such as GAPS, Gluten-free/casein-free, specific-carb, and macrobiotics to help clients with weight loss, food allergies, celiac, auti
<div class="row">
<div class="well span4">
<!-- the make name -->
<h1>Porsche Convertibles</h1>
<!-- the content as HTML paragraphs -->
<p>In the decades since Porsche's early beginnings, Porsche has made a name for itself by providing high-performance rear-engine convertible sports cars for the consumer market.</p>
<p>The Porsche 911, originally introduced in 1963, is one of the oldest sports coupes still being produced. The first convertible Porsche 911 convertible debuted in 1984 as the 911 Cabriolet. Its popularity ensured that the prestigious Porsche 911 convertible top option has been available ever since.</p>
<p>In 1996 Porsche rolled out a new model, the Porsche 986 Boxster. The second generation, the Porsche 987 Boxster, debuted in 2005. One of the most distinctive aspects of the car is the Porsche Boxster convertible top, which comes standard on all models. This affordable Porsche convertible, has accumulated awards year after year, including making Car and Driver magazine&rsquo;s &ldquo;Ten Best&r
#top-a .module-wrapp .module1 {
overflow: hidden;
}
.allmode-img img {
border: 1px solid #ffffff;
}
.allmode-img {
@drmmr763
drmmr763 / make-well.less
Created February 3, 2014 21:56
Bootstrap 3 doesn't have a make-well option which is useful if you want to generate wells of different color. Unfortunately just use .well() in your class with a background color doesn't work either (too many background colors to override). So this makes it well! (or, er, better).
// copied from bootstrap 3's original .well class but made it reusable to produce additional wells.
.make-well(@bg-color) {
min-height: 20px;
padding: 19px;
margin-bottom: 20px;
background-color: @bg-color;
border: 1px solid darken(@bg-color, 7%);
border-radius: @border-radius-base;
.box-shadow(inset 0 1px 1px rgba(0,0,0,.05));
@drmmr763
drmmr763 / Gruntfile.js
Created January 18, 2014 23:45
Using Bower & Grunt
//Gruntfile
module.exports = function(grunt) {
//Initializing the configuration object
grunt.initConfig({
less: {
development: {
options: {
compress: true
},
files: {
@drmmr763
drmmr763 / navbar-helper.js
Created January 16, 2014 23:19
Some helpful jquery to solve the Bootstrap 2 sub menu bug on mobile devices.
<script type="text/javascript">
jQuery().ready(function () {
jQuery(".navbar-nav li a").each(function(n) {
var $parent = jQuery(this).parent();
if ($parent.hasClass('parent')) {
jQuery(this).toggle(
function() {
$parent.addClass('open');
}, function() {
$parent.removeClass('open');
@drmmr763
drmmr763 / semantic-columns.less
Created January 4, 2014 14:53
Simple little LESS function based on Twitter Bootstrap and Joomla JUI to make semantic responsive columns and rows.
/* less
*
* usage: .cohesiveMakeColumn(x,y) in a class to get the column
* for desktop size and then the column for tablet size
*/
// 768px-979px
@gridColumnWidth768: 42px;
@gridGutterWidth768: 20px;
@gridRowWidth768: (@gridColumns * @gridColumnWidth) + (@gridGutterWidth * (@gridColumns - 1));
@drmmr763
drmmr763 / versus.html
Last active December 24, 2015 08:29
Which is better?
<!-- just wondering which of these approaches is preferred in the world -->
<!-- Approach 1 : -->
<aside>
<div class="sidebar-box green">
<h5>My title</h5>
<p>my contents</p>
</div>
<div class="sidebar-box blue">
<h5>My title</h5>