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
// Deve ser executado no site www.registro.br | |
var $http = angular.element(document.body).injector().get('$http'); | |
function verificar() { | |
var domain = Math.random().toString(36).replace(/[^a-z]+/g, '').substr(0, 3) + '.com.br'; | |
$http.get("/cgi-bin/avail/?qr="+domain).success(function(data){ | |
if(data.available) { | |
console.log(domain + ' está disponível para registro'); | |
} | |
}); |
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
<html> | |
<body> | |
<script type="text/javascript"> | |
var screenWidth = window.innerWidth; | |
var screenHeight = window.innerHeight; | |
var floor = screenHeight * 0.8; | |
with(document.body.style) { | |
height = screenHeight + 'px'; |
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
detectCollisions: function(particle) { | |
var particles = document.getElementsByClassName('particle'); | |
var particleWidth = particle.clientWidth; | |
var particleHeight = particle.clientHeight; | |
var particleTop = parseInt(particle.style.top); | |
var particleLeft = parseInt(particle.style.left); | |
var particleBottomLeftNodeX = particleLeft; | |
var particleBottomLeftNodeY = particleTop + particleHeight; |
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 | |
function Request($a, $b, $c, $d, $e) { | |
$ch = curl_init(); | |
$exec = curl_setopt_array($ch, array( | |
CURLOPT_URL => $a, | |
CURLOPT_RETURNTRANSFER => $b, | |
CURLOPT_HEADER => 1, | |
CURLOPT_NOBODY => 0, | |
CURLOPT_COOKIE => $c, |
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
#include <a_samp> | |
#include <Dini> | |
#include <a_http> | |
#include <a_mysql> | |
/** | |
* --------------- Sistema para procurar e ouvir rádios do ShoutCast In-Game --------------- | |
* | |
* @author: Pedro P. L. Papadópolis (a.k.a Mandrakke). | |
* @copyright: Não há. |
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 | |
/* | |
"recriando a roda", função explode() | |
By: Papadópolis (@papadopolis) | |
*/ | |
function _explode($op,$str,$lim = null) { | |
$output = array(); | |
preg_match_all("/(.*?$op|.*?$)/i",$str,$vals); |
NewerOlder