Skip to content

Instantly share code, notes, and snippets.

View antonioreyna's full-sized avatar

Jose Antonio Reyna Fuentes antonioreyna

View GitHub Profile
sum = 0
let sizes:[CGFloat] = [
50.0,
21.0,
50.0,
29.0,
50.0,
21.0,
50.0,
@antonioreyna
antonioreyna / responsive-media-queries.css
Created June 18, 2013 21:24
CSS: responsive media queries
/* iPhone 2G-4S (portrait and landscape) ----------- */
@media only screen
and (min-device-width : 320px)
and (max-device-width : 480px) {
/* Styles */
}
/* Smartphones (landscape) ----------- */
@media only screen
and (min-width : 321px) {
<?php
namespace App\Console\Commands;
use Illuminate\Foundation\Console\ModelMakeCommand as BaseModelMakeCommand;
use Symfony\Component\Console\Input\InputOption;
class ModelMakeCommand extends BaseModelMakeCommand
{
/**
@antonioreyna
antonioreyna / main.js
Created April 1, 2013 21:22
JavaScript: jQuery ready function
(function($){
})(jQuery);
@antonioreyna
antonioreyna / php-exclude-page-childs.php
Created February 5, 2013 19:41
PHP: WordPress exclude selected page childs from parents
<?php
$toexclude = array(21, 23);
$parents = array(13);
$exclude_list = '';
foreach ($parents as $key => $parent) {
$args=array(
'child_of' => $parent
);
$pages = get_pages($args);
@antonioreyna
antonioreyna / css-responsive.css
Created February 5, 2013 05:05
CSS: Responsive media queries
/* Smartphones (portrait and landscape) ----------- */
@media only screen
and (min-device-width : 320px)
and (max-device-width : 480px) {
/* Styles */
}
/* Smartphones (landscape) ----------- */
@media only screen
and (min-width : 321px) {