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 matplotlib.pyplot as plt | |
import matplotlib.dates | |
import numpy as np | |
from random import random | |
from random import gauss | |
from random import uniform | |
from datetime import datetime |
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
// from https://www.xuanyusong.com/archives/5073 | |
public class SearchWindows : EditorWindow | |
{ | |
[MenuItem ("Assets/Search Reference")] | |
public static void OpenWindow () | |
{ | |
(EditorWindow.GetWindow(typeof(SearchWindows)) as SearchWindows).Search = Selection.activeObject; | |
} | |
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
REM Find and list all dependencies for addons | |
@echo off | |
for /R %%f in (*.txt) do findstr "DependsOn" "%%f" | |
pause |
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
<?xml version="1.0" encoding="UTF-16"?> | |
<Task version="1.2" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task"> | |
<RegistrationInfo> | |
<Date>2023-04-11T21:25:53.1150117</Date> | |
<Author>NAUTILUS\Dustfall</Author> | |
<URI>\Custom\restart_udp_tunnel</URI> | |
</RegistrationInfo> | |
<Triggers> | |
<EventTrigger> | |
<Enabled>true</Enabled> |
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
use std::io::{BufWriter, Write}; | |
use std::thread; | |
use std::time::Duration; | |
use websocket::Message; | |
use websocket::sync::Server; | |
use rand::Rng; | |
fn main() { | |
// create wss | |
let server= Server::bind("127.0.0.1:9090").unwrap(); |
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 UnityEditor; | |
public class EditorCloseWindowTab : Editor | |
{ | |
[MenuItem("Shortcuts/Close Window Tab")] | |
static void CloseTab() | |
{ | |
EditorWindow focusedWindow = EditorWindow.focusedWindow; | |
if (focusedWindow != null) |
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
extends MeshInstance | |
""" | |
Example: | |
godot arrayMesh generate a box geometry | |
""" | |
var rings = 50 | |
var radial_segments = 50 | |
var radius = 1 | |
export(float) var width_fwd = 1 |
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
"author Dustfall<dustfall@gmail.com> | |
"last change:2023/07/28 | |
" | |
" Toggle Menu and Toolbar | |
set guioptions-=m | |
set guioptions-=T | |
map <silent> <F2> :if &guioptions =~# 'T' <Bar> | |
\set guioptions-=T <Bar> | |
\set guioptions-=m <bar> | |
\else <Bar> |
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
#TabsToolbar { | |
visibility: collapse !important; | |
height: 1px; | |
} | |
/* #sidebar-box[sidebarcommand="treestyletab_piro_sakura_ne_jp-sidebar-action"] #sidebar-header { */ | |
/* display: none; */ | |
/* } */ |
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
#!/bin/bash | |
t=`awk '{ print $1 }' Assets/subtitles.txt` | |
n=1 | |
for v in $t; | |
do | |
# echo $v | |
`ffmpeg -ss $v -i Recordings/movie0702.mp4 -vframes 1 -q:v 2 $n.jpg` | |
n=`expr $n + 1` | |
done |
NewerOlder