This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let a_bitmap = [ 0,0,0,0,0,1,1,1,1,1,0,0,0,0,0,1,1,1,0,0,0,0 ]; | |
let a_intervals = [ [5,9], [14,18], [1000,1141], [10000,100200] ]; | |
class Interval { | |
constructor(intervals=[]) { | |
this.intervals = intervals | |
} | |
set1(N) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python3 | |
import json | |
import sys | |
from contextlib import contextmanager, ExitStack | |
from os import chdir, getcwd | |
from pty import spawn | |
from sh import ErrorReturnCode_32, ErrorReturnCode_12 | |
from sh import losetup, lsblk, mkdir, mount, rmdir, umount |