This file contains 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
const start = -300; | |
const end = 300; | |
const step = 1; | |
const sigma = 100; | |
var anchorpoint = []; | |
for (var x = start; x <= end; x += step) { | |
var y = 00 * (1 / Math.sqrt(2.0 * Math.PI * sigma * sigma)) * Math.exp(- x * x / (2 * sigma * sigma)); | |
anchorpoint.push([x, y]); | |
} |
This file contains 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
!!ATOK_TANGO_TEXT_HEADER_1 | |
!!一覧出力 | |
!!単語種類;登録単語(*) | |
!!読み範囲;(読みの先頭) → (読みの最終) | |
!!出力日時;21/06/08 05:34 | |
& ‖ 単漢字* | |
& ¬ 単漢字* | |
& ∠ 単漢字* | |
& ∮ 単漢字* |
This file contains 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/env python | |
# -*- coding: utf-8 -*- | |
""" | |
Lotterry | |
Description | |
=========== | |
Random shuffle lines |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
# https://github.com/github/gitignore/blob/master/Python.gitignore | |
# Mac OS ----------------------------------------------------------------------- | |
.DS_Store | |
._* |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
In [58]: a = np.arange(72).reshape(3, 2, 3, 4) | |
In [59]: for index in np.ndindex(*(list(a.shape)[:-2])): | |
...: print(a[index]) | |
...: | |
[[ 0 1 2 3] | |
[ 4 5 6 7] | |
[ 8 9 10 11]] | |
[[12 13 14 15] | |
[16 17 18 19] |
This file contains 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
class A(object): | |
def fun_a(self): | |
def fun_ab(x): | |
print(x) | |
fun_ab('def') |
NewerOlder