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
private Bounds bounds; | |
void Start () | |
{ | |
bounds = new Bounds (transform.position, Vector3.one); | |
Renderer[] renderers = GetComponentsInChildren<Renderer> (); | |
foreach (Renderer renderer in renderers) | |
{ | |
bounds.Encapsulate (renderer.bounds); |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Net; | |
using System.IO; | |
using System.Drawing; | |
namespace BasicReq | |
{ |
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
#!/bin/sh | |
GCC_VER=4.5.2 | |
wget -O /tmp/gcc-$GCC_VER.tar.bz2 ftp://ftp.gnu.org/gnu/gcc/gcc-$GCC_VER/gcc-$GCC_VER.tar.bz2 | |
tar jxvf /tmp/gcc-$GCC_VER.tar.bz2 | |
cd gcc-$GCC_VER | |
mkdir -p $HOME/opt/gcc/gcc-$GCC_VER | |
./configure --prefix=$HOME/opt/gcc/gcc-$GCC_VER --with-mpc | |
CPUCOUNT=`grep processor /proc/cpuinfo | wc -l` | |
make -j$CPUCOUNT |
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
// Asynchronous Client Socket Example | |
// http://msdn.microsoft.com/en-us/library/bew39x2a.aspx | |
using System; | |
using System.Net; | |
using System.Net.Sockets; | |
using System.Threading; | |
using System.Text; | |
// State object for receiving data from remote device. |
NewerOlder