Skip to content

Instantly share code, notes, and snippets.

View risgk's full-sized avatar

Ryo Ishigaki risgk

View GitHub Profile
@akamah
akamah / osc2023nagoya.md
Last active June 5, 2023 14:43
OSC2023名古屋の電子パンフレットです。

プラレールかけ算回路

1-overview

これはなに?

こちらはプラレールを作って作られた、小さい数のかけ算ができるレイアウトです。 具体的には、 $1 \times 1$ から $3 \times 3$ の9通りのかけ算ができます。

入力について

@kakutani
kakutani / ruby-advent-20221211_kakutani.md
Last active December 12, 2022 22:26
日本Rubyの会のほうから来ました

日本Rubyの会のほうから来ました

この記事はRuby Advent Calendar 2022の第11日の記事です。前日の記事は@taichi-ishitaniさんによる「YAML 上の位置を取得する」でした。

日本Rubyの会の理事の@kakutaniです。この記事はあくまで個人の見解であり、会の公式見解ではありません。

in-person開催のイベントが「帰って」きましたね

ここ2年ほどのコロナ禍のなか、日本Rubyの会の活動はいつも以上に元気がありませんでしたが、2022年にRubyKaigiがin-personで開催されのは、なんか日本のRubyコミュニティの活動を再始動させるきっかけになった気がします。参加した皆さんは楽しんでくれたようでしたし、オンライン参加だった方がたからも「次はやっぱり現地に行こうと思った」という声を少ならからず聞いています。RubyKaigi 2022以降、ふりかえってみると国内でも毎月のようにRuby関連イベントは開催されていたのでした。

@minoki
minoki / multi-prompt.lua
Last active November 27, 2022 12:32
one-shot delimited continuations in Lua
function newPromptTag()
return {}
end
local sk_meta = {}
local function runWithTag(tag, co, ...)
local status, a, b, c = coroutine.resume(co, ...)
if status then
if a == "return" then
return b
elseif a == "capture" then
@keijiro
keijiro / unity-rust.md
Last active January 24, 2022 09:45
Unity/Rust interoperability test projects
@tomoyanonymous
tomoyanonymous / 0-generic-fmap-foldl-in-cpp.md
Last active April 1, 2021 06:18
Do functional map (iterate functions over different kind of containers) in C++ どうしてもC++で関数型っぽくmapとかfoldlとかしたい人のためのヘルパー関数
#include "mruby.h"
#include "mruby/compile.h"
#include "mruby/string.h"
#include "mruby/value.h"
#include "mruby/array.h"
#include "mruby/hash.h"
#include "mruby/object.h"
#include "mruby/class.h"
#include "mruby/proc.h"
#include "mruby/range.h"
N = 2016_06_01
(1..N).each do |n|
if (N / n) * n == N
puts "#{N} can be divided by #{n}."
end
end
__END__
20160601 can be divided by 1.
20160601 can be divided by 20160601.
@xavriley
xavriley / README.md
Created October 19, 2015 12:19
MIDI with Sonic Pi on OSX

Warning

These instructions are mainly for my own personal reference and should not be considered a supported feature of Sonic Pi. For experimentation only. Assumes OSX 10.10

  1. Setup a virtual midi channel on OSX

This is sometimes referred to as a "loopback" device and it should allow the various software applications to communicate.

  • Open /Applications/Utilities/Audio\ MIDI\ Setup.app/ and go to "Window > Show MIDI studio".
@pocketberserker
pocketberserker / fpmeetup_compitation_expression.md
Created September 13, 2015 01:59
関数プログラミング交流会 - モナドとかよくわからないからコンピュテーション式でガン無視してみた

モナドとかよくわからないからコンピュテーション式でガン無視してみた

CC BY-SA 4.0

自己紹介

icon

  • なかやん・ゆーき / ぺんぎん / もみあげ
  • @pocketberserker / id:pocketberserker