Skip to content

Instantly share code, notes, and snippets.

View 6uclz1's full-sized avatar
🏠
Working from home

ぶち 6uclz1

🏠
Working from home
View GitHub Profile
@6uclz1
6uclz1 / script.py
Created September 23, 2024 14:09
LLM用に分割されたプログラムを読み込ませたい際に使用すると役立つスクリプト
import os
import sys
# フォルダ内のすべてのファイルを探索して、内容をフォーマットする関数
def crawl_and_output(directory, output_file, exclude_patterns):
if not os.path.isabs(directory):
print(f"Error: '{directory}' is not an absolute path.")
return
if not os.path.exists(directory):
import pyperclip
import time
# 前回のクリップボードの内容を保存する変数
previous_text = ""
import requests
import io
import soundfile
import sounddevice as sd
@6uclz1
6uclz1 / OPML
Created September 1, 2024 16:12
<?xml version="1.0" encoding="UTF-8"?>
<opml version="2.0">
<head>
<title>Feeds</title>
</head>
<body>
<outline htmlUrl="https://www.bcnretail.com/" xmlUrl="https://www.bcnretail.com/RSS.rdf" type="rss" text="BCN+R" title="BCN+R" />
<outline type="rss" text="Menthas #all" htmlUrl="https://menthas.com" title="Menthas #all" xmlUrl="https://menthas.com/all/rss" />
<outline htmlUrl="https://b.hatena.ne.jp/hotentry/it" xmlUrl="https://b.hatena.ne.jp/hotentry/it.rss" title="はてなブックマーク - 人気エントリー - テクノロジー" text="はてなブックマーク - 人気エントリー - テクノロジー" type="rss" />
<outline xmlUrl="https://b.hatena.ne.jp/hotentry.rss" htmlUrl="https://b.hatena.ne.jp/hotentry/all" type="rss" text="はてなブックマーク - 人気エントリー - 総合" title="はてなブックマーク - 人気エントリー - 総合" />
@6uclz1
6uclz1 / azw_to_epub.bat
Last active October 4, 2021 11:33
Kindle for PC の電子書籍を epub に変換するスクリプト
@REM Kindle for PC の電子書籍を epub に変換するスクリプト
@REM Kindle ⇨ Calibre に移動(コピー)
for /r "%HOMEPATH%\Documents\MyKindleContent" %%f in (*.azw) do (
echo %%f
"C:\Program Files\Calibre2\calibredb.exe" add "%%f"
)
@REM Calibre の電子書籍(azw3)を EPUB に変換
for /r "%HOMEPATH%\CalibreLibrary" %%f in (*.azw3) do (
https://www.reddit.com/r/anime+anime_irl+animegifs+Animemes+chromeos+CrappyDesign+csharp+DDLC+dokusyo_syoseki_r+ExpandDong+FifthWorldPics+gameofthrones+hearthstone+HistoryMemes+itsaunixsystem+japancirclejerk+KizunaA_Irl+Lain+linuxmasterrace+MachineLearning+manga+maybemaybemaybe+neuralnetworks+philo_jp+privacy+ProgrammerHumor+rickandmorty+RoomPorn+shittyreactiongifs+softwaregore+unixporn+vim
{"open.closed":"true","options.font_color":"#fbf1c7","options.theme":"Midnight","open.unfiled_____":"true","options.background_color":"#282828","open.menu________":"true","open.top":"true"}
@6uclz1
6uclz1 / azw_to_epub.sh
Created March 12, 2018 14:02
Kindle for Mac の電子書籍を epub に変換するスクリプト
#/bin/bash
# Kindle for Mac の電子書籍を epub に変換するスクリプト
# 参考 https://qiita.com/mgoldchild/items/165f63bc2e006c81bf58
# 'brew cask install calibre' でインストール推奨
IFS=$'\n'
@6uclz1
6uclz1 / 0_reuse_code.js
Created January 13, 2016 13:03
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
//include
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
//global
int loop, i, j, k, main_command_number, search_number, change_command_number;
int replace_id, replace_shiken, replace_enshu, replace_kadai, replace_tsuishi;
int delete_place;
int result_command;