Skip to content

Instantly share code, notes, and snippets.

import { dirname, join } from "https://deno.land/std@0.182.0/path/mod.ts";
import {
BlobWriter,
Entry,
ZipReader,
} from "https://deno.land/x/zipjs@v2.7.6/index.js";
interface Option {
destination: string;
}
api.unmap("H");
api.unmap("L");
api.unmap("O");
api.unmap("o");
api.unmap("Y");
api.unmap("M");
api.unmap("m");
api.unmap("B");
api.unmap("b");
import random
from collections.abc import Iterator
from dataclasses import dataclass
from queue import Queue
@dataclass
class Hoge:
parsed: str
current: str
@Omochice
Omochice / bar.rb
Last active November 5, 2021 13:17
require "benchmark"
Benchmark.bm do |x|
count = 1000
data = [1, 2]
x.report("case1") do
count.times do
_ = "#{data[0]} #{data[1]}"
require "benchmark"
Benchmark.bm do |x|
count = 10000
mappings = { "a" => [1, 1], "t" => [-1, 1], "g" => [-1, -1], "c" => [1, -1] }
x.report("hash.values.sample.size") do
_ = mappings.values.sample.size
end
x.report("hash.values[0].length ") do
let g:dein_dir = expand('~/.vim/dein')
let s:dein_repo_dir = g:dein_dir . '/repos/github.com/Shougo/dein.vim'
if &runtimepath !~# '/dein.vim'
if !isdirectory(s:dein_repo_dir)
execute '!git clone https://github.com/Shougo/dein.vim' s:dein_repo_dir
endif
execute 'set runtimepath^=' . s:dein_repo_dir
endif
*://techacademy.jp/*
*://www.sejuku.net/*