This file contains hidden or 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
require 'glimmer-dsl-libui' | |
require 'ruby/openai' | |
class ChatGPT | |
class Message < Struct.new(:role, :content) | |
def role_color | |
[role, color] | |
end | |
def content_color |
This file contains hidden or 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
# 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.' |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
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 |
This file contains hidden or 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/ruby | |
require "gtksourceview4" | |
require "gtk3" | |
require "ripl" | |
c = Gtk::TextBuffer | |
GtkSource::View.new | |
classes = {} | |
$wm = Gtk::Widget.instance_methods |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
process Hello() { | |
"echo hello world!" | |
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
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 |
This file contains hidden or 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
# b2dna.cr | |
# Convert binary data to DNA sequence | |
# kojix2 | |
# echo "This is not a DNA sequence" | ./b2dna | |
BIT2BASE = { | |
0 => { 0 => 'A', 1 => 'C' }, | |
1 => { 0 => 'G', 1 => 'T' } | |
} |