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 perlin::onAdd(%this) | |
{ | |
%this.pl = "151160\t137\t91\t90\t15\t131\t13\t201\t95\t96\t53\t194\t233\t7\t225\t140\t36\t103\t30\t69\t142\t8\t99\t37\t240\t21\t10\t23\t190\t6\t148\t247\t120\t234\t75\t0\t26\t197\t62\t94\t252\t219\t203\t117\t35\t11\t32\t57\t177\t33\t88\t237\t149\t56\t87\t174\t20\t125\t136\t171\t168\t68\t175\t74\t165\t71\t134\t139\t48\t27\t166\t77\t146\t158\t231\t83\t111\t229\t122\t60\t211\t133\t230\t220\t105\t92\t41\t55\t46\t245\t40\t244\t102\t143\t54\t65\t25\t63\t161\t1\t216\t80\t73\t209\t76\t132\t187\t208\t89\t18\t169\t200\t196\t135\t130\t116\t188\t159\t86\t164\t100\t109\t198\t173\t186\t3\t64\t52\t217\t226\t250\t124\t123\t5\t202\t38\t147\t118\t126\t255\t82\t85\t212\t207\t206\t59\t227\t47\t16\t58\t17\t182\t189\t28\t42\t223\t183\t170\t213\t119\t248\t152\t2\t44\t154\t163\t70\t221\t153\t101\t155\t167\t43\t172\t9\t129\t22\t39\t253\t19\t98\t108\t110\t79\t113\t224\t232\t178\t185\t112\t104\t218\t246\t97\t228\t251\t34\t242\t193\t238\t210\t144\t12\t191\t179\t162\t241\t81\t51\t145\t235\t249\t14\t239\t1 |
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 strCap(%string) | |
{ | |
%c = getWordCount(%string); | |
for(%i=0;%i<%c;%i++) | |
{ | |
%w = getWord(%string,%i); | |
%l = strLen(%w); | |
if(%l > 1) | |
%string = setWord(%string,%i,strUpr(getSubStr(%w,0,1)) @ getSubStr(%w,1,%l-1)); | |
else |
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
import sys,decimal,os,math,Image | |
def convert(input,output,offset,angle,brickName,color): | |
global posCount,uvCount,normalCount,posCache,uvCache,normalCache,brickCache,currentTex | |
try: | |
input = open(input,"r") | |
lines = input.readlines() | |
input.close() | |
except: | |
return | |
offset = str(str(decimal.Decimal(offset[0]) * 2) + " " + str(decimal.Decimal(offset[1]) * 2) + " " + str(decimal.Decimal(offset[2]) * decimal.Decimal("1.668"))).split() |
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
#--------> | |
# BLB Editor | |
# by Zack "Zack0Wack0" Corr | |
# Updated: 04/02/11 | |
#-------- | |
import sys,os,wx | |
from time import strftime | |
import wx.stc | |
from wx import glcanvas | |
from OpenGL.GL import * |
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
import sys,decimal | |
def convert(input,output): | |
input = open(input,"r") | |
lines = input.readlines() | |
input.close() | |
output = open(output,"w") | |
linecount = -1 | |
posCount = 0 | |
uvCount = 0 | |
normalCount = 0 |
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
""" | |
OBJ2BLB by Zack0Wack0 | |
zack0wack0.com | |
""" | |
import sys,decimal | |
vertices = [] | |
normals = [] | |
uvs = [] | |
topquads = [] | |
bottomquads = [] |
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
//These values will ping a minecraft server (I've chosen some random dedi-server here) | |
$address = "mc.pewpew.dk"; | |
$port = 25565; | |
$timeout = 3; //3 seconds before giving up | |
$fp = fsockopen($address,$port,$errno,$errstr,$timeout); | |
if(!$fp) | |
{ | |
echo "fail"; | |
} | |
else |
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 geolocate($ip) | |
{ | |
$dom = new DOMDocument(); | |
$dom->load("http://api.hostip.info/?ip=" . $ip); | |
$location = $dom->getElementsByTagName("countryName")->item(0)->nodeValue; | |
if($location == "" || $dom->getElementsByTagName("countryAbbrev")->item(0)->nodeValue == "XX") | |
$location = "N/A"; | |
return $location; | |
} |
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 | |
if(count($_GET) <= 0 || (!isSet($_GET[h]) && !isSet($_GET[a])) || $_GET["h"] == "") | |
{ | |
return; | |
} | |
if(!isSet($_GET[t]) && $_GET[t] != 2 && $_GET[t] != 3) | |
{ | |
$_GET[t] = 2; | |
} | |
if(!isSet($_GET[i]) || ($_GET[i] != "png" && $_GET[i] != "gif" && $_GET[i] != "jpeg")) |
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
/* | |
Module: net | |
*/ | |
import core::{vec, uint, str}; | |
/* Section: Types */ | |
/* | |
Tag: ip_addr |
OlderNewer