Skip to content

Instantly share code, notes, and snippets.

View mattisbusycom's full-sized avatar

Matthew M Kaufman mattisbusycom

View GitHub Profile
spclopsinc@matt-Lenovo-Edge-15:~$ ./app.edgarreader.com
ls
Linux so-edgar 3.14-0.bpo.1-amd64 #1 SMP Debian 3.14.7-1~bpo70+1 (2014-06-21) x86_64
________ ______ ______ _ _______ _______ __
|_ __ |_ _ `. .' ___ | / \ |_ __ \ |_ __ \ | ]
| |_ \_| | | `. \/ .' \_| / _ \ | |__) | | |__) | .---. ,--. .--.| | .---. _ .--.
| _| _ | | | || | ____ / ___ \ | __ / | __ / / /__\\`'_\ : / /'`\' |/ /__\\[ `/'`\]
_| |__/ |_| |_.' /\ `.___] |_/ / \ \_ _| | \ \_ _| | \ \_| \__.,// | |,| \__/ || \__., | |
|________|______.' `._____.'|____| |____|____| |___|____| |___|'.__.'\'-;__/ '.__.;__]'.__.'[___]
<?php
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE_AFL.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
+-------------------------------+------------------------------------+
| Type | Value |
+-------------------------------+------------------------------------+
| ID | 133 |
| Code | associated_models |
| Attribute-Set-ID | |
| Visible-On-Front | yes |
| Attribute-Model | |
| Backend-Model | eav/entity_attribute_backend_array |
| Backend-Table | catalog_product_entity_varchar |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<section class="post" style="overflow-y: auto; height: 533px;">
<div id="index" style="opacity: 1;">
<h4 style="display: inline">Hey! I'm Ben.</h4> I'm a young web developer living in <strong>Salt Lake City, Utah.</strong> I'm currently interesting in writing web applications using <a href="http://emberjs.com/"><img src="http://ben.kulbertis.org/logos/ember.png" alt="Ember.js" style="vertical-align: sub"></a> and <a href="http://rubyonrails.org/"><img src="http://ben.kulbertis.org/logos/RoR.png" alt="Ruby on Rails"></a>. <a href="https://github.com/emberjs/data">Ember Data</a> is frickin' sweet. I'm still a big fan of <a href="https://jquery.com/"><img src="http://ben.kulbertis.org/logos/jquery.png" alt="jQuery" class="middle"></a> though <img src="http://ben.kulbertis.org/logos/HTML5CSS3.png" alt="HTML5 &amp; CSS3"> are great and let me write less of it. <a href="http://sass-lang.com/">SASS</a>, <a href="http://less
@mattisbusycom
mattisbusycom / index.html
Created February 28, 2015 15:24
SpclOps.com | Special Operations, Solutions, Products, Hardware, Software and Services for `Observing, Orienting, Deciding, & Acting` Online // source http://jsbin.com/rexiribani
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery.min.js"></script>
<link href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js"></script>
<script src="https://openui5.hana.ondemand.com/resources/sap-ui-core.js" id="sap-ui-bootstrap" data-sap-ui-theme="sap_bluecrystal" data-sap-ui-libs="sap.m"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/require.js/2.1.14/require.js"></script>
<script src="http://yui.yahooapis.com/3.10.0/build/yui/yui.js"></script>
<meta charset="utf-8">
SET SQL_MODE = '';
SET @rownum=0;
UPDATE eav_attribute_option
LEFT JOIN (
SELECT tmp.*, @rownum:=@rownum+1 AS rank FROM (
SELECT eao.*, eaov.`value`
FROM eav_attribute_option eao
LEFT JOIN `eav_attribute_option_value` eaov ON eao.option_id=eaov.option_id AND eaov.store_id=0
WHERE attribute_id = 292
ORDER BY CAST(CAST(eaov.value AS DECIMAL(3,0)) as UNSIGNED INTEGER), eaov.value
<block type="cms/block" name="block_name">
<action method="setBlockId"><id>block_code</id></action>
</block>
{{block type="cms/block" block_id="block_code"}}
{{block type="catalog/product_list" category_id="79" template="catalog/product/list_random.phtml"}}
<?php
/** @var $collection Mage_Catalog_Model_Resource_Category_Collection */
$collection = Mage::getModel('catalog/category', array('disable_flat' => true))->getCollection();
// ... custom stuff
@mattisbusycom
mattisbusycom / index.html
Created March 5, 2015 03:17
SpclOps.com | Special Operations, Solutions, Products, Hardware, Software and Services for `Observing, Orienting, Deciding, & Acting` Online // source http://jsbin.com/rexiribani
<!DOCTYPE html>
<html>
<head>
<link href="http://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
<script src="http://code.jquery.com/jquery.min.js"></script>
<link href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js"></script>
<script src="https://openui5.hana.ondemand.com/resources/sap-ui-core.js" id="sap-ui-bootstrap" data-sap-ui-theme="sap_bluecrystal" data-sap-ui-libs="sap.m"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/require.js/2.1.14/require.js"></script>
<script src="http://yui.yahooapis.com/3.10.0/build/yui/yui.js"></script>