Skip to content

Instantly share code, notes, and snippets.

@nomissbowling
nomissbowling / freebsd-qemu-xhyve-mac-os-x-virtual-machine.md
Created September 26, 2019 09:07 — forked from zg/freebsd-qemu-xhyve-mac-os-x-virtual-machine.md
Create FreeBSD virtual machine using qemu. Run the VM using xhyve.

TL;DR

  • Create 10GB FreeBSD image using QEMU.
  • Run the VM using xhyve.
  • Mount host directory.
  • Resize the image.

Requisites

@nomissbowling
nomissbowling / call_python.go
Created October 17, 2019 06:30 — forked from shimarin/call_python.go
Goで Pythonを呼ぶ実験
/**
* Goから Pythonの関数を呼び出す実験
* 適当な文字列を返してくる手頃な関数 platform.platform() を呼んでみる。
* http://docs.python.jp/2/library/platform.html
*
* Cから Pythonを呼び出す方法
* http://docs.python.jp/2/extending/embedding.html
* が基本となる。Go -> C -> Pythonという呼び出しフローになるのでやや煩雑
*/
package main
@nomissbowling
nomissbowling / nim_syntax.md
Created October 27, 2019 05:53 — forked from miyakogi/nim_syntax.md
Syntax of Nim

この文章は、 Steve Losh 氏の記事 "A Road to Common Lisp" の翻訳です。

原文はこちらです: http://stevelosh.com/blog/2018/08/a-road-to-common-lisp/


A Road to Common Lisp (Common Lisp への道)

これまで、「最近のCommon Lispをどう学ぶとよいでしょう?」と助言を求めるメールをたくさん受け取ってきました。そこで私は、これまでメールやソーシャルメディアに投稿した全てのアドバイスを書き下すことにしました。これが誰かに有益ならば幸いです。

@nomissbowling
nomissbowling / gauss.md
Last active November 23, 2019 08:01
面積分と体積分とガウスの法則とナブラ
@nomissbowling
nomissbowling / reactance_impedance.md
Created December 3, 2019 07:59
reactance_impedance

ω = 2πf

コイルは ωL (位相は進むので +j を掛ける)

コンデンサは 1/ωC (位相は遅れるので -j を掛ける)

抵抗とコイルの直列 Z = R + jωL

抵抗とコンデンサの直列 Z = R - j/ωC

@nomissbowling
nomissbowling / newtypecorona.py
Created February 7, 2020 01:02
newtypecorona
#!/usr/local/bin/python
# -*- coding: utf-8 -*-
# newtypecorona
@nomissbowling
nomissbowling / csc_resx.md
Created February 26, 2020 02:33 — forked from retorillo/csc_resx.md
cscだけでresxやresourcesを使用するアプリを組む方法 (VisualStudioやresgenを使わない)

cscだけでresxやresourcesを使用するアプリを組む方法 (VisualStudioやresgenを使わない)

Windows .NET標準付属のcscだけでリソース(resxやresources)を含むアプリの開発を行う方法です。 Windows SDKに含まれるresgenも必要ないため、何もインストールしていないピュアなWindows環境でも十分です。

このドキュメントは実践的ではありません

実際にはresgenやVisual Studioのツールを使ったほうが便利なケースのほうが多いと思います。 このドキュメントはあくまでピュアなWindows環境でcscだけを使い、どこまで作れるのかという興味本位の実験です。 現実的ではありませんが、VSやSDKなどなにもインストールできないような環境や、

@nomissbowling
nomissbowling / CSharp5-AsyncAwait-MainMethod.cs
Created March 8, 2020 08:13 — forked from devlights/CSharp5-AsyncAwait-MainMethod.cs
C# 5.0 async/await でのMainメソッドの書き方
class Program
{
static void Main()
{
//
// Mainメソッドはasync付けられないので
// 一階層挟んでタスクを待ち合わせするようにする
//
ExecMainProc().Wait();
}