-
xv6を学ぶ上での準備
-
起動処理を読む(main.c の main() が呼ばれるまで)
-
main() からmpmain()が呼ばれるまで
This file contains 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
wsl --shutdown | |
diskpart | |
# open window Diskpart | |
select vdisk file="C:\WSL-Distros\…\ext4.vhdx" | |
attach vdisk readonly | |
compact vdisk | |
detach vdisk | |
exit |
This file contains 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
[ | |
{ | |
"key": "ctrl+p", | |
"command": "cursorUp", | |
"when": "terminalFocus" | |
}, | |
{ | |
"key": "ctrl+n", | |
"command": "cursorDown", | |
"when": "terminalFocus" |
This file contains 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
import ( | |
"fmt" | |
"time | |
) | |
func main() { | |
fmt.Println("Hello, world") | |
go func() { | |
t := time.NewTicker(3 * time.Second) // 3秒おき |
This file contains 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
package main | |
import ( | |
"fmt" | |
"image" | |
"image/color" | |
"github.com/AllenDang/giu" | |
g "github.com/AllenDang/giu" | |
"github.com/AllenDang/imgui-go" |
- Install XQuartz: https://www.xquartz.org/
- Launch XQuartz. Under the XQuartz menu, select Preferences
- Go to the security tab and ensure "Allow connections from network clients" is checked.
- Run
xhost + ${hostname}
to allow connections to the macOS host * - Setup a HOSTNAME env var
export HOSTNAME=`hostname`
* - Add the following to your docker-compose:
environment:
This file contains 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'; | |
var index = function (md, name, options) { | |
function validateDefault(params) { | |
return params.trim().split(' ', 2)[0] === name | |
} | |
function renderDefault(tokens, idx, _options, env, self) { | |
if (tokens[idx].nesting === 1) { | |
tokens[idx].attrPush(['class', name]); |
This file contains 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
/* eslint-disable */ | |
(function(mod) { | |
mod(require("codemirror")); | |
})(function(CodeMirror) { | |
"use strict"; | |
CodeMirror.registerHelper("fold", "codeBlock", function(cm, start) { | |
var firstLine = cm.getLine(start.line); | |
var spaceTo = firstLine.search(/^::: [a-z]+/); |
This file contains 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() |
This file contains 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/bulma@0.8.0/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) |
NewerOlder