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 lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta name="description" content=""> | |
<meta name="author" content=""> | |
<link rel="shortcut icon" href="../../assets/ico/favicon.png"> | |
<title>Starter Template for Bootstrap</title> |
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> | |
<head> | |
<title>Bootstrap 101 Template</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<!-- Bootstrap --> | |
<!-- Latest compiled and minified CSS --> | |
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css"> | |
<!-- Optional theme --> | |
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap-theme.min.css"> |
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 | |
$mystring = 'welcome !! we are learning now string function'; | |
$findme = 'learning'; | |
$pos = strpos($mystring, $findme); | |
if ($pos === false) { | |
echo "The string '$findme' was not found in the string '$mystring'"; | |
} else { | |
echo "The string '$findme' was found in the string '$mystring'"."\n"; |
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 | |
$browsers = array('firefox','chrome','safari','opera','msie'); | |
$browser = new stdClass(); | |
preg_match('#('.implode('|',$browsers).')(/| )([^ ]+)#i',$_SERVER['HTTP_USER_AGENT'],$match); | |
$browser->version = round((int)$match[3]); | |
$match = strtolower($match[1]); | |
foreach($browsers as $val) | |
{ |
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 lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta name="description" content=""> | |
<meta name="author" content=""> | |
<!-- Bootstrap core CSS --> | |
{{HTML::style('/css/bootstrap.css')}} |
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
sudo apt-get update | |
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password password root' | |
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password_again password root' | |
sudo apt-get install -y vim curl python-software-properties | |
sudo add-apt-repository -y ppa:ondrej/php5 | |
sudo apt-get update | |
sudo apt-get install -y php5 apache2 libapache2-mod-php5 php5-curl php5-gd php5-mcrypt php5-readline mysql-server-5.5 php5-mysql git-core php5-xdebug |
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 | |
// Test it : | |
// $image = new gd_gradient_fill(400,200,'ellipse','#f00','#000',0); | |
class gd_gradient_fill { | |
// Constructor. Creates, fills and returns an image |
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 type="text/javascript" src="https://js.stripe.com/v2/"></script> | |
<script> | |
(function(){ | |
var StripeBilling = { | |
init: function(){ | |
this.form = $('#checkout-wizard'); | |
this.submitButton = this.form.find('input[type=submit]'); | |
var StripeKey = $('meta[name="stripe-publishable-key"]').attr('content'); |
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
$(document).ready(function() { | |
$('#checkout-wizard') | |
.formValidation({ | |
framework: 'bootstrap', | |
icon: { | |
valid: 'fa fa-check', | |
invalid: 'fa fa-times', | |
validating: 'fa fa-refresh' | |
}, | |
fields: { |
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
<div class="row"> | |
<div class="col-sm-6"> | |
<h4 class="page-header"><i class="fa fa-credit-card"></i> Add Credit Card</h4> | |
<div class="alert alert-danger alert-dismissable" id="card-error"> | |
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button> | |
<strong class="payment-error"></strong> | |
</div> | |
<!-- Card_number Form Input --> | |
<div class="form-group"> |
OlderNewer