Skip to content

Instantly share code, notes, and snippets.

View sksat's full-sized avatar
💭
🛰️

sksat sksat

💭
🛰️
View GitHub Profile
@repeatedly
repeatedly / d_master.md
Last active June 8, 2023 06:20
D言語基礎文法最速マスター

他の言語をある程度知っている人はこれを読めばD言語の基礎をマスターでき,D言語の氷山の一角くらいは知ることができると思います.対象バージョンはdmd 2.059です.

1. 基礎

ソースファイル

ASCIIかUTFしか受け付けません.それ以外の文字コードで書くとコンパイルエラーになります.

main

D言語のmainはCとは違い以下のようなシグネチャです.

@t-nissie
t-nissie / HowToGist.md
Last active December 9, 2023 09:44
Gistの使い方のメモ

Gistの使い方のメモ

Gistを使い始めて気がついた点をメモした。 Gistはこのようなメモや短いコードをバージョン管理しながら公開するのに便利。

特にこのメモでは、画像を同一ディレクトリに置いて、 それGFMファイル内に挿入する方法を解説。

このメモにはgitコマンドの使い方の解説はない。 このメモは随時更新される予定。

@ntddk
ntddk / term.sty
Created November 18, 2014 05:13
予稿
%
% From jarticle.sty 16-Mar-88
% -------------------------------------------------------------------------
% No page number
\pagestyle{empty}
% Page layout
%
%\paperwidth 210mm
@miyakogi
miyakogi / nim_syntax.md
Last active April 30, 2023 07:24
Syntax of Nim

lwIPの移植

修正BSDライセンスでかなり良い感じのTCP/IPプロトコルスタック。 MinixもVirtualBoxも使っている様子。主な実装済みプロトコルは以下の通り。

  • DNS, DHCP
  • TCP, UDP
  • IPv4, IPv6, ICMP
  • ARP
@natefoo
natefoo / 00README.md
Last active April 30, 2024 13:50
Linux Distribution Detection

Distribution Detection

I am working on adding support for building and distributing (via PyPI) Python Wheels with C Extensions to the Python wheel and pip packages. The discussion on Distutils-SIG continues, but I believe it is fairly certain that some effort to correctly identify Linux distributions will need to be made. I've begun efforts to add this support to wheel.

How you can help

If you have a Linux distribution or version of a listed distribution not in this gist, or one of the ones I have not directly verified, I could use the following:

  • The contents of /etc/os-release, if it exists
#!/usr/bin/env ruby
# textlint-asciidoctor -r ./macro.rb -T code,dfn index.adoc
require 'asciidoctor'
require 'cgi'
require 'json'
require 'optparse'
require 'tempfile'
ERASED_TEXT = '◆◆'
@hikalium
hikalium / conv2utf8.md
Last active May 12, 2017 22:43
Shift-JISのC言語ソースをUTF-8に一括置換する
  • Shift-JISのC言語ソースをUTF-8に一括置換する(Macで確認済み)
  • オリジナルファイルは.orgとして残る
  • 何度実行しても大丈夫

ソース

  • sjis2utf8.sh
echo $1
LANG=C file $1 | grep -v -q "UTF-8" && \
	cp $1 $1.org && \
@hikalium
hikalium / nv_memo.md
Created April 5, 2017 08:50
memo for nv project

2017-04-05 15:00-18:00

Livaさんの言及したNVMについて調査

  • NVM: RAMだけどNon-Volatileなメモリ。(SCM: Storage Class Memory)

  • だから、メモリと同一のレイヤの記憶装置として扱える。

  • NOVA: A Log-structured File System for Hybrid Volatile/Non-volatile Main memory

  • 従来のファイルシステムでは、ディスクアクセスがボトルネックだったため、ファイルシステムのソフトウエア側のパ>フォーマンスはそこまで響いてこなかった。

  • しかし、NVMという高速なストレージを使う場合は、ファイルシステムそれ自体がボトルネックとなってくる。