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 | |
/* | |
* Portfolio - Custom Post Type for portfolio projects | |
*/ | |
$portfolio = new Odin_Post_Type( | |
'Portfolio', // Nome (Singular) do Post Type. | |
'portfolio' // Slug do Post Type.; | |
); | |
$portfolio->set_labels( |
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"); | |
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 | |
$hook_name = 'your-hook-name'; | |
global $wp_filter; | |
error_log( print_r( $wp_filter[$hook_name] , true ) ); | |
?> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title> Título </title> | |
</head> | |
<body> | |
<script type="text/javascript" src="assets/js/meu_script.js"> | |
</script> | |
</body> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title> My Page Title </title> | |
</head> | |
<body> | |
<canvas id="game" width="800" height="600"></canvas> | |
<script type="text/javascript" src="assets/js/my_script.js"> |
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 | |
if (!current_user_can('read_private_posts') && current_time('YmdHi') < 201511171800) { | |
include (str_replace('index.php', '', $_SERVER['SCRIPT_FILENAME']).'landing/index.php'); | |
die; | |
} | |
?> |
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, | |
contexto, | |
imagem, | |
imagem_x = 0, | |
imagem_y = 0; | |
canvas = document.getElementById( "game" ); | |
contexto = canvas.getContext( "2d" ); | |
imagem = new Image(); | |
imagem.src = 'images/back.png'; |
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
# Habilitar o PHP 7.0 | |
AddHandler application/x-httpd-php70 .php | |
<IfModule mod_suphp.c> | |
suPHP_ConfigPath /opt/php70/lib | |
</IfModule> |