Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@Kumassy
Kumassy / ownserver-client-gui-packages.json
Last active August 12, 2023 05:30
for ownserver-client-gui
{
"version": "0.8.0",
"notes": "The server start command is now optional in custom mode / カスタム設定でサーバー起動コマンドを省略可能にしました",
"pub_date": "2023-08-12T04:44:13.525Z",
"platforms": {
"linux-x86_64": {
"signature": "dW50cnVzdGVkIGNvbW1lbnQ6IHNpZ25hdHVyZSBmcm9tIHRhdXJpIHNlY3JldCBrZXkKUlVRSjh4emY4SVZjbGJ5Z2NJaW8vbkZVbW1Cc2kyL09ybHloOCtBSkUvcUo0UmdtOThuMnNIU2lpZHJoMmxMR0tJVzhmUDFUaW1Pam01UUF5RndFZGxHR1RERTNVcFpMRHdFPQp0cnVzdGVkIGNvbW1lbnQ6IHRpbWVzdGFtcDoxNjkxODA5OTc1CWZpbGU6b3duc2VydmVyLWNsaWVudC1ndWlfMC44LjBfYW1kNjQuQXBwSW1hZ2UudGFyLmd6CmR5dlRXSUU0aWcvQVFqOXM5djNwQ2p6Q0VnYXdDRGhpSkFNdXBGYVl3OXJIUjhvb2pxd0NBd2taQ3MweGZTR2lORlBsQ3dMSC9XRVRzQ0JvcHRyZkFRPT0K",
"url": "https://github.com/Kumassy/ownserver-client-gui/releases/download/app-v0.8.0/ownserver-client-gui_0.8.0_amd64.AppImage.tar.gz"
},
"darwin-x86_64": {
@Kumassy
Kumassy / tauri-updater-test-packages.json
Last active April 28, 2023 14:28
for tauri-updater-test
{
"version": "v1.2.0",
"notes": "Test version bbb",
"pub_date": "2023-04-27T19:25:57Z",
"platforms": {
"darwin-x86_64": {
"signature": "dW50cnVzdGVkIGNvbW1lbnQ6IHNpZ25hdHVyZSBmcm9tIHRhdXJpIHNlY3JldCBrZXkKUlVReEVTSHByQ1pUbHFyMGYvOER2Um9QTlRSWkNZUGtZenZHQ3hZcm1Idm4veHB4bFFVWitISCt0bVZIM3hHcStQU0hMb0JXMTdybmxaczg4WGpKVm00eTNuVlpGUE96SGdrPQp0cnVzdGVkIGNvbW1lbnQ6IHRpbWVzdGFtcDoxNjgyNjExOTI1CWZpbGU6dGF1cmktdXBkYXRlci10ZXN0LmFwcC50YXIuZ3oKNE5TZWxqcEZxQ2dNUERLMW1TWXl2L25hZWhUeDJaM2IvWFFhWWgwbERSWEN5UFpXSXduckp4QnkyQVlCMmQ5YTF3VGRCT0JoNTBUenpSSFhLcktrQlE9PQo=",
"url": "https://github.com/Kumassy/tauri-updater-test/releases/download/app-v1.2.0/tauri-updater-test.app.tar.gz"
},
"linux-x86_64": {
@Kumassy
Kumassy / report.md
Last active April 13, 2021 13:56
pandoc report

documentclass: ltjsarticle header-includes:

  • \usepackage[version=3]{mhchem} metadata: table1: date: 1615 年 5 月 5 日 (金)丑三つ時 theme: 様々な食品におけるカフェイン

table2:

@Kumassy
Kumassy / gpa.js
Created March 10, 2017 04:34
GPA Calculator
// Follow instructions below:
//
// 1. Go to https://www2.adst.keio.ac.jp/rcs/topMenu
// 2. Open Chrome Developer Console
// 3. Paste Codes
const scoreOf = []; scoreOf['A'] = 4; scoreOf['B'] = 3; scoreOf['C'] = 2; scoreOf['D'] = 0;
const score = Array.prototype.slice.call(document.querySelectorAll('table tbody table.User tbody tr')).filter((tr) => tr.childNodes.length == 8).slice(1).map((course) => scoreOf[course.childNodes[2].innerText] * course.childNodes[3].innerText).reduce((total, score) => total + score);
const totalDegrees = Array.prototype.slice.call(document.querySelectorAll('table tbody table.User tbody tr')).filter((tr) => tr.childNodes.length == 8).slice(1).map((course) => parseInt(course.childNodes[3].innerText)).reduce((total, score) => total + score);
@Kumassy
Kumassy / quick_sort.rb
Created August 5, 2016 10:28
Implementation of quick sort in Ruby
require 'rspec'
def q_sort(list)
list = Array(list)
case list.length
when 0
[]
when 1
list
when 2
@Kumassy
Kumassy / builder.rb
Created May 30, 2016 06:53
Pro-1 builder
Dir.entries(".").each do |e|
if( md = e.match(/assignment_\d{2}-(.+)\.c/) )
`gcc #{md[0]} -o #{md[1]}`
end
end
@Kumassy
Kumassy / class_instance_variable.rb
Created May 2, 2016 16:13
Rubyでクラスインスタンス変数にインスタンスメソッドからアクセス
class C
class << self
# proxy methods
def class_instance_variable
@class_instance_variable
end
def class_instance_variable=(other)
@class_instance_variable = other
end
end
@Kumassy
Kumassy / matrix.rb
Created May 2, 2016 16:01
a_(i,i)=1,a_(i,i-1)=1,a_(i,i+1)=1な行列を生成するスクリプト
require 'matrix'
# 情報数学概論の検証
def matrix(row_size,col_size = row_size)
Matrix.build(row_size, col_size) do | row,col |
if (row == col) || row == col +1 || row + 1 == col
1
else
0
end