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/bash | |
cd `dirname $0` | |
IFS=' | |
' | |
for file in $(find content -type f -name index.*md ); do | |
echo $file | |
cppath=`echo $file|sed -E 's!(.*)/(.*\..*)!\1!g' ` | |
for grep in $(cat $file | grep -e "JPG" -e "jpg" -e "png" -e "svg" -e "" ); do | |
echo "grepped $grep" | |
img=`echo $grep| sed -E 's!(.*)(\(| |"|/)(.*)(\.)([a-zA-Z]{3,4})(.*$)!\3\4\5!g' ` |
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
#ファイル名、backgroundとかは適当に設定してくれ | |
echo "test.jpeg" | xargs -I{} bash -c 'convert -resize 1200x630 {} ogp_{} && convert -background white -gravity center -extent 1200x630 ogp_{} ogp_{}' |
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
library(tuneR) | |
library(signal) | |
if(!is.na(commandArgs(T)[1])){ | |
isPrenormalize = commandArgs(T)[1] == "-normalize" | |
}else{ | |
isPrenormalize=FALSE | |
} |
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
#Protoolsで出てきたデュアルモノラルファイルをステレオに変換する便利な奴 | |
mkdir merged | |
array=($(find ./ -name '*.L.wav')) | |
outdir="merged" | |
for obj in "${array[@]}"; do | |
echo $obj | |
lwav=$obj |
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
inlets = 1; | |
outlets = 1; | |
autowatch = 1; | |
function patchPath() | |
{ | |
var patchPath = this.patcher.filepath; | |
var patchName = this.patcher.name + '.maxpat'; | |
if(patchPath != patchName){ |
NewerOlder