Skip to content

Instantly share code, notes, and snippets.

View yoshixmk's full-sized avatar

Yoshihiro Ueki yoshixmk

View GitHub Profile
@yoshixmk
yoshixmk / run.sh
Created August 18, 2023 06:30
Export to datadog-agent as span which service name is luna using Deno
#!/bin/bash
OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318 deno run -A sample.ts
@yoshixmk
yoshixmk / README.md
Last active June 6, 2020 04:46
jamashita
export interface IVersion<T extends IVersion<T>> {
// greater than
gt(other: T): boolean;
// greater than or equals
gte(other: T): boolean;
// less than
lt(other: T): boolean;
// less than or equals
lte(other: T): boolean;
// equals
export interface IVersion<T extends IVersion<T>> {
// greater than
gt(other: T): boolean;
// greater than or equals
gte(other: T): boolean;
// less than
lt(other: T): boolean;
// less than or equals
lte(other: T): boolean;
// equals
#! ruby -Ks
#coding:windows-31j
STDOUT.sync = true
p "入力+1します"
p "#{Integer(gets).succ}"
@yoshixmk
yoshixmk / UFO
Created February 15, 2014 11:39 — forked from kazuhisa/UFO
class Hoge
include Comparable
attr_accessor :age
def initialize(age)
@age = age
end
def <=>(other)
self.age <=> other.age