Skip to content

Instantly share code, notes, and snippets.

Avatar

Jose Antonio Reyna Fuentes antonioreyna

View GitHub Profile
View Pseudo sum
sum = 0
let sizes:[CGFloat] = [
50.0,
21.0,
50.0,
29.0,
50.0,
21.0,
50.0,
View Artisan ModelMakeCommand with Custom Models Directory
<?php
namespace App\Console\Commands;
use Illuminate\Foundation\Console\ModelMakeCommand as BaseModelMakeCommand;
use Symfony\Component\Console\Input\InputOption;
class ModelMakeCommand extends BaseModelMakeCommand
{
/**
@antonioreyna
antonioreyna / responsive-media-queries.css
Created Jun 18, 2013
CSS: responsive media queries
View responsive-media-queries.css
/* 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) {
@antonioreyna
antonioreyna / main.js
Created Apr 1, 2013
JavaScript: jQuery ready function
View main.js
(function($){
})(jQuery);
@antonioreyna
antonioreyna / php-exclude-page-childs.php
Created Feb 5, 2013
PHP: WordPress exclude selected page childs from parents
View php-exclude-page-childs.php
<?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 Feb 5, 2013
CSS: Responsive media queries
View css-responsive.css
/* 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) {