Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
//https://gist.github.com/col000r/6658520 | |
//but all the hard work done by mstevenson: https://gist.github.com/mstevenson/4050130 | |
using UnityEngine; | |
using System.Collections; | |
using System.Collections.Generic; | |
public class ShuffleBag<T> : ICollection<T>, IList<T> | |
{ | |
private List<T> data = new List<T> (); |
using UnityEngine; | |
using System.Collections; | |
public class MonoBehaviourSingleton<T> : MonoBehaviour | |
where T : Component | |
{ | |
private static T _instance; | |
public static T Instance { | |
get { | |
if (_instance == null) { |
using System; | |
using UnityEngine; | |
using UnityEditor; | |
public class CreateQuadMesh : Editor { | |
[MenuItem("Assets/Create/Quad Mesh", false, 10000)] | |
public static void Create () | |
{ | |
Mesh mesh = BuildQuad (1, 1); |
using UnityEngine; | |
using System.Collections; | |
public class Reticle : MonoBehaviour | |
{ | |
public Texture2D reticle; | |
void Awake () | |
{ | |
// Set up reticle |
using UnityEngine; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Linq; | |
public class PolyPri : MonoBehaviour | |
{ | |
void Start () | |
{ | |
MeshFilter[] myMeshs = FindObjectsOfType (typeof(MeshFilter)) as MeshFilter[]; |
using UnityEngine; | |
using System.Collections; | |
using System.Collections.Generic; | |
public delegate void InputKeyDelegate (KeyCode key); | |
public delegate void InputAxisDelegate (string name,float value); | |
public class InputEvents : MonoBehaviour | |
{ |
using UnityEngine; | |
using System.Collections; | |
using System.Collections.Generic; | |
/// <summary> | |
/// Debugging tools | |
/// </summary> | |
public static class Instruments | |
{ | |
static string stopwatchName; |
using UnityEngine; | |
using UnityEditor; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Linq; | |
public class FindReferences : EditorWindow, ISerializationCallbackReceiver | |
{ | |
List<string> displayedRefs = new List<string>(); |
import os | |
from os.path import expanduser | |
import glob | |
from clarifai import rest | |
from clarifai.client import ClarifaiApi | |
app = ClarifaiApi() | |
directory = expanduser('~/pictures/clarifai/') | |
txts=glob.glob1(directory, "*.tx?") | |
jpgs=glob.glob1(directory, "*.JPG") | |
txts = [suffix.replace('.JPG.txt', '.JPG') for suffix in txts] |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000