Skip to content

Instantly share code, notes, and snippets.

View RajeshPatadiya's full-sized avatar
🏠
Node Exposition

Rajesh Patadiya RajeshPatadiya

🏠
Node Exposition
View GitHub Profile
@RajeshPatadiya
RajeshPatadiya / sweetalert.php
Created January 23, 2017 10:39 — forked from Shibly/sweetalert.php
Show Flash Message On Codeigniter View using sweetalert
<?php if ($this->session->flashdata('flash_message')): ?>
<script>
swal({
title: "Done",
text: "<?php echo $this->session->flashdata('flash_message'); ?>",
timer: 1500,
showConfirmButton: false,
type: 'success'
});
</script>
@RajeshPatadiya
RajeshPatadiya / database.php
Created February 27, 2017 05:51 — forked from rohman/database.php
CodeIgniter ODBC Connection
<?php
$active_group = 'default';
$active_record = FALSE;
$db['default']['hostname'] = 'Driver={SQL Server};Server=127.0.0.1;Database=databasenya; Uid=sa;Pwd=sa;';
$db['default']['username'] = 'sa';
$db['default']['password'] = 'sa';
$db['default']['database'] = 'databasenya';
$db['default']['dbdriver'] = 'odbc';
$db['default']['dbprefix'] = '';
$db['default']['pconnect'] = FALSE;
@RajeshPatadiya
RajeshPatadiya / Codeigniter IIS web.config
Created March 2, 2017 12:17 — forked from wmandai/Codeigniter IIS web.config
IIS web.config for codeigniter
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Index">
<match url="^(.*)$" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
@RajeshPatadiya
RajeshPatadiya / html_for_international_calling coes.htm
Created March 17, 2017 07:23 — forked from andyj/html_for_international_calling coes.htm
HTML <select> international calling codes for each country
<!-- country codes (ISO 3166) and Dial codes. -->
<select name="countryCode" id="">
<option data-countryCode="GB" value="44" Selected>UK (+44)</option>
<option data-countryCode="US" value="1">USA (+1)</option>
<optgroup label="Other countries">
<option data-countryCode="DZ" value="213">Algeria (+213)</option>
<option data-countryCode="AD" value="376">Andorra (+376)</option>
<option data-countryCode="AO" value="244">Angola (+244)</option>
<option data-countryCode="AI" value="1264">Anguilla (+1264)</option>
<option data-countryCode="AG" value="1268">Antigua &amp; Barbuda (+1268)</option>
@RajeshPatadiya
RajeshPatadiya / MACaddressPHP
Created June 20, 2017 04:27 — forked from kheniparth/MACaddressPHP
How to find MAC address of your visitor using PHP
<?php
ob_start();
system('ipconfig /all');
$mycom=ob_get_contents();
ob_clean();
$findme = "Physical";
$pmac = strpos($mycom, $findme);
$mac=substr($mycom,($pmac+36),17);
@RajeshPatadiya
RajeshPatadiya / CI_sessions_table.sql
Created June 22, 2017 05:43 — forked from reactormade/CI_sessions_table.sql
Create CI_Sessions table
CREATE TABLE `sessions` (
`session_id` varchar(40) NOT NULL DEFAULT '0',
`ip_address` varchar(16) NOT NULL DEFAULT '0',
`user_agent` varchar(50) NOT NULL,
`last_activity` int(10) unsigned NOT NULL DEFAULT '0',
`user_data` text NOT NULL,
PRIMARY KEY (`session_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
@RajeshPatadiya
RajeshPatadiya / LICENCE SUBLIME TEXT
Created June 27, 2017 04:55 — forked from RoseySoft/LICENCE SUBLIME TEXT
Sublime Text 3 Serial key build is 3103
—– BEGIN LICENSE —–
Michael Barnes
Single User License
EA7E-821385
8A353C41 872A0D5C DF9B2950 AFF6F667
C458EA6D 8EA3C286 98D1D650 131A97AB
AA919AEC EF20E143 B361B1E7 4C8B7F04
B085E65E 2F5F5360 8489D422 FB8FC1AA
93F6323C FD7F7544 3F39C318 D95E6480
FCCC7561 8A4A1741 68FA4223 ADCEDE07
@RajeshPatadiya
RajeshPatadiya / show-clicked-row-details-right-way.md
Created July 17, 2017 07:35 — forked from umidjons/show-clicked-row-details-right-way.md
Show clicked row details. Using ng-switch, ng-click, ng-class, ng-repeat, $index.

Show clicked row details. Using ng-if, ng-repeat-start and ng-repeat-end directives

<!doctype html>
<html lang="en-US" ng-app="App">
<head>
	<meta charset="UTF-8">
	<script src="angular.js"></script>
	<title>Users</title>
I use the first
—– BEGIN LICENSE —–
Michael Barnes
Single User License
EA7E-821385
8A353C41 872A0D5C DF9B2950 AFF6F667
C458EA6D 8EA3C286 98D1D650 131A97AB
AA919AEC EF20E143 B361B1E7 4C8B7F04
@RajeshPatadiya
RajeshPatadiya / .htaccess
Created December 16, 2017 08:00 — forked from ScottPhillips/.htaccess
Common .htaccess Redirects
#301 Redirects for .htaccess
#Redirect a single page:
Redirect 301 /pagename.php http://www.domain.com/pagename.html
#Redirect an entire site:
Redirect 301 / http://www.domain.com/
#Redirect an entire site to a sub folder
Redirect 301 / http://www.domain.com/subfolder/