Skip to content

Instantly share code, notes, and snippets.

View eboominathan's full-sized avatar
🎯
Focusing

Boominathan Elango eboominathan

🎯
Focusing
View GitHub Profile
@eboominathan
eboominathan / camera.html
Created January 6, 2016 08:58 — forked from dhavaln/camera.html
Phonegap Camera Capture Example
<!DOCTYPE html>
<html>
<head>
<title>Capture Photo</title>
<meta name="viewport" content="width=device-width,height=device-height,initial-scale=1"/>
<script type="text/javascript" charset="utf-8" src="js/phonegap.js"></script>
<script type="text/javascript" charset="utf-8">
var pictureSource; // picture source
var destinationType; // sets the format of returned value
@eboominathan
eboominathan / wednesday_only.php
Created January 2, 2016 04:55 — forked from anonymous/wednesday_only.php
Insert only wednesday of the year
<?php
$servername = "localhost";
$username = "root";
$password = "";
$dbname = "test";
// Create connection
$conn = mysqli_connect($servername, $username, $password, $dbname);
// Check connection
@eboominathan
eboominathan / Lbs.php
Created October 12, 2015 09:31 — forked from amrishodiq/Lbs.php
PHP Code Igniter library class to get latitude & longitude, get address for specified latitude & longitude, get direction from one place to another place, and so on. Most LBS concept I implemented with PHP.
<?php
/**
* Written by Amri Shodiq.
* Do not hesitate to copy and paste this code.
* It's not embarassing.
*/
if (!defined('BASEPATH'))
exit ('No direct script access allowed');
@eboominathan
eboominathan / .htaccess
Created September 28, 2015 03:16
CI: Simple .htaccess using mod_rewrite for CodeIgniter
<IfModule mod_rewrite.c>
RewriteEngine On
# !IMPORTANT! Set your RewriteBase here and don't forget trailing and leading
# slashes.
# If your page resides at
# http://www.example.com/mypage/test1
# then use
# RewriteBase /mypage/test1/
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f