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> | |
<title>Pangramak</title> | |
<style type="text/css"> | |
textarea | |
{ | |
width: 90%; | |
min-height: 200px; | |
} |
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 | |
$params = array | |
( | |
'host' => '127.0.0.1', | |
'port' => 21, | |
'user' => 'ftpuser', | |
'passwd' => 'ftpuser' | |
); | |
$conn_id = ftp_connect($params['host'], $params['port']); | |
$login_result = ftp_login($conn_id, $params['user'], $params['passwd']); |
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 | |
/* | |
<!-- validator.txt content --> | |
<form action="archivo.php" method="get"> | |
<input id="aa" type="text" name="nombre" value="buscar" /> | |
<input id="dd" type="submit" value="buscar" /> | |
</form> | |
*/ | |
$text = file_get_contents('validator.txt'); |
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 | |
/* | |
su | |
aptitute install subversion | |
exit | |
*/ | |
$params = array | |
( | |
'revision' => 100, | |
'user' => 'zital', |
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 getPagination($page = 1, $amount = 10) | |
{ | |
/* | |
1 -> 10 | 0 -> 9 | |
2 -> 10 | 10 => 19 | |
3 -> 10 | 20 => 29 | |
4 -> 10 | 30 => 39 | |
*/ | |
$page = intval($page); |
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 bytes = 1028653056; | |
//var bytes = 28653056; | |
//var bytes = 1; | |
var types = ['Bytes', 'KiloBytes', 'MegaBytes', 'GigaBytes']; | |
var result; | |
var index; | |
for(var i=0;i<types.length;i++) | |
{ | |
var z = 1; |
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
(function() | |
{ | |
function md5cycle(x, k) | |
{ | |
var a = x[0], b = x[1], c = x[2], d = x[3]; | |
a = ff(a, b, c, d, k[0], 7, -680876936); | |
d = ff(d, a, b, c, k[1], 12, -389564586); | |
c = ff(c, d, a, b, k[2], 17, 606105819); | |
b = ff(b, c, d, a, k[3], 22, -1044525330); |
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
function isValidDate(data) | |
{ | |
var m = data.match(/^([0-9]{2})\/([0-9]{2})\/([0-9]{4})\ ([0-9]{2})\:([0-9]{2})\:([0-9]{2})$/); | |
if(m!=null) | |
{ | |
var o = | |
{ | |
d: m[1], | |
m: parseInt(m[2])-1, | |
Y: m[3], |
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
#!/usr/bin/python2 | |
# -*- coding: utf-8 -*- | |
# | |
# pip install TwitterAPI | |
from TwitterAPI import TwitterAPI | |
from os import path | |
from os import listdir | |
from random import randint | |
from sys import exit |
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 | |
$folder = '/home/zital'; | |
$r = scandirr($folder, array('.', '..', '.svn')); | |
print_r($r); | |
function scandirr($folder, $deny = array()) | |
{ | |
if(is_dir($folder)) |