Skip to content

Instantly share code, notes, and snippets.

View ghassani's full-sized avatar

Gassan Idriss ghassani

  • Miva Inc
  • San Diego, CA
View GitHub Profile
@steveosoule
steveosoule / miva-google-shopping-feed.html
Created March 25, 2014 19:00
Miva Google Shopping Feed
<!--
FROM: https://gist.github.com/BrennanMiva/9cb20acb4be4d07bd51d
Some things to note:
- The feed can take a long time to run if you have a lot of product. You may have to increase your miva timeout.
- This example does not use variants. If you needed variants exported you could add in toolkit variantarry function but this will add to the overall time the feed takes to run.
- You’ll want to limit this page by IP address to prevent bots or unauthorized people from hitting it.
- This is setup to output a file to the web root + whatever folder you define in the filepath variable
- The script first checks for the existence of the file. It will delete it and create a new one every time the page is hit.
- This page uses the sitemap item to iterate though all products of the site.
-->
@TomByrne
TomByrne / MultiExporter.jsx
Last active March 19, 2024 10:12
An Illustrator script for exporting layers and/or artboards into separate files (PNG8 / PNG24 / EPS / PDF / SVG / JPG / FXG).See http://www.tbyrne.org/export-illustrator-layers-to-svg-files
// MultiExporter.jsx
// Version 0.1
// Version 0.2 Adds PNG and EPS exports
// Version 0.3 Adds support for exporting at different resolutions
// Version 0.4 Adds support for SVG, changed EPS behaviour to minimise output filesize
// Version 0.5 Fixed cropping issues
// Version 0.6 Added inner padding mode to prevent circular bounds clipping
//
// Copyright 2013 Tom Byrne
// Comments or suggestions to tom@tbyrne.org
@loonies
loonies / 1_phpunit-api.md
Last active January 19, 2024 07:34
PHPUnit Cheat Sheet

PHPUnit API reference

  • version 3.6

TODO

Check those constraints:

$this-&gt;anything()