- 日時
2022-04-19
- 作
- バージョン
2022.1
- URL
このサービスに興味がある人はこの資料に Star をつけてもらえると嬉しいです。
[ | |
{ | |
"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 |
#!/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 |
<!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> |
2022-04-19
2022.1
このサービスに興味がある人はこの資料に 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 |
# 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" } |
以下転載:
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]]], |