This file contains hidden or 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
#NoEnv | |
/* | |
Usage: | |
LoadOBJ(A_ScriptDir . "\Mesh.obj") | |
*/ | |
LoadOBJ(ByRef Mesh,ObjectName) | |
{ | |
VerticesIndex := 1, TexCoordsIndex := 1, VertexNormalsIndex := 1 |
This file contains hidden or 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
#NoEnv | |
/* | |
Search := ForumSearch("","","Uberi",2) ;search the "Scripts & Functions" forum for topics by Uberi | |
TopicList := "" | |
For Index, Result In Search | |
{ | |
If (Result.Author = "Uberi") | |
TopicList .= Result.Title . "`n" |
This file contains hidden or 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
#NoEnv | |
A := "1.010" | |
B := "1.02" | |
Value := NaturalCompare(A,B) | |
If Value = -1 | |
MsgBox, %A% < %B% | |
Else If Value = 1 | |
MsgBox, %A% > %B% | |
Else |
This file contains hidden or 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
raycast3D = function(pos, dir, callback) | |
local base = {x=math.floor(pos.x), y=math.floor(pos.y), z=math.floor(pos.z)} | |
local stepx, stepy, stepz = 0, 0, 0 | |
local componentx, componenty, componentz = 0, 0, 0 | |
local intersectx, intersecty, intersectz = 0, 0, 0 | |
if dir.x == 0 then | |
intersectx = math.huge | |
elseif dir.x > 0 then | |
stepx = 1 |
This file contains hidden or 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
Search := "site:autohotkey.net/~Uberi filetype:ahk" | |
OutputPath := A_ScriptDir . "\CacheFiles" | |
Search := "http://www.google.com/search?q=" . URLEncode(Search) | |
Loop | |
{ | |
SearchResult := Get(Search) | |
FoundPos := 1 | |
While, FoundPos := RegExMatch(SearchResult,"S)<a href=""([^""]*)""[^>]*>Cached</a>",Match,FoundPos) |
This file contains hidden or 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
#NoEnv | |
SetBatchLines, -1 | |
Gui, Font, s16, Arial | |
Gui, Add, Edit, x10 y10 w450 h30 vPath gUpdate | |
Gui, Add, Button, x460 y10 w30 h30 gSelectFile, ... | |
Gui, Font, s12, Courier New | |
Gui, Add, Edit, x10 y50 w480 h340 vCode ReadOnly -Wrap, <Output> | |
Gui, Show, w496 h398, AutoHotkey Decompiler |
This file contains hidden or 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
from scene import * | |
import sound | |
class MyScene (Scene): | |
def setup(self): | |
# This will be called before the first frame is drawn. | |
self.root_layer = Layer(self.bounds) | |
self.bullets = {} |
This file contains hidden or 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 uuid, BaseHTTPServer, select, types, webbrowser, editor, os, urllib | |
from SimpleHTTPServer import SimpleHTTPRequestHandler | |
try: | |
from cStringIO import StringIO | |
except ImportError: | |
from StringIO import StringIO | |
global mobile_config_str | |
mobile_config_str = '' |
This file contains hidden or 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 math | |
def permutation_count(k, n): | |
"Computes the number of k-element permutations in a sequence of length n." | |
return math.factorial(n) / math.factorial(n - k) |
This file contains hidden or 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
;AHK v1 | |
#NoEnv | |
/* | |
MsgBox % BinaryToText(Temp1 := TextToBinary("Test")) . "`n" . Temp1 | |
MsgBox % BinaryToNumber(Temp1 := NumberToBinary(1234)) . "`n" . Temp1 | |
*/ | |
TextToBinary(ByRef InputText) | |
{ |
OlderNewer