Skip to content

Instantly share code, notes, and snippets.

View mightyteja's full-sized avatar
💭
Daring And Dashing

Teja Babu S mightyteja

💭
Daring And Dashing
View GitHub Profile
@mightyteja
mightyteja / bootstrap-3-contact-form-with-validation.markdown
Created March 19, 2018 06:28
Bootstrap 3 Contact form with Validation

Bootstrap 3 Contact form with Validation

A contact form built with Bootstrap 3. Field validation with Bootstrap Validator.

A Pen by Teja Babu S on CodePen.

License.

@mightyteja
mightyteja / .htaccess
Created June 2, 2018 10:05 — forked from Zodiac1978/.htaccess
Make your Website faster - a safe htaccess way
#
# Sources:
# http://stackoverflow.com/questions/7704624/how-can-i-use-gzip-compression-for-css-and-js-files-on-my-websites
# http://codex.wordpress.org/Output_Compression
# http://www.perun.net/2009/06/06/wordpress-websites-beschleuinigen-4-ein-zwischenergebnis/#comment-61086
# http://www.smashingmagazine.com/smashing-book-1/performance-optimization-for-websites-part-2-of-2/
# http://gtmetrix.com/configure-entity-tags-etags.html
# http://de.slideshare.net/walterebert/die-htaccessrichtignutzenwchh2014
# http://de.slideshare.net/walterebert/mehr-performance-fr-wordpress
#
@mightyteja
mightyteja / .htaccess
Created June 2, 2018 18:04 — forked from joostvanveen/.htaccess
.htaccess Security
######################################################################
## Word to the wise ##
## It is best to keep your htaccess files as clean as possible ##
## and set as many specs in your Apache config as you can. ##
## Htaccess slows down Apache. ##
## Review the entire file before use, especially the TODO sections. ##
######################################################################
Options -MultiViews
Options +FollowSymLinks
@mightyteja
mightyteja / ContactForm.md
Last active June 25, 2018 11:56 — forked from patotoma/ContactForm.md
secure php contact form

Secured PHP Contact Form

<?php
  if(isset($_POST['submit'])){
    $name = htmlspecialchars(stripslashes(trim($_POST['name'])));
    $subject = htmlspecialchars(stripslashes(trim($_POST['subject'])));
    $email = htmlspecialchars(stripslashes(trim($_POST['email'])));
    $message = htmlspecialchars(stripslashes(trim($_POST['message'])));
    if(!preg_match("/^[A-Za-z .'-]+$/", $name)){
@mightyteja
mightyteja / index.html
Last active May 21, 2021 09:07
Nice Responsive Testimonial Carousel
<section>
<div class="customer-feedback">
<div class="container text-center">
<div class="row">
<div class="col-sm-offset-2 col-sm-8">
<div>
<h2 class="section-title">What Clients Say</h2>
</div>
</div><!-- /End col -->
</div><!-- /End row -->
@mightyteja
mightyteja / index.html
Created July 16, 2018 15:05
Responsive animated gallery
<div id="all">
<div id="allcontent">
<div id="maincontent">
<div class="portfolio">
<img src="http://www.claudiogomboli.com/lab/gallery/imgs/ecomm.jpg" alt="Portfolio img"><br>
<span class="txt">eCommerce . iOS Icon.</span>
<div class="ombra"></div>
</div>
<div class="portfolio">
<img src="http://www.claudiogomboli.com/lab/gallery/imgs/speaker.jpg" alt="Portfolio img"><br>