Skip to content

Instantly share code, notes, and snippets.

View mattn's full-sized avatar
🍛
I love curry 🍛

mattn mattn

🍛
I love curry 🍛
View GitHub Profile
.text
.def @feat.00;
.scl 3;
.type 0;
.endef
.globl @feat.00
.set @feat.00, 0
.file "fib.11100cec-cgu.0"
.def _ZN3std10sys_common9backtrace28__rust_begin_short_backtrace17ha71540ff8e38b0edE;
.scl 3;
@mattn
mattn / create_union_enum.zig
Last active July 14, 2022 04:11 — forked from hnakamur/create_union_enum.zig
create union enum in Zig
const std = @import("std");
const expect = std.testing.expect;
const cell = struct {
v1: ?*Variant,
v2: ?*Variant,
};
const Variant = union(enum) {
int: i32,
<style>
#container {
display: inline-block;
margin-left: 200px;
margin-top: 200px;
}
#container img {
margin: 50px;
}
</style>
@mattn
mattn / README.md
Last active March 5, 2022 20:52
技術系 Twitter コミュニティ

移動しました!

#include <stdio.h>
#include <stdlib.h>
#include <memory.h>
#include <time.h>
#include "genann.h"
static void
bin(int n, double* d) {
int i;
memset(d, 0, sizeof(double)*10);
@mattn
mattn / go-gonum.go
Last active November 12, 2020 13:07
package main
import (
"fmt"
"log"
. "gorgonia.org/gorgonia"
"gorgonia.org/tensor"
)
using System;
namespace foo
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
}
@mattn
mattn / .tmux.conf
Last active October 17, 2023 03:52
set -g default-terminal "xterm-256color"
set-option -ga terminal-overrides ",xterm-256color:Tc"
set -g mouse on
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
run -b '~/.tmux/plugins/tpm/tpm'
set -g @plugin 'odedlaz/tmux-onedark-theme'
runtime/doc/todo.txt:5820:- Add an option to whitelist options that are allowed in a modeline. This
runtime/syntax/gnash.vim:84:syn match GnashKeyword '\<whitelist\>'
runtime/syntax/muttrc.vim:429: \ mailto_allow mime_lookup my_hdr pgp-hook push score sidebar_whitelist source
runtime/syntax/muttrc.vim:432: \ unsidebar_whitelist
runtime/syntax/neomuttrc.vim:639: \ setenv sidebar_whitelist source subjectrx subscribe-to tag-formats
runtime/syntax/neomuttrc.vim:642: \ unmy_hdr unscore unsetenv unsidebar_whitelist unsubjectrx unsubscribe-from
runtime/syntax/pfmain.vim:390:syntax keyword pfmainConf postscreen_dnsbl_whitelist_threshold
runtime/syntax/pfmain.vim:413:syntax keyword pfmainConf postscreen_whitelist_interfaces
runtime/syntax/pfmain.vim:1183:syntax match pfmainRef "$\<postscreen_dnsbl_whitelist_threshold\>"
runtime/syntax/pfmain.vim:1206:syntax match pfmainRef "$\<postscreen_whitelist_interfaces\>"
@mattn
mattn / README.md
Last active February 8, 2024 04:58
blacklist/whitelist master/slave に関する情報集め

blacklist/whitelist master/slave に関する情報集め

blacklist/whitelist、master/slave という単語は相応しくないという意見に OSS がどの様に対応すべきかを自身で考える為の情報集めです。見つけ次第、逐次更新していきます。

僕(mattn) 自身は black lives matter に同意をしています。blacklist/whitelist、master/slave という単語を廃止する事が、歴史的背景を持たない文化圏では特定の意味を持たなかった為、個人的には若干思う所はありますが、廃止自身に反対するつもりはありません。

昔から、主副を表す物には master/slave という単語が使われてきました。ハードディスクの IDE、仮想端末(pty)、色々あります。またネットワークの IP フィルタリングに関しては blacklist/whitelist と表記した物が今でも沢山あります。

我々日本人が意識せずに使っていた blacklist/whitelist、master/slave という単語が、人々にどの様に影響しうるのか、今後 OSS としてどの様に関わっていけば良いかを理解する上で、自分なりの情報集めをしたいと思っています。