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
:: Name: Haste Project State | |
:: Purpose: move projects to different folders. | |
:: Author: @allysonsouza | |
:: URL: https://github.com/allysonsouza | |
:: Version: 0.0.1 | |
:: License: GPL-v2 | |
@ECHO OFF | |
SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION |
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 | |
/** | |
* Registration product add to cart | |
* Put this file in your theme under woocommerce/single-produt/add-to-cart | |
* | |
* @author Allyson Souza | |
* @package Registrations for WooCommerce/Templates | |
* @version 1.0.0 | |
*/ |
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 | |
/** | |
* Add .stl extension mime type to WordPress Media Upload | |
*/ | |
function custom_mimes( $mime_types ) { | |
//$mime_types['stl'] = 'application/vnd.epson.salt'; | |
$mime_types['stl'] = 'application/wavefront-stl'; | |
return $mime_types; | |
} | |
add_filter( 'mime_types', 'custom_mimes' ); |
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
// Enable shortcodes in text widgets | |
add_filter( 'widget_text', 'do_shortcode' ); |
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> |
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
<?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
<!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
<!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
<?php | |
$hook_name = 'your-hook-name'; | |
global $wp_filter; | |
error_log( print_r( $wp_filter[$hook_name] , true ) ); | |
?> |