Skip to content

Instantly share code, notes, and snippets.

View vineeth030's full-sized avatar

Vineeth Vijayan vineeth030

  • BEO
  • Kochi
View GitHub Profile
@brankoajzele
brankoajzele / gist:1442434
Created December 7, 2011 11:12
Magento Google Maps Geocoding Customer Addresses
<?php
/**
* @author Branko Ajzele <[email protected]>
*/
class Inchoo_Extension_Helper_Gmap extends Mage_Core_Helper_Abstract
{
const GOOGLE_MAPS_HOST = 'maps.google.com';
const CONFIG_PATH_GOOGLE_MAPS_API_KEY = 'inchoo_google/maps/api_key';
public function getGoogleMapsApiKey()
@jeffochoa
jeffochoa / Response.php
Last active November 13, 2024 14:18
Laravel HTTP status code
<?php
// This can be found in the Symfony\Component\HttpFoundation\Response class
const HTTP_CONTINUE = 100;
const HTTP_SWITCHING_PROTOCOLS = 101;
const HTTP_PROCESSING = 102; // RFC2518
const HTTP_OK = 200;
const HTTP_CREATED = 201;
const HTTP_ACCEPTED = 202;
@Adelysnet
Adelysnet / PdfManager.php
Created March 20, 2023 14:06
Reproduce wrong header len estimation / is_file crash
<?php
namespace App\Service;
use Knp\Snappy\Pdf;
use Throwable;
class PdfManager
{
protected $pdf;