This file contains 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 | |
set_time_limit(0); | |
/*---------------------------------------------------+ | |
| mysqldump.php | |
+----------------------------------------------------+ | |
| Copyright 2006 Huang Kai | |
| [email protected] | |
| http://atutility.com/ | |
+----------------------------------------------------+ | |
| Released under the terms & conditions of v2 of the |
This file contains 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 | |
/** | |
* An helper file for Laravel 4, to provide autocomplete information to your IDE | |
* Generated for Laravel 4.2.8 on 2014-08-26. | |
* | |
* @author Barry vd. Heuvel <[email protected]> | |
* @see https://github.com/barryvdh/laravel-ide-helper | |
*/ | |
namespace { |
This file contains 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
<script> | |
function submitAllForm() { | |
$('form').each(function (index, value) { | |
//iteration | |
var $form = $(this); | |
var form_id=$form.attr("id"); | |
if(form_id!='client_details'&&form_id!='hvac'&&form_id!='bms'&&form_id!='refrigeration_equipment'&&form_id!='lighting'){ | |
$.post($form.attr("action"), $form.serialize(), function (response) { | |
$form.attr("action", "<?php echo base_url('admin/clientDetailsUpdate');?>"); | |
<?php if($this->uri->segment(2)=='clientDetailsAdd'){?> |
This file contains 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 | |
/** | |
* Created by AppzCoder. | |
* User: SOHEL AMIN | |
* Date: 10/30/2014 | |
* Time: 1:20 AM | |
* URL: www.appzcoder.com | |
*/ | |
class Database { |
This file contains 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
// By Sohel Amin www.sohelamin.com or www.appzcoder.com | |
$(function() { | |
// Find all YouTube videos | |
var $allVideos = $("iframe[src^='http://www.youtube.com']"), | |
// The element that is fluid width | |
$fluidEl = "div.youtube-wrapper"; | |
// Figure out and save aspect ratio for each video | |
$allVideos.each(function() { | |
$(this) | |
.data('aspectRatio', this.height / this.width) |
This file contains 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
<html> | |
<head> | |
<title>reCAPTCHA demo: Simple page</title> | |
<script src="https://www.google.com/recaptcha/api.js" async defer></script> | |
</head> | |
<body> | |
<form action="?" method="POST"> | |
<div class="g-recaptcha" data-theme="light" data-sitekey="<YOUR_SITE_KEY>" style="transform:scale(0.77);transform-origin:0 0"></div> | |
<br/> | |
<input type="submit" value="Submit"> |
This file contains 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> | |
<html> | |
<header> | |
<title>Stick Header</title> | |
<style> | |
.stick-header { | |
width: 100%; | |
z-index: 99999; | |
position: fixed; | |
} |
This file contains 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
Date.prototype.addHours = function(h){ | |
this.setHours(this.getHours()+h); | |
return this; | |
} | |
var timeStamp = new Date().addHours(-6); | |
function getBanglaDateAndMonth() { | |
var hours = timeStamp.getHours(); | |
var date = timeStamp.getDate(); |
This file contains 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 | |
/* | |
|-------------------------------------------------------------------------- | |
| Application Routes | |
|-------------------------------------------------------------------------- | |
| | |
| Here is where you can register all of the routes for an application. | |
| It's a breeze. Simply tell Laravel the URIs it should respond to | |
| and give it the controller to call when that URI is requested. |
This file contains 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 | |
/** | |
* Codes collected from http://en.wikipedia.org/wiki/List_of_HTTP_status_codes | |
**/ | |
$http_status_codes = array( | |
100 => 'Informational: Continue', | |
101 => 'Informational: Switching Protocols', | |
102 => 'Informational: Processing', | |
200 => 'Successful: OK', |
OlderNewer