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
# ライブラリの読み込み | |
library(gpclib) | |
library(ggplot2) | |
library(maptools) | |
library(classInt) | |
library(RColorBrewer) | |
# gpclib ライセンス警告表示の抑止 | |
gpclibPermit() |
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/local/bin/ruby | |
#********************************************* | |
# シンプソン則による定積分 | |
#********************************************* | |
class DefiniteIntegralSimpson | |
# 積分区間分割数 | |
M = 100 | |
def initialize | |
# 被積分関数 |
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/local/bin/ruby | |
#********************************************* | |
# 台形則による定積分 | |
#********************************************* | |
class DefiniteIntegralTrapzoid | |
# 積分区間分割数 | |
M = 100 | |
def initialize | |
# 被積分関数 |
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
/*********************************************************** | |
連立方程式の解法 ( ガウスの消去法(ピボット選択) ) | |
DATE AUTHOR VERSION | |
2021.09.16 mk-mode.com 1.00 新規作成 | |
Copyright(C) 2021 mk-mode.com All Rights Reserved. | |
***********************************************************/ | |
#include <cmath> // for fabs | |
#include <cstdlib> // for EXIT_XXXX |
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
!************************************************************ | |
! Simultaneous equations solving by Gauss-Elimination(Pivot) method | |
! | |
! DATE AUTHOR VERSION | |
! 2022.04.14 mk-mode.com 1.00 新規作成 | |
! | |
! Copyright(C) 2022 mk-mode.com All Rights Reserved. | |
!************************************************************ | |
! | |
module const |
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/local/bin/ruby | |
#********************************************* | |
# 連立方程式の解法 ( ガウスの消去法(ピボット選択) ) | |
#********************************************* | |
# | |
class GaussElimination | |
def initialize | |
# 係数 | |
@a = [ | |
[1.0, 2.0, 7.0, 6.0, 6.0], |
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
# ==== Basic | |
# Default shell | |
set-option -g default-shell /bin/bash | |
set-option -g default-command /bin/bash | |
# Allow UTF-8 | |
set-window-option -g utf8 on | |
# Disable ESC delay | |
set-option -s escape-time 0 | |
# ==== Reload config (r) |
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
!**************************************************** | |
! 素数一覧 | |
! : 入力値以下の素数を全て出力する | |
! | |
! date name version | |
! 2017.04.20 mk-mode.com 1.00 新規作成 | |
! | |
! Copyright(C) 2017 mk-mode.com All Rights Reserved. | |
!**************************************************** | |
! |
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
/* | |
* Example to connect to MariaDB(MySQL) | |
*/ | |
#include <iostream> | |
#include <mysql/mysql.h> // require libmysqlclient-dev | |
#include <string> | |
using namespace std; | |
/* |
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
# *************************************** | |
# Oauth - Access Token, Secret 取得処理 | |
# *************************************** | |
require 'oauth' | |
class TwitterAccessToken | |
SITE_URL = "https://twitter.com" | |
def get_token | |
# Consumer 情報入力 |