Skip to content

Instantly share code, notes, and snippets.

View Ishotihadus's full-sized avatar

Ishotihadus Ishotihadus

View GitHub Profile
@Ishotihadus
Ishotihadus / supercd.sh
Created April 20, 2015 11:28
bashで動かせるすごいcd。ディレクトリ名を打ち込まなくてもカレントディレクトリを移動できる。source supercd.shで動かす。
#!/bin/bash
shopt -s dotglob
while :
do
endflg=0
printf "\033[1;31m"
echo `pwd`
@Ishotihadus
Ishotihadus / algo.c
Created July 6, 2015 01:41
アルゴリズムの課題参考
#include <stdio.h>
#include <string.h>
#define MAX_N 1048576
#define BUF_N 2097152
int load(char*, char**, int*);
void search(char**, int*);
int main(int argc, char const *argv[]) {
static char str[MAX_N];
i = 0
$stdout.sync = true
arr_before = 'ぁぃぅぇぉヵヶっゃゅょゎ'
arr_after = 'あいうえおかけつやゆよわ'
IO.foreach('word_list.txt') do |l|
next if l.length <= 2 # 改行文字を含むから
str = ''
l.strip.chars do |c|
@Ishotihadus
Ishotihadus / rplib.c
Created December 18, 2015 06:58
ラズパイのGPIOにアクセスする既存のライブラリが使えなかったので自分で作った。
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#define INPUT 0
#define OUTPUT 1
@Ishotihadus
Ishotihadus / cpu-bar.widget - index.coffee
Created February 25, 2016 01:25
Übersichtのスクリプト集(サブディレクトリが作れないので、ディレクトリ名は - で区切った)
command: "top -u -l 1"
refreshFrequency: 3000
style: """
// Change bar height
bar-height = 6px
// Align contents left or right
widget-align = left
@Ishotihadus
Ishotihadus / dakimakura.md
Last active June 26, 2022 08:59
持ってる抱き枕リスト

持ってる抱き枕リスト

オリジナル

キャラクター 作者 頒布時期 イベント 参考URL
珠洲乃 あづみ一樹 16年8月 C90 Twitter
長月栞奈 あづみ一樹 17年8月 C92 Twitter
ましろ あづみ一樹 18年4月 COMIC1☆13 Twitter
こいぬ 九条だんぼ 16年12月 C91 Blog
@Ishotihadus
Ishotihadus / unityfs2asset.rb
Created July 1, 2017 15:23
UnityFS unpack tool for MLTD (Million live theater days).
# UnityFS unpack tool for MLTD (Million live theater days).
# Output directory is created automatically.
# Usage: ruby unityfs2asset.rb data.unity3d
require 'fileutils'
require 'extlz4'
require 'bin_utils'
class BinaryReader
def initialize(data)
@Ishotihadus
Ishotihadus / mo.itermcolors
Last active September 20, 2017 04:14
iTerm Colors
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.015686275437474251</real>
@Ishotihadus
Ishotihadus / imas-colors.clr
Last active February 11, 2024 13:55
アイマスのカラー一覧と、Mac 用カラーパレットファイル(clr)。Adobe アセット版は https://adobe.ly/2zM4tB6 。関連ページ: https://imas-db.jp/misc/color.html
@Ishotihadus
Ishotihadus / eshidownloader.rb
Created January 7, 2018 14:53
特定の絵師が Twitter にのせた画像を全部ダウンロードするやつ
require 'twitter'
require 'net/http'
TWITTER_CK = ''
TWITTER_CS = ''
TWITTER_AT = ''
TWITTER_AS = ''
USER = 'tktiau'
Dir.mkdir(USER) unless Dir.exists?(USER)