Aynakeya's Blog

Kill My Emotion

本页面以加载以下代码,切换标签页看看吧.

var orig_title = document.title;
document.addEventListener('visibilitychange',function(){
    //浏览器切换事件
    if(document.visibilityState=='hidden') { //状态判断
        orig_title = document.title;
        document.title = '嘤嘤嘤~~~'; 
    }else {
        document.title = orig_title;
        myWaifu.showMessage("欢迎回来,Rua!",null)
    }
});

在automator里使用python3

使用/bin/bash,然后看下面代码。

export PATH+=:/usr/local/bin:/usr/bin:/bin
/usr/local/bin/python3 << "EOF" - "$@"
      //python codes
EOF

e.g. 实现FFmpeg提取音频。
export PATH+=:/usr/local/bin:/usr/bin:/bin
/usr/local/bin/python3 << "EOF" - "$@"
import sys,os
import subprocess

files = []
for f in sys.argv[1:]:
files.append(f)
for file in files:
videoPath = file
audioPath = os.path.splitext(file)[0]+".m4a"
status = subprocess.call(["ffmpeg", "-y", "-i", videoPath, "-acodec", "copy", "-vn", audioPath], shell=False)
if status == 0:
pass
else:
pass
EOF

今天遇见了一个问题,垃圾百度上什么都系都没找到,最后在stackoverflow上找到了解决方法。

https://stackoverflow.com/questions/12050590/redirect-non-www-to-www-in-htaccess

# Redirect to www
RewriteCond %{HTTP_HOST} ^[^.]+\.[^.]+$
RewriteCond %{HTTPS}s ^on(s)|
RewriteRule ^ http%1://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# Redirect to https
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}/$1 [R=301,L]

无聊=自闭

自闭=抑郁

抑郁=自杀

#quizlet单词获取器
感觉博客空荡荡的,所以发一个

反正没人看

就是一个小工具,输入地址,然后就把单词和意思跳出来。可以做单词表用,其他没什么用处emmmmm。

感觉还真没什么用处。。。。

谁会来用这个啊喂

还是放点图出来吧。。。

输入链接

输入链接
获取成功

获取成功
随机生成

随机生成

体验地址:
https://www.lxgshadow.us/projects/dynamic/python/quizlet_words

平板写真tm难受

#Why?
Why even learn to code? People have been communication big ideas for centuries without needing to learn a new language.

What do you think?

0%