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
LambdaBook-Pro% HOMEBREW_MAKE_JOBS=1 VERBOSE=1 brew install python3 --with-gcc 2>&1 | |
==> Downloading http://python.org/ftp/python/3.3.1/Python-3.3.1.tar.bz2 | |
Already downloaded: /Users/michaelbartnett/Library/Caches/Homebrew/python3-3.3.1.tar.bz2 | |
tar xf /Users/michaelbartnett/Library/Caches/Homebrew/python3-3.3.1.tar.bz2 | |
==> ./configure --prefix=/usr/local/Cellar/python3/3.3.1 --enable-ipv6 --datarootdir=/usr/local/Cellar/python3/3.3.1/share --datadir=/usr/local/Cellar/python3/3.3.1/share --enable-framework=/usr/local/Cellar/python3/3.3.1/Frameworks | |
./configure --prefix=/usr/local/Cellar/python3/3.3.1 --enable-ipv6 --datarootdir=/usr/local/Cellar/python3/3.3.1/share --datadir=/usr/local/Cellar/python3/3.3.1/share --enable-framework=/usr/local/Cellar/python3/3.3.1/Frameworks | |
checking build system type... x86_64-apple-darwin10.8.0 | |
checking host system type... x86_64-apple-darwin10.8.0 | |
checking for --enable-universalsdk... no | |
checking for --with-universal-archs... 32-bit |
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
from voluptuous import Schema, Required, Range | |
schema = Schema({ | |
Required('a'): 1, | |
Required('b'): { | |
Range(min=1,max=20): [ | |
0, | |
{ | |
Required('foo'): 42 | |
}, |
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
This is free and unencumbered software released into the public domain. | |
Anyone is free to copy, modify, publish, use, compile, sell, or | |
distribute this software, either in source code form or as a compiled | |
binary, for any purpose, commercial or non-commercial, and by any | |
means. | |
In jurisdictions that recognize copyright laws, the author or authors | |
of this software dedicate any and all copyright interest in the | |
software to the public domain. We make this dedication for the benefit |
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
$ brew --config | |
HOMEBREW_VERSION: 0.9.4 | |
ORIGIN: https://github.com/mxcl/homebrew.git | |
HEAD: 9e80d57525783f0f9031455dce811601d01b9367 | |
HOMEBREW_PREFIX: /usr/local | |
HOMEBREW_CELLAR: /usr/local/Cellar | |
CPU: dual-core 64-bit penryn | |
OS X: 10.6.8-i386 | |
Xcode: 4.2 | |
GCC-4.0: build 5494 |
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
from __future__ import unicode_literals | |
import sys | |
import collections | |
import glob | |
import shutil | |
import argparse | |
from os import path | |
from hsaudiotag import auto as hsauto |
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 UnityEngine; | |
public class SampleLooper : MonoBehaviour | |
{ | |
/*///////////////////////////// /*\ | |
/////////////////////////////// | / | |
// Begin Inspector Variables // || | |
/////////////////////////////// ||_ | |
/*///////////////////////////// \_| | |
// By convention, variables that are not given an intializer are required to be set in the inspector |
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 UnityEngine; | |
using UnityEditor; | |
public class DefaultToLegacyAnimationPostprocessor : AssetPostprocessor | |
{ | |
private void OnPostprocessModel(GameObject gameObject) | |
{ | |
// We set the animation type to Legacy, which forces Unity to add | |
// Animation components by default instead of Animator/AnimationController (Mecanim) components | |
var modelImporter = this.assetImporter as ModelImporter; |
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.Linq; | |
using UnityEngine; | |
using UnityEditor; | |
public class ListPrefabChanges : EditorWindow | |
{ | |
[MenuItem("Tools/List Prefab Changes")] | |
private static void Command() | |
{ |
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; | |
class HashableWeakRef<T> : IEquatable<HashableWeakRef<T>> where T : class | |
{ | |
private WeakReference weakRef; | |
public T Target { get { return (T) weakRef.Target; } } | |
public HashableWeakRef(T target) | |
{ |
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; | |
namespace TestHashableWeakRef | |
{ | |
class MainClass | |
{ | |
public static void Main (string[] args) | |
{ |