This file contains hidden or 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 System.Collections; | |
using System.Collections.Generic; | |
public delegate void InputKeyDelegate (KeyCode key); | |
public delegate void InputAxisDelegate (string name,float value); | |
public class InputEvents : MonoBehaviour | |
{ |
This file contains hidden or 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 System.Collections; | |
using System.Collections.Generic; | |
/// <summary> | |
/// Debugging tools | |
/// </summary> | |
public static class Instruments | |
{ | |
static string stopwatchName; |
This file contains hidden or 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; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Linq; | |
public class FindReferences : EditorWindow, ISerializationCallbackReceiver | |
{ | |
List<string> displayedRefs = new List<string>(); |
This file contains hidden or 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
[ | |
{ | |
"Pattern": "^((.*\\.)*(fastly|1e100|akadns|phicdn|akamaiedge|yahoodns|nr-data|doubleclick|edgecastcdn|smaato|bidswitch|openx|mozaws)\\.net)$", | |
"Address": "127.0.0.1", | |
"NameServer": "127.0.0.1" | |
}, | |
{ | |
"Pattern": "^((.*\\.)*(akamaitechnologies|btrll|casalemedia|rfihub|lfstmedia|spotxchange|adsafeprotected|iasds01|tp-cdn|criteo|gstatic|adnxs|exelator|pubmatic|powerlinks|atgsvcs|imrworldwide|supersonicads|tapad|amazonaws)\\.com)$", | |
"Address": "127.0.0.1", | |
"NameServer": "127.0.0.1" |
This file contains hidden or 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
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] |
This file contains hidden or 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
import os, sys | |
import PythonMagick | |
from os.path import expanduser | |
import glob | |
import time | |
directory = expanduser('~\\pictures\\clarifai\\') | |
thumbsdirectory = expanduser('~\\pictures\\clarifai\\thumbs\\') | |
thumbs=glob.glob1(thumbsdirectory, "*.THUMB.JP?") | |
jpgs=glob.glob1(directory, "*.JPG") | |
thumbs = [suffix.replace('.THUMB.JPEG', '.JPG') for suffix in thumbs] |
This file contains hidden or 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
# -*- coding: utf-8 -*- | |
''' | |
where .JPG.txt AI tag files are like | |
Tags for IMG_3150.JPG (Tag - Probability) | |
child - 0.9972 | |
fun - 0.9727 | |
little - 0.9688 | |
people - 0.9647 | |
cute - 0.9637 | |
et cetera |
This file contains hidden or 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
forfiles /C "cmd /c magick @file -auto-orient ./oriented/@file" |
This file contains hidden or 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
for /L %a in (1,1,2) do (python.exe %USERPROFILE%\AppData\Local\Programs\Python\Python36\claripy.py) |
This file contains hidden or 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
cd /d %USERPROFILE%\Pictures\clarifai\tiny && forfiles /C " cmd /c %USERPROFILE%\Downloads\jpeg-archive-2.1.1-win\jpeg-archive\jpeg-recompress.exe -q med -a -n 60 -x 85 -m smallfry -s @file @file " |