Skip to content

Instantly share code, notes, and snippets.

View vaneves's full-sized avatar
⚔️
I'm gladiator!

Van Neves vaneves

⚔️
I'm gladiator!
View GitHub Profile
@vaneves
vaneves / Passworder.php
Last active November 20, 2019 00:23
Password generator
<?php
class Passworder
{
const CHARS = [
'0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ',
'!#$%&()*+,-./:;<=>?[\]^_`{|}~',
'àáãâäèéêëìíîïòóõôöúùûüñýÿÀÁÃÂÄÈÉÊËÌÍÎÏÒÓÕÔÖÚÙÛÜÑÝŸ',
'§“”‘’‹›«»…¦•¶♠♣♥♦©®™£¢€¥¤æš',
];
@vaneves
vaneves / animatedSVEnemies.js
Created May 24, 2018 00:08
animatedSVEnemies.js
//=============================================================================
// AnimatedSVEnemies.js
// Version: 1.15.5.1 - The Re-Remake
//=============================================================================
var Imported = Imported || {};
Imported.AnimatedSVEnemies = true;
var Rexal = Rexal || {};
Rexal.ASVE = Rexal.ASVE || {};
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Redirecionador de Rastreio dos Correios</title>
</head>
<?php if(isset($_GET['codigo'])): ?>
<body onload="document.getElementById('form').submit()">
/**
* angular-input-masks
* Personalized input masks for AngularJS
* @version v2.4.0
* @link http://github.com/assisrafael/angular-input-masks
* @license MIT
*/
require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
/**
* br-validations
@vaneves
vaneves / XMLElement.php
Created April 10, 2016 02:15
Classe para gerar XML
<?php
class XMLElement
{
private $tag = null;
private $value = null;
private $childs = [];
private $attributes = [];
private $isRoot = true;
private $isCDATA = false;
@vaneves
vaneves / PHPator.rb
Last active October 22, 2015 12:52
PHPator - Creator of PHP classes
#!/usr/bin/env ruby
class PHPator
attr_reader :content, :properties, :namespace
attr_accessor :clazz
def initialize
@content = ""
@properties = []
end
def namespace(name)
@vaneves
vaneves / blog-detail.html
Created September 24, 2015 19:31
Blog Ninja - Blog Detail HTML
<div ng-if="post && post.id">
<h2 class="title">
<a href="#/detail/{{ post.id }}">{{ post.title }}</a>
</h2>
<p class="text-muted">Publicado em {{ post.date }}</p>
<p>{{ post.content }}</p>
</div>
<div ng-if="!post || !post.id">
<h2 class="title">Página Não Encontrada</h2>
<p>Publicação não encontrada. Ir para <a href="#/">página inicial</a>.</p>
@vaneves
vaneves / blog-list.html
Created September 24, 2015 19:24
Curso Ninja - Blog List HTML
<div ng-repeat="post in posts">
<h2 class="title">
<a href="#/detail/{{ post.id }}">{{ post.title }}</a>
</h2>
<p class="text-muted">Publicado em {{ post.date }}</p>
<p>{{ post.content }}</p>
</div>
<div ng-if="posts.length == 0">
<p>Nenhum post publicado.</p>
</div>
@vaneves
vaneves / post-add.html
Created September 24, 2015 19:02
Curso Ninja - Post Create HTML
<form ng-submit="save()">
<div class="form-group">
<label for="title">Título</label>
<input type="text" ng-model="post.title" class="form-control" id="title">
</div>
<div class="form-group">
<label for="content">Conteúdo</label>
<textarea ng-model="post.content" class="form-control" id="content" rows="5"></textarea>
</div>
<button type="submit" class="btn btn-primary">Salvar</button>
@vaneves
vaneves / post-list.html
Created September 24, 2015 18:48
Blog Ninja - Post List HTML
<a href="#/add" class="btn btn-primary">Criar</a>
<table class="table table-striped">
<thead>
<tr>
<th>Título</th>
<th>Data</th>
<th style="width: 60px;"></th>
<th style="width: 60px;"></th>
</tr>
</thead>