Skip to content

Instantly share code, notes, and snippets.

View af12066's full-sized avatar
🐈

Takuma Hashimoto af12066

🐈
View GitHub Profile

Keybase proof

I hereby claim:

  • I am af12066 on github.
  • I am 8tak4 (https://keybase.io/8tak4) on keybase.
  • I have a public key ASDqTt6qhJNRRun9QxN670dmEq9WjZE9hksdwHegqY2-NAo

To claim this, I am signing this object:

@af12066
af12066 / pandoc-crossref.yml
Last active January 4, 2018 13:09
Markdown で論文を書く際に使用した config ファイルなど。textlint-prh 辞書と Pandoc の設定ファイルを収録。
figureTitle: "図"
tableTitle: "表"
listingTitle: "コード"
figPrefix: "図"
eqnPrefix: "式"
tblPrefix: "表"
lstPrefix: "コード"
#include <SPI.h>
#include <Ethernet.h>
int val[10];
int i;
const int iPin = A0;
const int oPin = 13;
byte mac[] = {0x90, 0xA2, 0xDA, 0x00, 0x00, 0x00};
byte ip[] = {172, 28, 192, 100};
@af12066
af12066 / lorenz-attractor.R
Last active May 28, 2016 08:58
ローレンツ方程式の実装とアトラクタの描画
library(pforeach)
library(rgl) #3Dプロットに必要
library(ggplot2)
library(gridExtra)
x <- 0.1 #初期値
y <- 0.1 #初期値
z <- 0.1 #初期値
h <- 0.01 #増分
library(pforeach)
library(ggplot2)
x <- 1 #初期値
h <- 0.01 #ステップ幅
maxit <- 100 #くり返しの最大値
iter <- seq(0, maxit, by = h) #初期時刻,くり返しの最大値,ステップ幅
dx.dt <- function(tt, xx) { #dx/dt の定義
@af12066
af12066 / logistic-chaos-animation.R
Created May 21, 2016 13:09
Aの増加にともなうカオスのようすをみる.
library(gganimate) # https://github.com/dgrtwo/gganimate
n.seq <- 1:(num/20) #ステップ数
x.rep <- tail(n.seq, n = 1) #最大ステップ数
A.seq <- seq(0.1, 4.0, 0.05) #Aを0.1から0.05刻みに増加させたときのようすを見る.
logistic <- function(A, x, n){
npforeach(i = 1:n)({
x <- A * x * (1 - x)
}) -> y
import urllib.request
import re
import urllib.parse
import codecs
import filecmp
import os.path
import os
from bs4 import BeautifulSoup
from slacker import Slacker
from datetime import datetime