This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* ****************************************************************** */ | |
| /* OSM BRIGHT for Imposm */ | |
| /* ****************************************************************** */ | |
| /* For basic style customization you can simply edit the colors and | |
| * fonts defined in this file. For more detailed / advanced | |
| * adjustments explore the other files. | |
| * | |
| * GENERAL NOTES | |
| * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @import "compass/css3/images"; | |
| // CSS-only multi-line ellipsis with generated content | |
| // yields `position:relative`, so remember to declare an eventual `position:absolute/fixed` *after* including this mixin | |
| @mixin limitLines( | |
| $maxLinesPortrait, // Mandatory: The number of lines after which the clipping should take action. | |
| $maxLinesLandscape: $maxLinesPortrait, // You may provide a different line limit for landscape orientation. | |
| // Note that 'portrait' is our default orientation. However, if you omit $maxLinesLandscape, | |
| // the value of $maxLinesPortrait is used for whatever orientation (that is, without a media query). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!doctype html> | |
| <title>Site Maintenance</title> | |
| <style> | |
| body { text-align: center; padding: 150px; } | |
| h1 { font-size: 50px; } | |
| body { font: 20px Helvetica, sans-serif; color: #333; } | |
| article { display: block; text-align: left; width: 650px; margin: 0 auto; } | |
| a { color: #dc8100; text-decoration: none; } | |
| a:hover { color: #333; text-decoration: none; } | |
| </style> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| const PATTERN_RFC3986 = '~^ | |
| (?<scheme>[a-z][a-z0-9+-\.]*) | |
| :// | |
| (?: | |
| (?<userinfo> | |
| ([a-z0-9\-\._\~!\$&\'()*+,;=:]|%[0-9a-f]{2})* | |
| )@ # *( unreserved / pct-encoded / sub-delims / ":" ) | |
| )? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php namespace App\Http\Controllers; | |
| use Illuminate\Http\Request; | |
| trait RestControllerTrait | |
| { | |
| public function index() | |
| { | |
| $m = self::MODEL; | |
| return $this->listResponse($m::all()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Empty relevant tables | |
| DELETE FROM sales_flat_creditmemo; | |
| DELETE FROM sales_flat_invoice; | |
| DELETE FROM sales_flat_order; | |
| DELETE FROM sales_flat_quote; | |
| DELETE FROM sales_flat_shipment; | |
| DELETE FROM customer_entity; | |
| # Reset increment_ids | |
| # Beware of store_ids when using multiple stores |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // This assumes you have the Twilio PHP Helper library | |
| require 'Services/Twilio.php'; | |
| // This is a file with my Account Sid and AuthToken | |
| include 'credentials.php'; | |
| $client = new Services_Twilio($accountsid, $authtoken); | |
| /* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| define( 'USERNAME', 'new.user' ); | |
| define( 'PASSWORD', 'password' ); | |
| define( 'FIRSTNAME', 'Excited' ); | |
| define( 'LASTNAME', 'Croc' ); | |
| define( 'EMAIL', 'new.user@magento.com' ); | |
| include_once( 'app/Mage.php' ); | |
| Mage::app( 'admin' ); | |
| try { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* | |
| * Converts CSV to JSON | |
| * Example uses Google Spreadsheet CSV feed | |
| * csvToArray function I think I found on php.net | |
| */ | |
| header('Content-type: application/json'); | |
| // Set your CSV feed |
OlderNewer