Skip to content

Instantly share code, notes, and snippets.

View kojix2's full-sized avatar
🔬
🧬 🖥️ ♋

kojix2

🔬
🧬 🖥️ ♋
View GitHub Profile

red-datasets-parquet

red-datasets-parquet is a Ruby gem that provides datasets in Apache Arrow's Parquet format. It includes datasets from New York City's Taxi and Limousine Commission (TLC) data, such as green and yellow taxi trip records.

Installation

You can install the red-datasets-parquet gem by adding the following line to your Gemfile:

@kojix2
kojix2 / catgpt.rb
Created March 2, 2023 03:08
CatGPT - Glimmer DSL LibUI
require 'glimmer-dsl-libui'
require 'ruby/openai'
class ChatGPT
class Message < Struct.new(:role, :content)
def role_color
[role, color]
end
def content_color
@kojix2
kojix2 / ddbj_sra_urls.rb
Created September 17, 2022 06:31
Get DDBJ SRA download URLs from BioProject id
# DDBJ SRA URL Getter
# author: kojix2
require 'net/http'
require 'json'
require 'tty-spinner'
project_id = ARGV[0]
if project_id.nil?
warn 'Error: No project name.'
@kojix2
kojix2 / winequality.ipynb
Created September 4, 2022 05:34 — forked from heronshoes/winequality.ipynb
Wine quality
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
FROM ubuntu:22.04
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y llvm-11 clang-11 libclang-11-dev libclang-cpp11-dev python3-pip
# Easiest way to get sufficiently new cmake appears to be using pip - Ubuntu 20.10 version is too old
RUN pip3 install --upgrade cmake
# Copy the source into the Docker container
RUN mkdir -p /c2ffi
COPY / /c2ffi
@kojix2
kojix2 / gen_documentation_rb
Created May 21, 2022 11:50
gen_documentation_rb by Sami Sieranoja (@SamiSieranoja)
#!/usr/bin/ruby
require "gtksourceview4"
require "gtk3"
require "ripl"
c = Gtk::TextBuffer
GtkSource::View.new
classes = {}
$wm = Gtk::Widget.instance_methods
@kojix2
kojix2 / archive-packages-for-ssh.ipynb
Created November 14, 2021 04:53 — forked from paithiov909/archive-packages-for-ssh.ipynb
archive-packages-for-ssh.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kojix2
kojix2 / nf1.nf
Last active September 2, 2021 11:34
nextflow hello world
process Hello() {
"echo hello world!"
}
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
includedir=/usr/include
libdir=/usr/lib/x86_64-linux-gnu
# Flags and libraries needed when linking against a static libhts.a
# (used by manual and semi-manual pkg-config(1)-style enquiries).
static_ldflags=-Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -Wl,-flto -fvisibility=hidden -rdynamic
static_libs=-lpthread -lz -lm -ldl -lbz2 -llzma -ldeflate
Name: htslib
Description: C library for high-throughput sequencing data formats