Skip to content

Instantly share code, notes, and snippets.

View mykehsd's full-sized avatar

Myke Hines mykehsd

View GitHub Profile
(
[created_at] => Wed May 24 17:12:16 +0000 2017
[id] => 867428045895979008
[id_str] => 867428045895979008
[text] => Very constructive bilateral meeting with US President @realDonaldTrump & the Belgian Government.#POTUSAbroad… https://t.co/yMwaUoMWBY
[truncated] => 1
[entities] => Array
(
[hashtags] => Array
(
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
SELECT `e`.*,
`price_index`.`price`,
`price_index`.`tax_class_id`,
`price_index`.`final_price`,
IF(price_index.tier_price IS NOT NULL, Least(price_index.min_price,
price_index.tier_price),
price_index.min_price) AS `minimal_price`,
`price_index`.`min_price`,
`price_index`.`max_price`,
`price_index`.`tier_price`,
SELECT `e`.*,
`price_index`.`price`,
`price_index`.`tax_class_id`,
`price_index`.`final_price`,
IF(price_index.tier_price IS NOT NULL, Least(price_index.min_price,
price_index.tier_price),
price_index.min_price) AS `minimal_price`,
`price_index`.`min_price`,
`price_index`.`max_price`,
`price_index`.`tier_price`,
@mykehsd
mykehsd / gist:e0d69f3bb38732909640
Created May 22, 2014 18:33
Dumping memcache keys
<?php
$server = "localhost";
$port = 11211;
function sendMemcacheCommand($server,$port,$command){
$s = @fsockopen($server,$port);
if (!$s){
die("Cant connect to:".$server.':'.$port);
<html>
<head>
<script src="http://cdn.jquerytools.org/1.2.7/full/jquery.tools.min.js"></script>
</head>
<body>
<div id="fb-root"></div>
<fb:login-button show-faces="true" width="200" max-rows="1"></fb:login-button>
<script>
/**
* This script simulates a single sku invoice.
* It shouldn't be possible via pbridge/payflowpro
* but the service_order object allows it
*/
print "Enter orderid: ";
$orderId= trim(fgets(STDIN));
$order = Mage::getModel('sales/order');
@mykehsd
mykehsd / gist:2890687
Created June 7, 2012 18:41
Checkout
Fatal error: Class 'ResourceBundle' not found in /content/vespolina-sandbox/vendor/symfony/symfony/src/Symfony/Component/Locale/Locale.php on line 46 Call Stack: 0.0002 643640 1. {main}() /content/vespolina-sandbox/web/app_dev.php:0 0.0280 5998104 2. Symfony\Component\HttpKernel\Kernel->handle() /content/vespolina-sandbox/web/app_dev.php:24 0.0665 9883864 3. Symfony\Bundle\FrameworkBundle\HttpKernel->handle() /content/vespolina-sandbox/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:193 0.0665 9885104 4. Symfony\Component\HttpKernel\HttpKernel->handle() /content/vespolina-sandbox/app/cache/dev/classes.php:5699 0.0665 9885104 5. Symfony\Component\HttpKernel\HttpKernel->handleRaw() /content/vespolina-sandbox/app/cache/dev/classes.php:4829 1.2779 21222568 6. call_user_func_array() /content/vespolina-sandbox/app/cache/dev/classes.php:4865 1.2779 21222816 7. Vespolina\StoreBundle\Controller\CheckoutController->checkoutAction() /content/vespolina-sandbox/app/cache/dev/classes.php:4865 1.3541 2184
@mykehsd
mykehsd / gist:2713015
Created May 16, 2012 18:57
Recess not flagging error?
Node configuration:
recess@1.0.4 /usr/local/lib/node_modules/recess
├── colors@0.6.0-1
├── underscore@1.3.3
├── less@1.3.0
└── nopt@1.0.10 (abbrev@1.0.3)
css/fat.css:
#js-Test {
width: 0px;
@mykehsd
mykehsd / gist:1243518
Created September 26, 2011 21:52
Get Catalog
foreach ($client->call($sessionId, 'catalog_product.list', array( '', $storeId)) as $product)
{
$data = array(
'name' => $product['name'],
'price' => $product['price'],
);
// Get images
$images = $client->call($sessionID, 'catalog_product_attribute_media.list', $product['product_id']);