Skip to content

Instantly share code, notes, and snippets.

View lyohe's full-sized avatar

Ryohei Tsuda lyohe

  • Tokyo
  • 23:25 (UTC +09:00)
View GitHub Profile
@lyohe
lyohe / new-uuid-v7.swift
Created May 18, 2025 14:53
UUID v7 を生成するための Raycast script command
#!/usr/bin/swift
// Required parameters:
// @raycast.schemaVersion 1
// @raycast.title New UUID v7
// @raycast.mode compact
//
// Optional parameters:
// @raycast.icon 🆔
// @raycast.packageName UUID Utilities
// @raycast.description Generate a draft-spec UUID version 7 and copy it to the clipboard.
@lyohe
lyohe / mod-forth-power.c
Last active July 24, 2020 07:09
2007年 東京大学 数学(文系) 第3問
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
// qsort に関数ポインタとして渡す関数
int compare_base(const void *b, const void *f) {
return (*(int *)b - *(int *)f);
}
int main(void) {