Skip to content

Instantly share code, notes, and snippets.

View hassi32's full-sized avatar
🌴
On vacation

hassi32 hassi32

🌴
On vacation
View GitHub Profile
@homuler
homuler / shogun.fish
Last active December 20, 2019 02:03
fish completion for `shogun` (https://github.com/knok/shogun-completion) command
set -l shogun_kinds kamakura muromachi tokugawa
set -l pre_kamakura_shoguns 巨勢麻呂 多治比懸守 藤原宇合 藤原麻呂 藤原継縄 藤原小黒麻呂 大伴家持 紀古佐美 大伴弟麻呂 坂上田村麻呂 文屋綿麻呂 藤原忠文 源義仲 木曾義仲
set -l kamakura_shoguns 源頼朝 源頼家 源実朝 藤原頼経 九条頼経 藤原頼嗣 九条頼嗣 宗尊親王 惟康親王 久明親王 守邦親王
set -l kenmu_shoguns 護良親王 成良親王 足利尊氏(建武)
set -l nancho_shoguns 興良親王 宗良親王 尹良親王
set -l muromachi_shoguns 足利尊氏 足利義詮 足利義満 足利義持 足利義量 足利義教 足利義勝 足利義政 足利義尚 足利義材 足利義澄 足利義稙 足利義晴 足利義輝 足利義栄 足利義昭
set -l tokugawa_shoguns 徳川家康 徳川秀忠 徳川家光 徳川家綱 徳川綱吉 徳川家宣 徳川家継 徳川吉宗 徳川家重 徳川家治 徳川家斉 徳川家慶 徳川家定 徳川家茂 徳川慶喜
set -l zou_shoguns 徳川綱重
@Jung0
Jung0 / .commit_template
Last active February 26, 2024 05:43
🤘 Emoji prefix to use at commit message
# ==================== Emojis ====================
# 🎉 :tada: 初めてのコミット(Initial Commit)
# 🔖 :bookmark: バージョンタグ(Version Tag)
# ✨ :sparkles: 新機能(New Feature)
# 🐛 :bug: バグ修正(Bagfix)
# ♻️ :recycle: リファクタリング(Refactoring)
# 📚 :books: ドキュメント(Documentation)
# 🎨 :art: デザインUI/UX(Accessibility)
@cathandnya
cathandnya / PopoverActionViewController.swift
Created February 2, 2016 12:32
PopoverActionViewController.swift
//
// PopoverActionViewController.swift
// ORE2
//
// Created by nya on 2/2/16.
// Copyright © 2016 cathand.org. All rights reserved.
//
import UIKit
@parmentf
parmentf / GitCommitEmoji.md
Last active April 26, 2024 09:53
Git Commit message Emoji
@terranware
terranware / snsToSlack.js
Last active March 7, 2024 14:47
AWS Lambda function to Slack Channel hookup
var https = require('https');
var util = require('util');
exports.handler = function(event, context) {
console.log(JSON.stringify(event, null, 2));
console.log('From SNS:', event.Records[0].Sns.Message);
var postData = {
"channel": "#aws-sns",
"username": "AWS SNS via Lamda :: DevQa Cloud",
@laiso
laiso / AppDelegate.m
Last active August 29, 2015 14:04
UIViewController+ClassNameOverlay
#ifdef DEBUG
#import "UIViewController+ClassNameOverlay.h"
#endif
@nobonobo
nobonobo / spectrum.py
Created March 25, 2013 13:15
リアルタイムスペクトラム・アナライザーを作ってみた。 PortAudioのPython版PyAudioとnumpyに依存。 実行すると横並び64個の0〜9の数値の表示が流れ続けます。 マイク音声を入力すると周波数成分別に数字が大きくなります。 リアルタイム16Kサンプリングの512点FFTがCore-i5レベルCPU2%程度の使用量で動きます。 内部ではちゃんと周波数の値が計算されています(ループの中で計算する必要はなかった・・・) - 口笛で音階をつけると大きな数字が現れる場所がスライドします。 - 打撃音は全部の数値が増えます。
#!/usr/bin/env python
# encoding: utf-8
import sys
import os
import atexit
import time
import numpy as np
import pyaudio
@hatone
hatone / ArduinoSide.c
Created February 11, 2012 07:58
Arduino+Ruby
int incomingByte = 0;
int ledPin = 13;
void setup() {
Serial.begin(9600);
pinMode(ledPin, OUTPUT);
}
void loop() {
if (Serial.available() > 0) {