Skip to content

Instantly share code, notes, and snippets.

View Matthew238's full-sized avatar

Ken ichi AKIMOTO Matthew238

  • Esashi, Hokkaido, Japan
View GitHub Profile
[
{
"word": "Asshole",
"kana": "アスホール",
"meaning": "いやな奴(Ass=お尻、Hole=穴)",
"notice": "「うざい野郎」「ろくでなし」"
},
{
"word": "あばずれ",
"kana": "あばずれ",
# 多項式のクラス
class Polynomial():
def __init__(self,array):
self.__zero = (array[0]-array[0]) # 任意の係数の "0" を作るためのアクロバティックな処理
# 多項式の次数を確認し、次数以上の係数を取り除く前処理
d = 0
for i in range(len(array)):
if array[i] != self.__zero:
d = i
size = d+1
@reasonset
reasonset / mkpwd.rb
Last active February 22, 2020 21:09
#!/usr/bin/ruby
# -*- mode: ruby; coding: utf-8 -*-
pwlength = ARGV.shift&.to_i || 64
pwlength = 64 if pwlength < 1
converter_symbols = ARGV.shift&.each_char
converter = converter_symbols ? ("a" .. "z").to_a + ("A" .. "Z").to_a + ("0" .. "9").to_a + converter_symbols : ('!' .. '~').to_a
@junjis0203
junjis0203 / fliptrip-react.html
Last active September 28, 2019 10:49
React and Vue implementation for Mathematical Girls: The Secret Notebook (Bits and Binary), chapter 4
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<link type="text/css" href="fliptrip.css" rel="stylesheet">
<script src="https://unpkg.com/react@16/umd/react.development.js" crossorigin></script>
<script src="https://unpkg.com/react-dom@16/umd/react-dom.development.js" crossorigin></script>
<!--
<script src="https://unpkg.com/react@16/umd/react.production.min.js" crossorigin></script>
<script src="https://unpkg.com/react-dom@16/umd/react-dom.production.min.js" crossorigin></script>
@voluntas
voluntas / ayame_labo.rst
Last active March 17, 2024 06:36
時雨堂 Ayame Labo 開発ログ

時雨堂 Ayame Labo 開発ログ

日時

2022-04-19

時雨堂

バージョン

2022.1

URL

https://ayame-labo.shiguredo.app/

このサービスに興味がある人はこの資料に Star をつけてもらえると嬉しいです。

BS:000 BS朝日1 BS Digital 1 0 4 16400 151 1 0 1 0
BS:000 BS朝日2 BS Digital 1 0 4 16400 152 1 0 1 0
BS:000 BS朝日3 BS Digital 1 0 4 16400 153 1 0 1 0
BS:000 BS朝日データ753 BS Digital 1 0 4 16400 753 192 0 0 0
BS:000 BS朝日データ755 BS Digital 1 0 4 16400 755 192 0 0 0
BS:000 BS朝日データ756 BS Digital 1 0 4 16400 756 192 0 0 0
BS:000 BS朝日データ757 BS Digital 1 0 4 16400 757 192 0 0 0
BS:001 BS-TBS BS Digital 1 1 4 16401 161 1 0 1 0
BS:001 BS-TBS BS Digital 1 1 4 16401 162 1 0 1 0
BS:001 BS-TBS BS Digital 1 1 4 16401 163 1 0 1 0
@MyklClason
MyklClason / gist:f6ac68ca4ce1faa5d655abfb0abe788b
Last active December 11, 2021 00:05
CSV Export (Rails)
# Good solution for exporting to CSV in rails.
# Source: https://www.codementor.io/victorhazbun/export-records-to-csv-files-ruby-on-rails-vda8323q0
class UsersController < ApplicationController
def index
@users = User.all
respond_to do |format|
format.html
format.csv { send_data @users.to_csv, filename: "users-#{Date.today}.csv" }
@mono0926
mono0926 / commit_message_example.md
Last active March 29, 2024 03:40
[転載] gitにおけるコミットログ/メッセージ例文集100
import numpy as np
from chainer import Function, Variable, optimizers
from chainer import Chain
import chainer.functions as F
import chainer.links as L
class NN(Chain):
def __init__(self):
initial_W1 = np.array([[[[1.0, 0.5,0.0],[0.5, 0.0,-0.5],[0.0, -0.5,-1.0]]],