This file contains hidden or 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
| import numpy as np | |
| import numpy.random as rand | |
| import matplotlib.pyplot as plt | |
| def dnorm(x, m, s): | |
| return np.exp(-((x - m) ** 2) / (2 * s)) / np.sqrt(2 * np.pi * s) | |
| def EM(data, init, iter): |
This file contains hidden or 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
| $ iozone -t 2 -s 512M -r 128K -i 0 -i 1 -i 2 | |
| Iozone: Performance Test of File I/O | |
| Version $Revision: 3.413 $ | |
| Compiled for 64 bit mode. | |
| Build: macosx | |
| Contributors:William Norcott, Don Capps, Isom Crawford, Kirby Collins | |
| Al Slater, Scott Rhine, Mike Wisner, Ken Goss | |
| Steve Landherr, Brad Smith, Mark Kelly, Dr. Alain CYR, |
This file contains hidden or 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
| import numpy as np | |
| import multiprocessing as mlp | |
| import time | |
| def main(X): | |
| print("Data Length\t\t\t:", len(X)) | |
| spd = time.clock() | |
| calc_map(X) | |
| spd = time.clock() - spd |
This file contains hidden or 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
| .clearfix:after{display:block;visibility:hidden;clear:both;height:0;content:".";font-size:0}.clearfix{display:inline-table;min-height:1%} |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title></title> | |
| <meta http-equiv="content-language" content="ja"> | |
| <meta charset="UTF-8"> | |
| <meta name="author" content="****"> | |
| <meta name="viewport" content="width=device-width, minimum-scale=1, maximum-scale=1"> | |
| <meta property="og:title" content="YOUR NAME"> | |
| <meta property="og:type" content="article/website/book/profile/etc."> |
This file contains hidden or 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
| # OSX ------------------------ | |
| .DS_Store | |
| ## Thumbnails | |
| ._* | |
| ## Files that might appear on external disk | |
| .Spotlight-V100 | |
| .Trashes |
This file contains hidden or 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
| weekly | |
| rotate 4 | |
| start 1 | |
| dateext | |
| dateformat -%Y-%m-%d | |
| missingok | |
| create | |
| compress | |
| include /usr/local/etc/logrotate.d |
This file contains hidden or 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
| echo "> Hello, Z World" |
This file contains hidden or 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
| #!/bin/sh | |
| git status > /dev/null 2>&1 | |
| if [ $? -eq 0 ]; then | |
| cat << "EOS" | |
| _ _ _ | |
| __ _(_| |_(_) __ _ _ __ ___ _ __ ___ | |
| / _` | | __| |/ _` | '_ \ / _ \| '__/ _ \ | |
| | (_| | | |_| | (_| | | | | (_) | | | __/ | |
| \__, |_|\__|_|\__, |_| |_|\___/|_| \___| |
This file contains hidden or 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
| use strict; | |
| use List::Util; | |
| my @name_list = ( "おっくん", "きたけー", "たけお", "ぐっさん" ); | |
| my @s_name_list = List::Util::shuffle @name_list; | |
| print join(", ", @s_name_list); |