View zip_all_folders.bat
This file contains 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
cd /D "%~dp0" | |
for /D %%G in ("*.*") do ( | |
echo %%~nxG | |
"C:\Program Files\7-Zip\7z.exe" a "%%~nxG.zip" "%%~nxG" | |
) | |
cmd /k |
View CMakeList.txt
This file contains 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
# CMakeのバージョン | |
cmake_minimum_required(VERSION 3.19) | |
# プロジェクト名 | |
project(proj_name CXX) | |
# PyBind11 を取得 | |
include(FetchContent) | |
FetchContent_Declare( | |
pybind11 |
View chrome_gpu_bug_case.html
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
</head> | |
<body> | |
<div style="height: 480px; width: 600px; display: block"> | |
<div | |
style=" | |
height: 100%; |
View index.html
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Blockly Demo: Generating JavaScript</title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/blockly/7.20211209.0-beta.0/blockly_compressed.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/blockly/7.20211209.0-beta.0/blocks_compressed.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/blockly/7.20211209.0-beta.0/javascript_compressed.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/blockly/7.20211209.0-beta.0/msg/en.min.js"></script> | |
<style> |
View kindle_cloud_reader_gtranslate_bookmarklet.js
This file contains 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
javascript: (function () { | |
/* Kindle Translator V 0.4*/ | |
/* based on ACRExtensions via https://github.com/binarycrafts/ACRExtensions */ | |
var w = null; | |
var kDoc = null; | |
var kObj = null; | |
if (typeof window.KindleReaderContextMenu !== 'undefined') { | |
w = window; | |
} else if (window.length) { | |
for (var i=0;i<window.length;i++) { |
View kindle_cloud_reader_deepl_bookmarklet.js
This file contains 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
javascript: (function () { | |
/* Kindle Translator V 0.4*/ | |
/* based on ACRExtensions via https://github.com/binarycrafts/ACRExtensions */ | |
var w = null; | |
var kDoc = null; | |
var kObj = null; | |
if (typeof window.KindleReaderContextMenu !== 'undefined') { | |
w = window; | |
} else if (window.length) { | |
for (var i=0;i<window.length;i++) { |
View a_star.py
This file contains 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
# coding: utf-8 | |
import heapq | |
import itertools | |
class AStar(object): | |
def __init__(self, map, obstacle_symbol=1): | |
self.map = map | |
self.obstacle = obstacle_symbol |
View cycle_detection_tarjan.py
This file contains 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
# coding: utf-8 | |
import numpy as np | |
import argparse | |
import logging | |
logger = logging.getLogger(__name__) | |
def strong_connection(G, s, v, i, node_index, visited_stack): | |
"""Tarjan's strong connection detection algorithm. | |
Args: |
View images_to_mp4.bat
This file contains 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
ffmpeg -y -r 30 -i "./render_%%06d.png" -start_number 10011 -vcodec libx264 -pix_fmt yuv420p -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" -r 30 ./rendered.mp4 |
View CLI_template.py
This file contains 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
# coding: utf-8 | |
import logging | |
import traceback | |
import argparse | |
import time | |
from logging.handlers import RotatingFileHandler | |
from contextlib import contextmanager | |
logger = logging.getLogger(__name__) |
NewerOlder