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 | |
/* Este é o conteúdo de uma template page a ser exibido por uma página com slug = 'portfolio', tal como o post_type | |
A criação do CPT está com o argumento 'has_archive' => false, e a template page funciona normalmente, exceto quando é necessário | |
exibir uma página que não seja a primeira: www.meusite.com.br/portfolio/page/2 etc. | |
*/ | |
//Pagination | |
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1; |
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
var App = { | |
cols: 3, | |
init: function() { | |
var siblings = []; | |
for(var i = 0; i < this.stage.rows; i++) { | |
siblings[i] = []; | |
} | |
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 | |
/** | |
* Return an associative array with name and code of the icon from the icon font given in $path argument | |
* | |
* @version 0.0.1 | |
* | |
* @return array Associative array, in the form [name] => [code] of the icon font | |
*/ | |
function icon_array( $path ) { |
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
(function () { | |
'use strict'; | |
/* | |
* ImageRect | |
*/ | |
function ImageRect() { | |
this.sx = 3584; //source x | |
this.sy = 0; //source y | |
this.sw = 512; //source width |
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 | |
/** | |
* Odin_Metabox class. | |
* | |
* Built Metaboxs. | |
* | |
* @package Odin | |
* @category Metabox | |
* @author WPBrasil | |
* @version 2.1.4 |
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 | |
public function create_post_type() { | |
$labels = array( | |
'name' => 'Archives', | |
'singular_name' => 'Archive', | |
'menu_name' => 'Archives', | |
'name_admin_bar' => 'Archives', | |
'add_new' => 'Add New', | |
'add_new_item' => 'Add New Archive', | |
'new_item' => 'New Archive', |
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 | |
global $wp_styles; | |
$num = count($wp_styles->queue); | |
for( $i = 0; $i < $num; $i++){ | |
if( $wp_styles->queue[$i] != 'admin-bar' ){ | |
unset($wp_styles->queue[$i]); | |
} | |
} |
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 | |
/** | |
* Return the theme images directory. | |
* | |
* @package Theme | |
* @since 1.0.0 | |
* | |
* @return string Theme assets/images directory. | |
*/ | |
function theme_imgs() { |
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
VBoxManage list runningvms |
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
var canvas; | |
var contexto; | |
var naveX = 400; | |
var naveY = 400; | |
function init() { | |
canvas = document.getElementById("game"); | |
contexto = canvas.getContext('2d'); | |
nave = document.getElementById("nave"); | |
OlderNewer