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
// Unity built-in shader source. Copyright (c) 2016 Unity Technologies. MIT license (see license.txt) | |
// Modifications by David Leon. Copyright (c) 2017 Lince Works SL. MIT license (see license.txt) | |
Shader "ToonDeferredShading2017" { | |
Properties { | |
_LightTexture0 ("", any) = "" {} | |
_LightTextureB0 ("", 2D) = "" {} | |
_ShadowMapTexture ("", any) = "" {} | |
_SrcBlend ("", Float) = 1 | |
_DstBlend ("", Float) = 1 |
using UnityEngine; | |
using System.Collections; | |
using System.Collections.Generic; | |
public class Dungeon : MonoSingleton<Dungeon> | |
{ | |
[System.Serializable] | |
public class Position | |
{ | |
public int x = 0; |
A collection of useful C# extension methods for the Unity engine. |
''' | |
@author AlexHuleatt | |
Generate a simple, connected dungeon. Focus is on rooms, not maze-like features. | |
Output of get_dungeon is two sets: | |
1. A set of (y,x) tuples representing the position of walls | |
2. A set of (y,x) tuples representing the walls removed to make doors | |
Guaranteed connectedness between all open cells. |
#include <windows.h> | |
#include <string> | |
#include <iostream> | |
using namespace std; | |
int main() { | |
string url; cin >> url; | |
url = "http://www.mcgov.co.uk/riddles/" + url + ".html"; | |
ShellExecute(NULL, "open", url.c_str(), "", ".", SW_SHOWNORMAL); | |
return 0; | |
} |
/*! | |
Math.uuid.js (v1.4) | |
http://www.broofa.com | |
mailto:[email protected] | |
Copyright (c) 2010 Robert Kieffer | |
Dual licensed under the MIT and GPL licenses. | |
*/ | |
/* |
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
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] |
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>(); |
using UnityEngine; | |
using System.Collections; | |
using System.Collections.Generic; | |
/// <summary> | |
/// Debugging tools | |
/// </summary> | |
public static class Instruments | |
{ | |
static string stopwatchName; |