Archives
Trending
Support
Login
Blender 3D Game - List all Object in Scene
Show paste
import bge
scene = bge.logic.getCurrentScene()
for x in scene.objects:
print(x)
Random Characters
Show paste
<?php
function randomString($strLen = 32)
{
// Create our character array
$chrs = array_merge(range('a', 'z'), range('A', 'Z'), range(0, 9));
b8b5af7a371f0
Show paste
#!/usr/bin/python
import sys, pygame
pygame.init()
Blender 3D Game - Remove Objects
Show paste
import bge
scene = bge.logic.getCurrentScene()
owner = bge.logic.getCurrentController().owner
Blender 3D Game - Get Distance To Object
Show paste
import bge
scene = bge.logic.getCurrentScene()
owner = bge.logic.getCurrentController().owner
ob2 = scene.objects['Sphere']
Blender 3D Game - Move then Rotate Object
Show paste
import bge
owner = bge.logic.getCurrentController().owner
z=owner.localPosition.z
PyGame - Very Basic Jumper
Show paste
#!/usr/bin/env python
#created by Kris Occhipinti (AKA Metalx1000)
#http://filmsbykris.com
#Oct. 16th 2010
#GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
BASH - Create a DVD with Chapters
Show paste
#!/bin/bash
cd /tmp
of=`date +%s`
PHP - Reverse Alpha/Numeric File Lines
Show paste
<?php
$lines = file('list.txt');
rsort($lines);
foreach ($lines as $line) {
echo "$line<br>";
PHP Reverse Sort - Lines in a File
Show paste
<?php
$lines = file ('list.txt');
$l = array_reverse ($lines);
foreach($l as $line)
{
Previous
1
2
...
2675
2676
2677
2678
2679
2679
2680
Next