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/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. |
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
#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) { |