Skip to content

Instantly share code, notes, and snippets.

@osamutake
osamutake / Slinky.ipynb
Last active April 25, 2019 00:49
https://twitter.com/Rainmaker1973/status/1119638564269166602 を再現するためのコード。ipynb 形式にして、この系に成り立つスケール則について追記した。
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@osamutake
osamutake / uio.c
Last active March 26, 2019 13:52
Command for manipulating generic-uio
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/mman.h>
#include <errno.h>
#include <string.h>
#include "uio.h"
int sys_read_numerical_string(const char path[], unsigned int *p_result)
@osamutake
osamutake / dto
Last active March 22, 2019 22:41
Device Tree Overlay script
#!/bin/sh
OVERLAY=/sys/kernel/config/device-tree/overlays
if [ -z $1 ]; then
echo USAGE: sudo dto folder-name [file-name.dts]
exit 1
fi
if [ -e $OVERLAY/$1 ]; then
@osamutake
osamutake / funcplot.ipynb
Last active April 16, 2018 02:55
関数グラフをプロットする FuncPlot
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@osamutake
osamutake / widget-extension-test.ipynb
Created April 11, 2018 13:28
widget/extension のテスト
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@osamutake
osamutake / julia-function-args.ipynb
Last active April 7, 2018 19:01
julia の関数について勉強
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@osamutake
osamutake / distance-without-sqrt.ipynb
Last active April 9, 2018 12:56
平方根を使わずに距離を求める
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@osamutake
osamutake / test-cubature.ipynb
Last active April 6, 2018 12:13
Cubature を使って数値積分を行う
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@osamutake
osamutake / Collatz conjecture by julia.ipynb
Created April 5, 2018 05:57
Collatzの予想(角谷の問題)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@osamutake
osamutake / test-pyplot.ipynb
Created April 4, 2018 08:20
jupyterでPyplotを使う(python)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.