Skip to content

Instantly share code, notes, and snippets.

@ZeusAFK
ZeusAFK / D.java
Created November 11, 2012 16:11
ACM-ICPC Latin American Regional - 2012 : Problem D : Different Digits
// By ZeusAFK - Opcoders Team
/*
ICPC Latin American Regional - 2012
Problem D
Different Digits
The inhabitatns of Nlogonia are very superstitious. One of their beliefs is that street house numbers tht have repeated digits bring bad luck for the residents.
@ZeusAFK
ZeusAFK / bypass.cpp
Created December 7, 2012 14:48
speed hack c++ knight online for OPK
#include "stdafx.h"
#include <Windows.h>
#include <stdio.h>
#include <iostream>
#include <stdlib.h>
#include <fstream>
#include <strsafe.h>
using namespace std;
@ZeusAFK
ZeusAFK / proxy.php
Last active December 12, 2015 06:39
Web Proxy script from zeusafk.net
<?php
if (!defined('ZEUSAFK') || ZEUSAFK != 1)
die();
define('_PROXY_VERSION', '1.0.3');
define('_CWD', dirname(__FILE__));
// Set global variables
$_protocols = array('http', 'ftp');
@ZeusAFK
ZeusAFK / index.php
Created February 23, 2013 03:17
php obfuscated
foreach( $V4cb73b6b as $V89735695 => $V68920240 )
{$V98bf7d8c=ereg_replace("([^a-zA-Z0-9_$])(".$V89735695.")([^a-zA-Z0-9_])","1".$V68920240."3",
$V98bf7d8c);}}if ($V4dd4189a) {$V98bf7d8c=ereg_replace("[ ]*", "",
$V98bf7d8c);}if ($Va7a918c1) {$V98bf7d8c=ereg_replace("[ ]{1,2}//[^]*", "",
$V98bf7d8c);$V98bf7d8c=ereg_replace("[ ]*//[^]*", "", $V98bf7d8c);}if
($Vcb30d890) {$V98bf7d8c=ereg_replace("([{};:])[ ]*", "1",
$V98bf7d8c);}$V98bf7d8c=ereg_replace("{2,20}", "", $V98bf7d8c);
$Vce55aa86=fopen($V693ed254, "w");$V809d8809=fwrite($Vce55aa86,
$V98bf7d8c);fclose
($Vce55aa86);clearstatcache();$GLOBALS["V048f0047"]+=filesize($V693ed254);}
@ZeusAFK
ZeusAFK / index_obsucated.php
Created February 23, 2013 07:18
testing code to obfuscate php scripts
<?php
error_reporting(E_ALL);
session_start();
define('_PROXY_VERSION', '1.0.3');
define('_CWD', dirname(__FILE__));
@ZeusAFK
ZeusAFK / index.html
Last active December 16, 2015 17:50
Cambiar hoja de estilo dinamicamente con jquery
<html>
<head>
<link href='style.css' rel='stylesheet' type='text/css'/>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script type='text/javascript'>
$(document).ready(function(){
$('select').change(function(){
$("link").attr('href', 'css/' + $("select[name='plantilla']").val() + '.css');
});
});
@ZeusAFK
ZeusAFK / main.java
Created July 8, 2013 16:17
subcadena mas larga
import java.util.Scanner;
public class clase2 {
static Scanner in = new Scanner(System.in);
public static void main(String[] args) {
println("Introduzca la cadena 1: ");
String c1 = in.next();
@ZeusAFK
ZeusAFK / draw.cs
Created July 16, 2013 15:39
draw points
bool down;
int[] lastPoint = new int[] { 0, 0 };
int totalPoints = 0;
private void DrawPoints(ArrayList Points, int top, int left)
{
int x = 0;
while (Points.Count > 0)
{
if (GetAsyncKeyState(32) != 0) {
MouseUp();
@ZeusAFK
ZeusAFK / Module1.vb
Created August 17, 2013 04:14
mayor de 2 numeros visual basic.net
Module Module1
' By ZeusAFK
Sub Main()
Dim a, b As Double
Console.WriteLine("Ingrese el primer numero:")
a = Console.ReadLine()
Console.WriteLine("Ingrese el segundo numero:")
b = Console.ReadLine()
If (a > b) Then
Console.WriteLine("El mayor es " + a.ToString())
@ZeusAFK
ZeusAFK / index.php
Last active December 25, 2015 11:29
Ejemplo básico de manejo de datos de checkbox en formulario html desde php.
<?php
// ZeusAFK 2013-10-13 22:34 PM.
// Aqui depende de como estes obteniendo los registros de tu base de datos,
// en este ejemplo solo uso Id y Nombre en un arreglo predefinido.
$alumnos = array(
[0,'Jorge'],
[1,'Fernando'],
[2,'Pedro'],