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
#! /bin/sh | |
# reference: https://stackoverflow.com/questions/38262829/awk-command-to-convert-date-format-in-a-file#answer-38271260 | |
/usr/bin/awk -F'\t' '{ | |
split($1,a," "); | |
printf "%04d-%02d-%02d", a[3], (match("JANFEBMARAPRMAYJUNJULAUGSEPOCTNOVDEC",toupper(a[1]))+2)/3, a[2]; | |
for(i=2;i<=NF;i++)printf("\t%s",$i); | |
printf("\n") | |
}' << EOF | |
Sep 9, 2024 142.1234 143.1234 142.1234 142.1234 142.1234 | |
Aug 8, 2024 146.1234 147.1234 145.1234 146.1234 146.1234 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
#! /bin/sh -x | |
DIR=`pwd` | |
FPS=24 | |
S_NUMBER=83 | |
LOOP=10 | |
STEREO="left-right" #"top-bottom" | |
DIST_PREFIX="dist" | |
SRC_DIR="360" | |
DIST_DIR=${DIR} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 stanza | |
import graphviz as gv | |
# %% | |
# https://qiita.com/ytaki0801/items/b8d7d4c778fe98966ce5 | |
def p_lex(p): | |
for s in '()[]{}",': |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 bpy | |
import networkx as nx # /path/to/blender's/python -m pip install scipy networkx | |
import numpy as np | |
from scipy.spatial import ConvexHull | |
def obj2GraphAndXyzAndNormFiedler(obj): | |
edges = [(e.vertices[0], e.vertices[1]) for e in obj.data.edges] | |
G = nx.Graph(edges) |