-
xv6を学ぶ上での準備
-
起動処理を読む(main.c の main() が呼ばれるまで)
-
main() からmpmain()が呼ばれるまで
This file contains hidden or 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
set nocompatible | |
filetype off | |
" init Vundle | |
set rtp+=~/.vim/vundle.git/ | |
call vundle#rc() | |
Bundle 'gmarik/vundle' | |
Bundle 'thinca/vim-quickrun' |
This file contains hidden or 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
$ 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" |
This file contains hidden or 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
median |
mruby advent calendar 2013 ネタです。
コードは github においてあります。
はじめまして、mruby にコミットしてたり(最近はできてない)、
mruby gem を作っていたりする kaishuu0123 です。
なにげに Advent calendar 初参加。ヽ|・ω・|ゞ
This file contains hidden or 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
$(document).ready(function() { | |
$("#graph_button").click(function () { | |
var img = document.getElementById("graph_img"); | |
g = graph_data[999] | |
Dygraph.Export.asPNG(g, img); | |
console.log(img); | |
window.location.href = img.src; //.replace('image/png','image/octet-stream'); | |
}); | |
}); |
This file contains hidden or 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
module MiddlewareExampleGroup | |
def self.included(base) | |
base.class_eval do | |
let(:app) { | |
Rack::Builder.new do | |
eval File.read(Rails.root.join('config.ru')) | |
end | |
} | |
end | |
end |
This file contains hidden or 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
# Backup a data volume container for Jenkins | |
jenkins-backup: | |
image: busybox | |
command: tar cvf /backup/jenkins-backup.tar /var/jenkins_home | |
volumes: | |
- .:/backup |
This file contains hidden or 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
<html style="margin:0px;overflow:hidden;"> | |
<head> | |
<link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/npm/[email protected]/css/bulma.css" /> | |
<script type="text/javascript"> | |
const DRAW_IFRAME_URL = 'https://www.draw.io/?embed=1&lang=ja'; | |
let graph = null; | |
let xml = null; | |
let globalMxStyleSheet = null; | |
function bytesToString(arr) |
This file contains hidden or 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
'use strict' | |
import markdownitfence from 'markdown-it-fence' | |
const drawioViewerDefaultURL = () => { | |
return '//www.draw.io/js/viewer.min.js' | |
} | |
const render = (code, drawioViewerURL, idx) => { | |
let trimedCode = code.trim() |
OlderNewer