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 numpy as np | |
import torch | |
import torch.nn as nn | |
import torch.utils.data as td | |
# %% [markdown] | |
# ### Gen data | |
# %% |
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 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 |
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; | |
using System.Collections; | |
using System.Collections.Generic; | |
using NUnit.Framework; | |
using UnityEngine.Profiling; | |
using UnityEngine.TestTools.Constraints; | |
using Is = UnityEngine.TestTools.Constraints.Is; |
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
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", | |
} |
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
#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 |
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
#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!'); | |
} |
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 System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Globalization; | |
using System.IO; | |
using System.Text; | |
using UnityEditor; | |
using UnityEngine; | |
/* |
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 System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Globalization; | |
using System.IO; | |
using System.Text; | |
using UnityEditor; | |
using UnityEngine; | |
/* |