Skip to content

Instantly share code, notes, and snippets.

View Gitmoko's full-sized avatar

STM/Ryotaro Gitmoko

View GitHub Profile
# coding: utf-8
# In[41]:
from matplotlib import pyplot as plt
import numpy as np
from sklearn import datasets
@Gitmoko
Gitmoko / gamble.py
Created November 4, 2024 08:38
Calculating the Probability of Becoming Rich in the St. Petersburg Paradox Game Before Going Broke
from scipy.sparse import lil_matrix
import scipy.sparse as sp
import scipy.sparse.linalg as linalg
import numpy
import math
import matplotlib.pyplot as plt
import matplotlib.widgets as wg
def NextBadget(badget, fee, headCount):
@Gitmoko
Gitmoko / gif-sequencing-set-duration.lua
Last active July 31, 2025 06:48
Aseprite : modify "Export Gif Sequence" to set frame duration
-- MIT License
-- Copyright (c) 2021 David Fletcher
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
-- in the Software without restriction, including without limitation the rights
-- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-- copies of the Software, and to permit persons to whom the Software is
-- furnished to do so, subject to the following conditions: