Skip to content

Instantly share code, notes, and snippets.

@cat-in-136
cat-in-136 / COCOA_Counter.ino
Last active Aug 26, 2020
COCOA Counter for M5Stack 〜新型コロナウイルス接触確認アプリが周囲に何個あるか数えてみるを M5Stack に移植してみた〜
View COCOA_Counter.ino
// based on https://qiita.com/coppercele/items/fef9eacee05b752ed982#m5stickc%E3%83%90%E3%83%BC%E3%82%B8%E3%83%A7%E3%83%B3
#define ENABLE_M5STACK_UPDATER
#include <Arduino.h>
#include <M5Stack.h>
#ifdef ENABLE_M5STACK_UPDATER
#include <M5StackUpdater.h>
#endif
#include <BLEDevice.h>
@cat-in-136
cat-in-136 / app.js
Created May 24, 2020
Study for webrtc audio
View app.js
const { app, BrowserWindow } = require("electron");
(async function () {
await app.whenReady();
const win = new BrowserWindow({
width: 800,
height: 600,
webPreferences: {
nodeIntegration: true,
View Makefile
CC=gcc
CFLAGS=-Wall -O2 `pkg-config --cflags x11`
LDFLAGS=`pkg-config --libs x11`
SOURCES=toggle-decorations.c
EXECUTABLE=$(patsubst %.c,%,$(SOURCES))
all: $(EXECUTABLE)
clean: $(EXECUTABLE)
@cat-in-136
cat-in-136 / LICENSE
Created Dec 29, 2019
チケットの作成日・更新日を「○日前」ではなく日時で表示する for redmine4.1+
View LICENSE
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2019 @cat_in_136
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@cat-in-136
cat-in-136 / view-customize-31989-workaround.html
Last active Nov 3, 2019
view-customize workaround of redmine patch #31989 Inline issue auto complete (#) in fields with text-formatting enabled
View view-customize-31989-workaround.html
<script src="https://unpkg.com/tributejs@3.7.3/dist/tribute.min.js"></script>
<link type="text/css" href="https://unpkg.com/tributejs@3.7.3/dist/tribute.css" rel="stylesheet">
<script>
//<![CDATA[
function inlineAutoComplete(element) {
'use strict';
// do not attach if Tribute is already initialized
if (element.dataset.tribute === 'true') {return;}
const issuesUrl = element.dataset.issuesUrl;
View .gitignore
# Created by https://www.gitignore.io/api/vim,emacs,ruby
### Emacs ###
# -*- mode: gitignore; -*-
*~
\#*\#
/.emacs.desktop
/.emacs.desktop.lock
*.elc
@cat-in-136
cat-in-136 / main.html
Created Aug 9, 2018
マイナス2進数の考察
View main.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<style>
body {
background-color: rgb(255, 255, 255);
}
</style>
</head>
@cat-in-136
cat-in-136 / .gitignore
Last active Dec 8, 2018 — forked from diffshare/replace-from-cybozu-to-redmine.rb
replace-from-cybozu-to-redmine.rb
View .gitignore
# Created by https://www.gitignore.io/api/vim,emacs,rails
### Emacs ###
# -*- mode: gitignore; -*-
*~
\#*\#
/.emacs.desktop
/.emacs.desktop.lock
*.elc
@cat-in-136
cat-in-136 / blank_nonshironuri.rb
Last active Mar 15, 2018
白塗りの xlsx ファイルを rubyXL で作ろうとしたワイ、無を見る
View blank_nonshironuri.rb
require "rubyXL"
workbook = RubyXL::Workbook.new
workbook.write("/path/to/blank_nonshironuri.xlsx")
View Gantan2018CatIn136.ttx
<?xml version="1.0" encoding="UTF-8"?>
<ttFont sfntVersion="OTTO" ttLibVersion="3.8">
<GlyphOrder>
<!-- The 'id' attribute is only for humans; it is ignored when parsed. -->
<GlyphID id="0" name=".notdef"/>
<GlyphID id="1" name="cid12354"/>
<GlyphID id="2" name="cid12356"/>
<GlyphID id="3" name="cid12358"/>
<GlyphID id="4" name="cid12362"/>
You can’t perform that action at this time.