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
for i in *.flac ; do f=`echo $i | sed 's/\\.flac$/.m4a/'`; ffmpeg -y -i "$i" -vn -strict -2 -ab 192k "$f" ; done |
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 serial | |
import time | |
from datetime import datetime | |
import requests | |
URL = "http://xxxxxxxxxxxxx" | |
ser = serial.Serial('/dev/ttyUSB0', 9600, timeout=1.0) | |
def check_data(data): | |
if len(data) < 20: |
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
def chara_name_resolve(name): | |
# μ's | |
if name == 'ほの': | |
name = '高坂穂乃果' | |
if name == 'ほのか': | |
name = '高坂穂乃果' | |
if name == '穂乃果': | |
name = '高坂穂乃果' | |
if name == 'えり': |
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
# 3GPP TS 07.10 FCS calculation | |
class FCS: | |
# reversed, 8-bit, poly=0x07 | |
crctable = [0x00, 0x91, 0xE3, 0x72, 0x07, 0x96, 0xE4, 0x75, 0x0E, 0x9F, 0xED, 0x7C, 0x09, 0x98, 0xEA, 0x7B, | |
0x1C, 0x8D, 0xFF, 0x6E, 0x1B, 0x8A, 0xF8, 0x69, 0x12, 0x83, 0xF1, 0x60, 0x15, 0x84, 0xF6, 0x67, | |
0x38, 0xA9, 0xDB, 0x4A, 0x3F, 0xAE, 0xDC, 0x4D, 0x36, 0xA7, 0xD5, 0x44, 0x31, 0xA0, 0xD2, 0x43, | |
0x24, 0xB5, 0xC7, 0x56, 0x23, 0xB2, 0xC0, 0x51, 0x2A, 0xBB, 0xC9, 0x58, 0x2D, 0xBC, 0xCE, 0x5F, | |
0x70, 0xE1, 0x93, 0x02, 0x77, 0xE6, 0x94, 0x05, 0x7E, 0xEF, 0x9D, 0x0C, 0x79, 0xE8, 0x9A, 0x0B, |
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 hashlib | |
import urllib.request | |
import os | |
if not os.path.isdir('NIKON'): | |
os.makedirs('NIKON') | |
if os.path.exists('NIKON/NML_28A.ee'): | |
with open('NIKON/NML_28A.ee', 'rb') as f: | |
checksum = hashlib.sha1(f.read()).hexdigest() |
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
# /opt/MegaRAID/MegaCli/MegaCli64 -AdpAllInfo -aall [~/Linux] | |
Adapter #0 | |
============================================================================== | |
Versions | |
================ | |
Product Name : RAID Ctrl SAS 6G 1GB (D3116) | |
Serial No : 0000000039353429 | |
FW Package Build: 23.9.0-0031 |
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
module first_cyclone( | |
input wire SW_0, | |
input wire clk_50, | |
output wire LED_1, | |
output wire LED_2, | |
output wire LED_3, | |
output wire LED_4, | |
output wire LED_5, | |
output wire LED_6, |
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
module first( | |
input wire SW_0, | |
output wire LED_1, | |
output wire LED_2, | |
output wire LED_3, | |
output wire LED_4, | |
output wire LED_5, | |
output wire LED_6, | |
output wire LED_7, |
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 json, sys | |
import argparse | |
parser = argparse.ArgumentParser() | |
parser.add_argument("name") | |
parser.add_argument("value") | |
args = parser.parse_args() | |
dns = json.load(sys.stdin, encoding='utf-8') |