Skip to content

Instantly share code, notes, and snippets.

@arodu
arodu / .htaccess
Created July 28, 2016 13:37
Quitar el index.php en las url de CodeIgniter
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>
@ben-albon
ben-albon / php5.6-pgsql.Dockerfile
Last active June 7, 2025 03:48
Docker PHP Image with PostgreSQL Driver
FROM php:5.6-apache
RUN apt-get update && apt-get install -y libpq-dev && docker-php-ext-install pdo pdo_pgsql
COPY src/ /var/www/html
@Flyer53
Flyer53 / index.html
Last active December 18, 2019 09:32 — forked from insin/index.html
JavaScript function to export HTML table to MS Excel sheet
<!DOCTYPE html>
<html>
<head>
<title>tableToExcel Demo</title>
<script src="tableToExcel.js"></script>
</head>
<body>
<h1>tableToExcel Demo</h1>
<p>Exporting the W3C Example Table</p>
@georgeOsdDev
georgeOsdDev / google_login.html
Created November 5, 2014 09:12
google login by javascript
<!DOCTYPE html>
<html>
<head>
<title>Google login example</title>
<script src="https://apis.google.com/js/client:platform.js" async defer></script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<style media="screen">
h3 {
color:green;
}
@hofmannsven
hofmannsven / README.md
Last active December 17, 2025 09:10
SCSS Cheatsheet
@trajakovic
trajakovic / BootstrapFormHelper.php
Last active December 16, 2018 18:18
This file is taken from https://github.com/CCadere/CakePHP-Forms-Bootstrap-2.3-Helper/blob/master/View/Helper/BootstrapFormHelper.php, and slightly modified/extended. Added support for has-error bs3 validation error class.
<?php
/**
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
*
* Licensed under The MIT License
*
* Copyright (c) La Pâtisserie, Inc. (http://patisserie.keensoftware.com/)
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
App::uses('FormHelper', 'View/Helper');
@insin
insin / index.html
Last active October 29, 2024 01:21
Export a <table> to Excel - http://bl.ocks.org/insin/1031969
<!DOCTYPE html>
<html>
<head>
<title>tableToExcel Demo</title>
<script src="tableToExcel.js"></script>
</head>
<body>
<h1>tableToExcel Demo</h1>
<p>Exporting the W3C Example Table</p>