View gist:7dd1a847027e36046f3758a257440ad2
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
# %% | |
import numpy as np | |
import torch | |
import torch.nn as nn | |
import torch.utils.data as td | |
# %% [markdown] | |
# ### Gen data | |
# %% |
View gist:8def28453f80dd6f58203551a12983a3
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
# %% | |
import nltk | |
from nltk.corpus import wordnet2021 as wn | |
from whoosh.index import create_in, open_dir | |
from whoosh.fields import * | |
from tqdm.notebook import tqdm |
View TestDictionary.cs
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 System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using NUnit.Framework; | |
using UnityEngine.Profiling; | |
using UnityEngine.TestTools.Constraints; | |
using Is = UnityEngine.TestTools.Constraints.Is; |
View reload_all_image.py
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
bl_info = { | |
"name": "Reload All Images", | |
"author": "tmpxyz", | |
"version": (1, 0), | |
"blender": (2, 72, 2), | |
#"location": "View3D > Toolbar and View3D > Specials (W-key)", | |
"warning": "", | |
"description": "reload all images", | |
"category": "image", | |
} |
View AutoUpdateSelectedLayers.jsx
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
#target photoshop | |
// debug level: 0-2 (0:disable, 1:break on error, 2:break at beginning) | |
// $.level = 0; | |
// debugger; // launch debugger on next line | |
app.activeDocument.suspendHistory("AutoUpdateSelectedLayers", "main()"); | |
/////////////////////////////////////////////////////////////////////////////// | |
// Functions |
View AutoExportSelectedLayers.jsx
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
#target photoshop | |
// debug level: 0-2 (0:disable, 1:break on error, 2:break at beginning) | |
// $.level = 0; | |
// debugger; // launch debugger on next line | |
if (app.documents.length <= 0) { | |
if (DialogModes.NO != app.playbackDisplayDialogs) { | |
alert('no document is opened!'); | |
} |
View SaveFBX.cs
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; | |
using System.Collections.Generic; | |
using System.Globalization; | |
using System.IO; | |
using System.Text; | |
using UnityEditor; | |
using UnityEngine; | |
/* |
View SaveFBX.cs
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; | |
using System.Collections.Generic; | |
using System.Globalization; | |
using System.IO; | |
using System.Text; | |
using UnityEditor; | |
using UnityEngine; | |
/* |