Skip to content

Instantly share code, notes, and snippets.

View junioryauricasa's full-sized avatar
:octocat:
Focusing

elShunior junioryauricasa

:octocat:
Focusing
View GitHub Profile
@junioryauricasa
junioryauricasa / download-cards-responsive-grid-list-view-switcher.markdown
Created December 17, 2016 10:27
Download Cards // Responsive Grid & List View Switcher
@junioryauricasa
junioryauricasa / index.html
Created January 8, 2017 01:51
Loader as a negative delay example
<div class="loader">
<div class="row1">
<div class="left"></div>
<div class="right"></div>
</div>
<div class="row2">
<div class="left"></div>
<div class="right"></div>
</div>
<div class="row3">
@junioryauricasa
junioryauricasa / index.html
Created April 10, 2017 07:33
shopping cart
<div id="container">
<div class="box">
<img src="http://chenyiya.com/codepen/product-1.jpg" alt="pic1">
<i class="fa fa-plus"></i>
<h3 id="item-one">Beer Bottle</h3>
<p>12.99</p>
</div>
<div class="box">
<img src="http://chenyiya.com/codepen/product-2.jpg" alt="pic2">
<i class="fa fa-plus"></i>
@junioryauricasa
junioryauricasa / index.html
Created April 10, 2017 07:37
UI to Code #1: Juuce App
<div class="wrapper">
<div class="sidebar">
<div class="brand">JUUCE</div>
<div class="menu">
<ul>
<li><i class="glyph-icon flaticon-user"></i> Profile</li>
<li><i class="glyph-icon flaticon-like"></i> Wish list</li>
<li><i class="glyph-icon flaticon-like-1"></i> Why buy juuce?</li>
<li><i class="glyph-icon flaticon-vision"></i> About us</li>
<li><i class="glyph-icon flaticon-mail"></i> Contact us</li>
<?php
$user_agent = $_SERVER['HTTP_USER_AGENT'];
echo $user_agent;
function getBrowser($user_agent){
if(strpos($user_agent, 'Maxthon') !== FALSE)
return "Maxthon";
elseif(strpos($user_agent, 'SeaMonkey') !== FALSE)
return "SeaMonkey";
elseif(strpos($user_agent, 'Vivaldi') !== FALSE)
return "Vivaldi";
@junioryauricasa
junioryauricasa / .htaccess-mod_headers
Created October 12, 2017 00:35 — forked from hans2103/.htaccess-mod_headers
.htaccess rules to set cache control.
<IfModule mod_headers.c>
Header set Connection keep-alive
# Cache-control headers
# 2 HOURS
#<filesMatch "*">
Header set Cache-Control "max-age=7200, must-revalidate"
#</filesMatch>
# 480 weeks - 290304000
<?php
$username="root"; $password=""; $database="exam_codes";
$con = mysql_connect("localhost",$username,$password) or die( "Unable to Connect database");
mysql_select_db($database,$con) or die( "Unable to select database");
// Table Name that you want
// to export in csv
$ShowTable = "blogs";
$FileName = "_export.csv";
$file = fopen($FileName,"w");
@junioryauricasa
junioryauricasa / index.html
Created December 9, 2017 19:14
table style css - Tablas estilo EXCEL
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="stylesheet" type="text/css" href="excel-2000.css"/>
<link rel="stylesheet" type="text/css" href="excel-xp.css"/>
<link rel="stylesheet" type="text/css" href="excel-2003.css"/>
<link rel="stylesheet" type="text/css" href="excel-2007.css"/>
<script lang="javascript">
@junioryauricasa
junioryauricasa / PHPExcel_Basics.md
Created December 12, 2017 16:48 — forked from r-sal/PHPExcel_Basics.md
PHPExcel Notes and code snippets

Basics

Creating a new PHPExcel Object.

    $this->PHPExcel = new PHPExcel();

Working with sheets

Creating a new sheet: