Skip to content

Instantly share code, notes, and snippets.


Koki Oyatsu kaishuu0123

Block or report user

Report or block kaishuu0123

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
kaishuu0123 / index.js
Created Jan 17, 2020
View index.js
'use strict'
import markdownitfence from 'markdown-it-fence'
const drawioViewerDefaultURL = () => {
return '//'
const render = (code, drawioViewerURL, idx) => {
let trimedCode = code.trim()
kaishuu0123 / drawio_integration.html
Last active Jan 8, 2020 textarea integration demo html
View drawio_integration.html
<html style="margin:0px;overflow:hidden;">
<link rel="stylesheet" type="text/css" href="//" />
<script type="text/javascript">
const DRAW_IFRAME_URL = '';
let graph = null;
let xml = null;
let globalMxStyleSheet = null;
function bytesToString(arr)
View jenkins_backup_fig.yml
# Backup a data volume container for Jenkins
image: busybox
command: tar cvf /backup/jenkins-backup.tar /var/jenkins_home
- .:/backup
View rspec_middleware_test.rb
module MiddlewareExampleGroup
def self.included(base)
base.class_eval do
let(:app) { do
View js_snipet.js
$(document).ready(function() {
$("#graph_button").click(function () {
var img = document.getElementById("graph_img");
g = graph_data[999]
Dygraph.Export.asPNG(g, img);
window.location.href = img.src; //.replace('image/png','image/octet-stream');
kaishuu0123 / gist:7838949
Last active May 1, 2018
mruby-readline つくってみた
View gist:7838949

mruby advent calendar 2013 ネタです。

コードは github においてあります。

はじめまして、mruby にコミットしてたり(最近はできてない)、
mruby gem を作っていたりする kaishuu0123 です。
なにげに Advent calendar 初参加。ヽ|・ω・|ゞ

kaishuu0123 / gist:7082398
Created Oct 21, 2013
NetBSD の IPv4 の median filter を読む
View gist:6684551
$ make allnoconfig
$ make menuconfig
enable 8250 serial driver
enable ELF format
enable initrd
$ make
$ qemu -nographic -kernel ~/work/linux-3.11/arch/x86/boot/bzImage -initrd ~/work/helloworld.initramfs -append "initcall_debug console=ttyS0 earlyprintk=serial,keep debug"
View .vimrc
set nocompatible
filetype off
" init Vundle
set rtp+=~/.vim/vundle.git/
call vundle#rc()
Bundle 'gmarik/vundle'
Bundle 'thinca/vim-quickrun'
kaishuu0123 /
Last active Oct 18, 2019
xv6 を読む
You can’t perform that action at this time.