Skip to content

Instantly share code, notes, and snippets.

View avuenja's full-sized avatar
🧸

Marcelo Pecin avuenja

🧸
View GitHub Profile
@avuenja
avuenja / top10
Last active August 29, 2015 14:19
Top 10 level with magic level
<table cellpadding="0" cellspacing="0" style="MARGIN-LEFT: 9px">
<tbody>
<tr background="/templates/naruto/images/homepage.png">
<td width="537" height="37">
<center>
<a style="color: yellow; font-size: 12px; text-shadow: #3d2e05 ;"> <b>Top 10</b> </a>
</center></td>
</tr>
</tbody>
</table>
@avuenja
avuenja / modal
Created April 15, 2015 15:39
Janela Modal Simples
<!DOCTYPE html>
<script src="//code.jquery.com/jquery-1.11.2.min.js"></script>
<script>
$(document).ready(function() {
$("a[rel=modal]").click(function(ev) {
ev.preventDefault();
var id = $(this).attr("href");
var alturaTela = $(document).height();
@avuenja
avuenja / fazer-backup
Last active August 29, 2015 14:19
Fazer backup database
<?php
function backup_db($host, $user, $pass, $db) {
mysql_connect($host,$user,$pass) or die(mysql_error());
mysql_select_db($db) or die(mysql_error());
$back = fopen("backup.sql","w");
$res = mysql_list_tables($db) or die(mysql_error());
while ($row = mysql_fetch_row($res)) {
$table = $row[0];
@avuenja
avuenja / character-view
Created April 23, 2015 12:28
Character View Wono
<center>
<table height="600" background="images/character/bg.png" border="0" width="500">
<tbody>
<tr>
<td colspan="5" height="68">
<center>
<table height="42" background="images/character/name.png" width="201">
<tbody>
<tr>
<td><font color="white" size="2"><b>
REASSIGN OWNED BY old_owner TO new_owner;
@avuenja
avuenja / youtube.php
Created May 27, 2015 20:20
link youtube automatico
<?php
$video = "https://www.youtube.com/watch?v=1tnYpkt5G2g"; // $video recebe o valor da url do youtube (link)
preg_match('/(v\/|\?v=)([^&?\/]{5,15})/', $video, $x); // Faz o preg_match para retirar caracters
?>
<!-- Exibe o video -->
<object width="560" height="315">
<param name="movie" value="//www.youtube.com/v/<?php print end($x); ?>?hl=pt_BR&amp;version=3&amp;rel=0"></param>
<param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param>
<embed src="//www.youtube.com/v/<?php print end($x); ?>?hl=pt_BR&amp;version=3&amp;rel=0" type="application/x-shockwave-flash" width="560" height="315" allowscriptaccess="always" allowfullscreen="true"></embed>
</object>
@avuenja
avuenja / xpoke
Created June 3, 2015 12:13
xpoke
Entrando no mundo GitHub - Windows
1 - Caso não tenha uma conta no github crie uma aqui: https://github.com/join para seguir com o tutorial
2 - Baixar o aplicativo: https://windows.github.com/ e instalar
3 - Fazer o login com a sua conta do GitHub, Configure o aplicativo e desmarque qualquer coisa que o aplicativo marcar na parte de repositories.
4 - Clique no "+", e selecione Clone.
regsvr32 "filename".dll
@avuenja
avuenja / mask-coordenates.js
Created December 4, 2015 17:18
Coordenates "mask"
var coords = document.querySelectorAll('[data-coordenada]');
var length = coords.length;
for (var i = 0; i < length; i++) {
coords[i].addEventListener('keyup', function(event) {
var value = this.value.replace(/[^\d-\.]/g, "");
this.value = value;
})
}
@avuenja
avuenja / Laravel - Symlink
Created September 25, 2019 00:56
Storage link - Laravel